[ltp] lenovo-lockbtn:cannot connect to X server

Qiuye Wang linux-thinkpad@linux-thinkpad.org
Tue, 13 Nov 2007 09:16:46 +0100


Hello list,

i want to use the Fn+F2 to lock my screen, and because the default
lockbtn.sh in /etc/acpi does nothing (which uses acpi_fakekey
$KEY_COFFEE), i put the following in lockbtn.sh:
#!/bin/sh
kdesktop_lock --forcelock

and i got "cannot connect to X server" in /var/log/acpid.
although if i direct run the script and it works.

so, could anyone please help?
Thanks in advance

QY

-- 
Thinkpad T60 with ATI x1400 128M
Driver: fglrx-driver 8.40.4-2
Linux version 2.6.22-2-686
Debian GNU/Linux lenny/sid
KDE 3.5.2