Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apm overridden by ACPI.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
arosboro
n00b
n00b


Joined: 19 Aug 2003
Posts: 73
Location: Pennsylvania, USA

PostPosted: Thu Aug 21, 2003 3:32 pm    Post subject: apm overridden by ACPI. Reply with quote

Hi,

When I installed the gentoo-sources (using genkernel) it already had acpi support. I found out how to load all of the acpi modules, but /proc/acpi/battery/* did not exist. Since my laptop is a compaq armada m300, I googled 'aramda m300 Power Management' and found http://wwwbode.cs.tum.edu/~acher/m300/ :

Quote:
APM works, ie. reading battery filling and the standby (ie. suspend to RAM) works perfectly, in this standby state the battery lasts about 4-5 days. Standby to disk with Linux also worked for me in the beginning, but then I fiddled on the APM-settings in Windows, and now I can't get it to work again :-(


Since I couldn't read the battery levels with acpi I figured that I'd need to install apm into the kernel. This morning I attempted to activate apm in the kernel, I did the following:

Code:
make clean
cp .config myconfig # save configuration file
make mrproper # set kernel config to defaults
cp myconfig .config # put your config back
make menuconfig
# do your configuration
# I removed acpi and made apm a module
make dep
make clean
make bzImage
make modules
make modules_install
mount /boot
cp /usr/src/linux/arch/i386/boot/bzImage /boot # copies the boot image
/sbin/grub # updates grub?
umount /boot
reboot


I think I did everything correctly, except when I rebooted the display was 800x600 instead of 1024x768 (this went to normal after x started) and apm was overridden.

I did the following to check what happened at boot:

Code:
root # dmesg | grep apm
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
apm: overridden by ACPI.
  options:  [pci] [cardbus] [apm]
  options:  [pci] [cardbus] [apm]
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
apm: overridden by ACPI.


I don't understand why this happens because I don't have acpi drivers set to load at all (at least I dont think I do).

another oddity was that I didn't have to emerge alsa-drivers when I rebooted, the sound worked fine.

Andrew
Back to top
View user's profile Send private message
arosboro
n00b
n00b


Joined: 19 Aug 2003
Posts: 73
Location: Pennsylvania, USA

PostPosted: Thu Aug 21, 2003 3:40 pm    Post subject: Reply with quote

I also get the following errors when trying to load the apm module:

Code:
root # insmod apm
Using /lib/modules/2.4.20-gentoo-r6/kernel/arch/i386/kernel/apm.o
/lib/modules/2.4.20-gentoo-r6/kernel/arch/i386/kernel/apm.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
root # modprobe apm
/lib/modules/2.4.20-gentoo-r6/kernel/arch/i386/kernel/apm.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg
/lib/modules/2.4.20-gentoo-r6/kernel/arch/i386/kernel/apm.o: insmod /lib/modules/2.4.20-gentoo-r6/kernel/arch/i386/kernel/apm.o failed
/lib/modules/2.4.20-gentoo-r6/kernel/arch/i386/kernel/apm.o: insmod apm failed
root # apm
No APM support in kernel
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum