[ltp] Thinkpad APM Support

linux-thinkpad@linux-thinkpad.org linux-thinkpad@linux-thinkpad.org
Sat, 13 Aug 2005 23:38:33 +0100 (BST)


On Sat, 13 Aug 2005, Andrew Jesaitis wrote:

> So here's the weird thing... I tried to install the 0.11 drivers for acpi 
> support (did the whole, make; make install; modprode ibm_acpi thing)... 
> /proc/acpi/ibm/driver still shows that it is version 0.8.

Please read the post I posted yesterday on this.  Oh go on, I'll
quote it:

--
Caveat - see earlier discussions here about the seeming
unpredictability of module loading where duplicates exist in
/lib/modules/<kernel>/: the default 0.8 one is install in
kernel/drivers/acpi, and the default installation path for 0.11 goes
into acpi/.  On the face of it this isn't a problem, as modules.dep
specifies (for me, in FC4) the acpi/ one first, so loads it when I
modprobe - but as someone else pointed out, if the
kernel/drivers/acpi one is present, it gets loaded by insmod very
early on in /etc/rc.d/rc.sysinit (and insmod of course ignores
modprobe.conf options).
--

The issue will probably be similar for your distro.

> I figure oh well, 
> it looks like most of the features that I need are already on 0.8.  So I copy 
> the scripts for the action and event folders in /etc/acpi.  (I had previously 
> written my own, but I thought that maybe I had messed one of them up so I 
> might as well try the ones included with 0.11.  I then enabled the hotkeys 
> using the echo enable > /proc/acpi/ibm/hotkeys.  Then I restarted the acpi 
> daemon.  I tried the blank screen hotkey.  No dice. I also reconfigured the 
> ./event sleep script to call my (actually the niemueller) sleep script in 
> ./action and I didn't get it to work.  Any ideas?? Thanks,

You also need to say which keys you're enabling via a mask, e.g.

# echo 0100 > /proc/acpi/ibm/hotkey

or the equivalent hex code.  Described in the README.  If this
doesn't work, press keys and watch /var/log/acpid for codes.

Honey