summaryrefslogtreecommitdiff
path: root/libopie2
authorchicken <chicken>2004-10-11 13:42:02 (UTC)
committer chicken <chicken>2004-10-11 13:42:02 (UTC)
commitd3da21c01659c68dc2cf1dfff1608649977b6e05 (patch) (side-by-side diff)
tree934a04259e38827a48b9e21bfffabd47cb816ca0 /libopie2
parent9c2ff4fd80562f0f92a2662fb2fa95b88284b9b4 (diff)
downloadopie-d3da21c01659c68dc2cf1dfff1608649977b6e05.zip
opie-d3da21c01659c68dc2cf1dfff1608649977b6e05.tar.gz
opie-d3da21c01659c68dc2cf1dfff1608649977b6e05.tar.bz2
remove jornada 56x brightness hack
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_jornada.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libopie2/opiecore/device/odevice_jornada.cpp b/libopie2/opiecore/device/odevice_jornada.cpp
index 60736a1..2cab0c8 100644
--- a/libopie2/opiecore/device/odevice_jornada.cpp
+++ b/libopie2/opiecore/device/odevice_jornada.cpp
@@ -157,21 +157,20 @@ bool Jornada::setDisplayBrightness( int bright )
if ( bright > 255 )
bright = 255;
if ( bright < 0 )
bright = 0;
QString cmdline;
- int value = 255 - bright;
if ( !bright )
cmdline = QString().sprintf( "echo 4 > /sys/class/backlight/sa1100fb/power");
else
- cmdline = QString().sprintf( "echo 0 > /sys/class/backlight/sa1100fb/power; echo %d > /sys/class/backlight/sa1100fb/brightness", value );
+ cmdline = QString().sprintf( "echo 0 > /sys/class/backlight/sa1100fb/power; echo %d > /sys/class/backlight/sa1100fb/brightness", bright );
res = ( ::system( (const char*) cmdline ) == 0 );
return res;
}
bool Jornada::suspend( )