[ltp] Getting Fn-F2 to lock the screen
Marcus Better
linux-thinkpad@linux-thinkpad.org
Thu, 15 Mar 2007 12:06:57 +0100
The Fn-F2 (Lock) and Fn-F3 buttons on my R60 do not work. I'm running Debian
(amd64), kernel 2.6.20, ibm-acpi, acpi-support 0.90-4, hal 0.5.8.1-6.1 and
KDE with kpowersave.
/var/log/acpid.log shows the following (for Fn-F2):
[Thu Mar 15 11:59:38 2007] received event "ibm/hotkey HKEY 00000080
00001002"
[Thu Mar 15 11:59:38 2007] notifying client 4255[114:119]
[Thu Mar 15 11:59:38 2007] notifying client 4723[0:0]
[Thu Mar 15 11:59:38 2007] executing action "/etc/acpi/lockbtn.sh"
[Thu Mar 15 11:59:38 2007] BEGIN HANDLER MESSAGES
[Thu Mar 15 11:59:38 2007] END HANDLER MESSAGES
[Thu Mar 15 11:59:38 2007] action exited with status 0
[Thu Mar 15 11:59:38 2007] completed event "ibm/hotkey HKEY 00000080
00001002"
~# cat /etc/acpi/lockbtn.sh
#!/bin/sh
. /usr/share/acpi-support/key-constants
acpi_fakekey $KEY_COFFEE
KEY_COFFEE is 152, but "acpi_fakekey 152" doesn't do anything. "xev" doesn't
show anything when I press Fn-F2 either.
So, how can I catch the KEY_COFFEE event?
Fn-F3 shows similar behaviour.
The following function keys do work:
Fn-F4 (Sleep)
Fn-F8 (Touchpad)
Fn-F12 (Hibernate)
Thanks,
Marcus