--- ati-powermode.sh.old 2006-07-08 16:56:59.000000000 +0200 +++ ati-powermode.sh 2006-07-08 17:07:40.000000000 +0200 @@ -17,6 +17,10 @@ fi } +aticonfig='/opt/ati/bin/aticonfig' + +# default high power state +default_state=`$aticonfig --lsp | grep 'default state' | cut -c 3` grep -q closed /proc/acpi/button/lid/*/state if [ $? = 0 ]; then @@ -46,7 +50,7 @@ getXuser; if [ x"$XAUTHORITY" != x"" ]; then export DISPLAY=":$displaynum" - su $user -c "/usr/X11R6/bin/aticonfig --set-powerstate=1 --effective=now" + su $user -c "$aticonfig --set-powerstate=1 --effective=now" fi done else @@ -56,7 +60,7 @@ getXuser; if [ x"$XAUTHORITY" != x"" ]; then export DISPLAY=":$displaynum" - su $user -c "/usr/X11R6/bin/aticonfig --set-powerstate=3 --effective=now" + su $user -c "$aticonfig --set-powerstate=$default_state --effective=now" fi done fi