fixed
authorvimacs <vimacs@pndtest>
Wed, 17 Feb 2010 17:04:19 +0000 (18:04 +0100)
committervimacs <vimacs@pndtest>
Wed, 17 Feb 2010 17:04:19 +0000 (18:04 +0100)
modified:   testdata/scripts/op_lid.sh
modified:   testdata/scripts/op_menu.sh

testdata/scripts/op_lid.sh
testdata/scripts/op_menu.sh

index 88e2087..e87e109 100755 (executable)
@@ -9,7 +9,7 @@ if [ "$1" = "1" ]; then #lid was closed
 elif [ "$1" = "0" ]; then # lid was opend
   maxbright=$(cat /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/max_brightness)
   oldbright=$(cat /tmp/oldbright)
-   if [ $oldbright -ge 0 ] && [ $oldbright -le $maxbright ]; then 
+   if [ $oldbright -ge 3 ] && [ $oldbright -le $maxbright ]; then 
     /usr/pandora/scripts/op_bright.sh $oldbright 
    else
     /usr/pandora/scripts/op_bright.sh $maxbright
index 8dcb7a5..8358845 100755 (executable)
@@ -18,7 +18,7 @@ if [ $xpid ]; then
     done
   else
   echo "starting appfinder"
-    xfceuser=$(ps ua -C xfce4-session | grep /usr/bin/xfce4-session  | tail -n1 | awk '{print $1}')
+    xfceuser=$(ps u -C xfce4-session | tail -n1 | awk '{print $1}')
     su -c 'DISPLAY=:0.0 xfce4-appfinder' - $xfceuser
   fi
 else