The Script /etc/acpi/handler.sh will be executed by "root", so my suspend, blank-screen, bluetooth-toggle key, lid-close event work great. I have only problem with Fn-F2 to lock my screen by command: "gnome-screensaver-command -l"
This command must be executed under my linux-account and not root
Code: Select all
# BEGIN customization for ibm/hotkey:
ibm)
case "$event" in
hotkey)
case "$key" in
"HKEY 00000080 00001002")
logger "acpid: lock button (Fn+F2) pressed"
su myusername -c "gnome-screensaver-command -l"
;;Change to root account and restart acpid with /etc/rc.d/acpid restart . Now all Fn-keys work perfectly.......until next restart <--- i dont understand why
Can anyone help me to find a better solution ? Thanks very much
@tastatur




