PDA

View Full Version : acpi4asus - build problem



lukasszz
20th June 2007, 05:57 PM
Hi.
I wanted to install acpi4asus driver for my asus laptop.

I've:
- downloaded acpi4asus-0.41
- installed kernel-devel and kernel-headers
- installed acpi, acpid package

But when I try to do make in acpi4asus directory I've got the error:
# make
make -C driver
make[1]: Wejście do katalogu `/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver'
Kernel configuration :
CONFIG_BACKLIGHT_CLASS_DEVICE : [Y]
CONFIG_LEDS_CLASS : [Y]
make -C /lib/modules/2.6.21-1.3228.fc7/build SUBDIRS=/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver modules
make[2]: Wejście do katalogu `/usr/src/kernels/2.6.21-1.3228.fc7-i686'
CC [M] /home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.o
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:226: error: unknown field ‘owner’ specified in initializer
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:226: warning: initialization makes integer from pointer without a cast
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:227: error: unknown field ‘get_brightness’ specified in initializer
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:227: warning: initialization makes integer from pointer without a cast
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:228: error: unknown field ‘update_status’ specified in initializer
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:228: warning: initialization makes integer from pointer without a cast
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c: In function ‘lcd_blank’:
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:396: error: ‘struct backlight_device’ has no member named ‘sem’
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:397: error: wrong type argument to unary exclamation mark
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:398: error: invalid type argument of ‘->’
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:399: error: invalid type argument of ‘->’
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:400: error: invalid type argument of ‘->’
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:402: error: ‘struct backlight_device’ has no member named ‘sem’
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c: In function ‘update_bl_status’:
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:436: error: invalid type argument of ‘->’
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:442: error: invalid type argument of ‘->’
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c: In function ‘asus_hotk_get_info’:
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:867: error: ‘ACPI_TABLE_ID_DSDT’ undeclared (first use in this function)
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:867: error: (Each undeclared identifier is reported only once
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:867: error: for each function it appears in.)
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:867: warning: passing argument 3 of ‘acpi_get_table’ from incompatible pointer type
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c: In function ‘asus_backlight_init’:
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:1120: warning: passing argument 4 of ‘backlight_device_register’ from incompatible pointer type
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:1131: error: ‘struct backlight_device’ has no member named ‘sem’
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:1132: error: wrong type argument to unary exclamation mark
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:1133: error: invalid type argument of ‘->’
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:1134: error: invalid type argument of ‘->’
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:1135: error: invalid type argument of ‘->’
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:1136: error: invalid type argument of ‘->’
/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.c:1138: error: ‘struct backlight_device’ has no member named ‘sem’
make[3]: *** [/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver/asus-laptop.o] Błąd 1
make[2]: *** [_module_/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver] Błąd 2
make[2]: Opuszczenie katalogu `/usr/src/kernels/2.6.21-1.3228.fc7-i686'
make[1]: *** [default] Błąd 2
make[1]: Opuszczenie katalogu `/home/lukasz/tmp/acpi_asus/acpi4asus-0.41/driver'
make: *** [build] Błąd 2

Stian1979
28th June 2007, 02:38 AM
I ben trying the same as you and got the same error's

I installed the kernel devel package and lots off other junk, but it just won't work.

lukasszz
10th July 2007, 06:14 PM
Kernel api has changed. You have to get the newest version from CVS.

1. Get acpi4asus sources from CVS
cvs -d:pserver:anonymous@acpi4asus.cvs.sourceforge.net:/cvsroot/acpi4asus login
cvs -z3 -d:pserver:anonymous@acpi4asus.cvs.sourceforge.net:/cvsroot/acpi4asus co -P acpi4asus

http://sourceforge.net/cvs/?group_id=81433

2. Install kernel-devel i acpid packages (yum)

3. make, make install (as root)

4. modprobe asus-laptop (as root)
You can add it to /etc/rc.d/rc.local, then it will be loaded at startup.

5. Copy acpi4asus/sample into ~/.asus_acpid, and configure

6. Run asus_acpid (as user).
You can add it to your ~/.bash_profile.

7. Change /etc/X11/xorg.conf if you want to switch on/off your touchpad

Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto-dev"
Option "Emulate3Buttons" "yes"
Option "SHMConfig" "on" <---- add this
EndSection