[ltp] Getting Fn-F2 to lock the screen

Dieter Jurzitza linux-thinkpad@linux-thinkpad.org
Thu, 15 Mar 2007 19:57:26 +0100

Hi Marcus,
please take a look into=20
this is a different computer and a different linux provider, nevertheless i=
(could, possibly) help you with regard to your issue.
The clue: test whether the script /etc/acpi/lockbtn.sh is being executed (I=
quite sure about this):
put a line

echo "Test" > /tmp/tryit

into this file. The next time you press FN-F2 the file "tryit" should exist=
in /tmp and should contain "Test"

If this is the case you could probably copy the commands of "FN-F2: blockin=
the screen a soon as ... from the link above into this file. But watchout;=
this works for KDE only; I did not test gnome and cannot tell how to make i=
work there.

You should look into the function lock_screen() and copy it accordingly int=
your file lockbtn.sh

And, yes, you will hardly see any activity on xev caused by the FN-FX keys.=
The actions are logged into /var/log/acpid (on my machine)

Hope this helps,
take care


Am Donnerstag, 15. M=E4rz 2007 12:06 schrieb Marcus Better:
> 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


                 /\_/\           |
                | ~x~ |/-----\   /
                 \   /-       \_/
  ^^__   _        /  _  ____   /
 <=B0=B0__ \- \_/     |  |/    |  |
  ||  ||         _| _|    _| _|

if you really want to see the pictures above - use some font
with constant spacing like courier! :-)