From c2af627e7754db3483a33f508bd481a1514a01b9 Mon Sep 17 00:00:00 2001 From: vimacs Date: Wed, 17 Feb 2010 18:04:19 +0100 Subject: [PATCH] fixed modified: testdata/scripts/op_lid.sh modified: testdata/scripts/op_menu.sh --- testdata/scripts/op_lid.sh | 2 +- testdata/scripts/op_menu.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testdata/scripts/op_lid.sh b/testdata/scripts/op_lid.sh index 88e2087..e87e109 100755 --- a/testdata/scripts/op_lid.sh +++ b/testdata/scripts/op_lid.sh @@ -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 diff --git a/testdata/scripts/op_menu.sh b/testdata/scripts/op_menu.sh index 8dcb7a5..8358845 100755 --- a/testdata/scripts/op_menu.sh +++ b/testdata/scripts/op_menu.sh @@ -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 -- 2.39.5