You are not logged in.
Pages: 1
Hey everybody.... I've been banging my head against the wall trying to get ACPI working. Worked fine under Ubuntu (I know... hiss... hiss...). Anyways, when I press the sleep button, I get this error:
Action Forbidden
Policy timeout is not valid. Please wait a few seconds and try again.
Here is my handler.sh:
#!/bin/sh
# Default acpi script that takes an entry for all actions
# NOTE: This is a 2.6-centric script. If you use 2.4.x, you'll have to
# modify it to not use /sys
minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
set $*
case "$1" in
#button/power)
button/power PWRF 00000080 xxxxxxxx)
echo "PowerButton pressed!">/dev/tty5
case "$2" in
PWRF) logger "PowerButton pressed: $2" ;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
#button/sleep)
ibm/hotkey HKEY 00000080 00001004)
case "$2" in
SLPB) /usr/bin/radeontool light off
SLPB) echo -n mem >/sys/power/state ;;
SLPB) /usr/bin/radeontool light on
*) logger "ACPI action undefined: $2" ;;
esac
;;
ac_adapter)
case "$2" in
AC)
case "$4" in
00000000)
echo -n $minspeed >$setspeed
#/etc/laptop-mode/laptop-mode start
;;
00000001)
echo -n $maxspeed >$setspeed
#/etc/laptop-mode/laptop-mode stop
;;
esac
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
battery)
case "$2" in
BAT0)
case "$4" in
00000000) #echo "offline" >/dev/tty5
;;
00000001) #echo "online" >/dev/tty5
;;
esac
;;
CPU0)
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
#button/lid)
button/lid LID 00000080 xxxxxxxx)
#echo "LID switched!">/dev/tty5
;;
*)
logger "ACPI group/action undefined: $1 / $2"
;;
esacStill trying to figure everything out. I am on a Thinkpad X31 using the thinkpad_acpi module.
Any help would be greatly appreciated.
Dread Brazen
"Sweet Zombie Jesus!" - The Professor
Offline
I know that this was almost a year ago. I have the same problem on my thinkpad x61. But it seems that the reason is that gdm runs as root. ![]()
Lenovo ThinkPad x61
Core2Duo 2ghz, 4gig ram, 16gig SSD.
Archlinux x64 + Fluxbox!
Offline
Pages: 1