sjaglin Posted February 23, 2008 Report Share Posted February 23, 2008 (edited) Good morning, I am the happy owner of an eee p701 from asus and I have been running Mandriva on it for a month now. I have chosen to use the 2008.1 version in order to get out of the box working drivers. All is good but I can't manage to make some of the fn keys work (additional keys for acpi stuff). So in order to enable them I am trying to install the modules for acpi from source. I have the sources and have installed my kernel source too : [root@localhost asus_acpi]# uname -r 2.6.24.2-laptop-4mdv [root@localhost asus_acpi]# rpm -qa |grep kernel madwifi-kernel-2.6.24.2-laptop-1mdv-0.9.3.3-1.r3114mdv2008.1 kernel-headers-2.6.24-5mdv2008.1 kernel-laptop-latest-2.6.24.2-4mdv2008.1 kernel-source-latest-2.6.24.2-4mdv2008.1 kernel-laptop-devel-2.6.24.2-4mdv-1-1mdv2008.1 kernel-source-2.6.24.2-4mdv-1-1mdv2008.1 kernel-laptop-2.6.24.2-4mdv-1-1mdv2008.1 madwifi-kernel-laptop-latest-0.9.3.3-1.20080211.1.r3114mdv2008.1 kernel-laptop-2.6.24.2-3mdv-1-1mdv2008.1 [root@localhost asus_acpi]# I also made sure that the begining of the Makefile is ponting to the right places : KERNEL_VERSION := $(shell uname -r) KERNEL_DIR := /lib/modules/$(KERNEL_VERSION)/build But when I try to build the module here is what happens: root@localhost asus_acpi]# make clean rm -f *.o *.ko .*.cmd .*.flags *.mod.c Module.symvers rm -rf .tmp_versions [root@localhost asus_acpi]# make Building ASUS ACPI driver... make[1]: Entering directory `/usr/src/linux-2.6.24.2-laptop-4mdv' CC [M] /home/stephane/Desktop/acpi/asus_acpi/asus_acpi.o /home/stephane/Desktop/acpi/asus_acpi/asus_acpi.c:164: warning: initialization from incompatible pointer type /home/stephane/Desktop/acpi/asus_acpi/asus_acpi.c:550: warning: initialization from incompatible pointer type /home/stephane/Desktop/acpi/asus_acpi/asus_acpi.c: In function ‘asus_hotk_notify’: /home/stephane/Desktop/acpi/asus_acpi/asus_acpi.c:1181: error: implicit declaration of function ‘acpi_bus_generate_event’ make[2]: *** [/home/stephane/Desktop/acpi/asus_acpi/asus_acpi.o] Error 1 make[1]: *** [_module_/home/stephane/Desktop/acpi/asus_acpi] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.24.2-laptop-4mdv' make: *** [asus_acpi] Error 2 [root@localhost asus_acpi]# So here are my questions : 1- What have I done wrong ? Have I got the right source for a laptop-mdv version of kernel? 2- The acpi does not work out of the box but it is not really a bug, shall I report it on bugzilla anyway? Thanks for your help, this is the last bit hindering me from completing my "how-to" on the Eee wiki ( http://wiki.eeeuser.com/mandiva_2008_on_eee_pc)in order to keep our distro at the front of the pack for he asus little marvel! Stef :) Edited February 23, 2008 by sjaglin@yahoo.co.uk Quote Link to comment Share on other sites More sharing options...
AussieJohn Posted February 23, 2008 Report Share Posted February 23, 2008 (edited) Hello Stef. Yes I woud suggest making a bug report for two reasons. 1. 2008 .1 is still only beta 2 at this stage ( you may be using beta1) so there is the possibility of a bug. 2. If you submit a bug report and it is not a bug then you will isolate the problem to the possibility that you have made a mistake in compiling. I can't see that it should be necessary to compile a kernel these days for other than development purposes (I don't claim to be an expert on this topic. Just my impression) Glad to find another Mandriva fan. :D Cheers. John. Edited February 23, 2008 by AussieJohn Quote Link to comment Share on other sites More sharing options...
Guest tritondm Posted March 28, 2008 Report Share Posted March 28, 2008 (edited) maybe replace -- acpi_bus_generate_event ..... to ++ acpi_bus_generate_proc_event.... in line 1181 and 1787 On Kernel >= 2.6.23, all occurrences of "acpi_bus_generate_event" in lt_hotswap.c need to be replaced by "acpi_bus_generate_proc_event". greets Andreas Kraxner Edited March 28, 2008 by tritondm Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.