[ltp] Getting Fn-F2 to lock the screen

Konstantin Filtschew linux-thinkpad@linux-thinkpad.org
Thu, 15 Mar 2007 14:50:23 +0100


--=-cdfO292h6J5wrexJOrPa
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

hi,

I use the Fn+F1 and FN+F2 keys for disabling/enabling the touchpad. Here
are the files located in: /etc/acpi/events

#FN+F1 for disabling
events # cat touchpad-off=20
event=3Dibm/hotkey HKEY 00000080 00001001
action=3D/etc/acpi/actions/

#FN+F2 for enabling
events # cat touchpad-on=20
event=3Dibm/hotkey HKEY 00000080 00001002
action=3D/etc/acpi/actions/touchpad-on.sh

You need to run the following command to enable all the FN+F1..F12 keys
for use:
echo "0xFFFF,enable" > /proc/acpi/ibm/hotkey


For those who wants to disable/enable the touchpad as I do, here are the
commands:
synclient TouchpadOff=3D1  # disable
synclient TouchpadOff=3D0  # enable


Greetz

Konstantin Filtschew

On Thu, 2007-03-15 at 12:06 +0100, Marcus Better wrote:
> The Fn-F2 (Lock) and Fn-F3 buttons on my R60 do not work. I'm running Deb=
ian
> (amd64), kernel 2.6.20, ibm-acpi, acpi-support 0.90-4, hal 0.5.8.1-6.1 an=
d
> KDE with kpowersave.
>=20
> /var/log/acpid.log shows the following (for Fn-F2):
>=20
> [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"
>=20
> ~# cat /etc/acpi/lockbtn.sh
> #!/bin/sh
>=20
>  . /usr/share/acpi-support/key-constants
>=20
> acpi_fakekey $KEY_COFFEE
>=20
>=20
> KEY_COFFEE is 152, but "acpi_fakekey 152" doesn't do anything. "xev" does=
n't
> show anything when I press Fn-F2 either.
>=20
> So, how can I catch the KEY_COFFEE event?
>=20
> Fn-F3 shows similar behaviour.
>=20
> The following function keys do work:
> Fn-F4 (Sleep)
> Fn-F8 (Touchpad)
> Fn-F12 (Hibernate)
>=20
> Thanks,
>=20
> Marcus
>=20
>=20
--=20
Building an operation system without source code,
is like buying a  self assemble space shuttle without
instructions.

--=-cdfO292h6J5wrexJOrPa
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (GNU/Linux)

iD8DBQBF+U8fxHXMYglFk4ARAtn4AKD08g5MGrQeHohSzz3qu0uqDrnY5QCfQQCz
w3zLkhLMBljtSMJEGzrGxxY=
=cgf4
-----END PGP SIGNATURE-----

--=-cdfO292h6J5wrexJOrPa--