summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_jornada.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libopie2/opiecore/device/odevice_jornada.cpp b/libopie2/opiecore/device/odevice_jornada.cpp
index 759d6a3..1f69326 100644
--- a/libopie2/opiecore/device/odevice_jornada.cpp
+++ b/libopie2/opiecore/device/odevice_jornada.cpp
@@ -174,11 +174,11 @@ bool Jornada::setDisplayBrightness( int bright )
QString cmdline;
int value = 255 - bright;
if ( !bright )
- cmdline = QString().sprintf( "echo 0 > /sys/class/backlight/sa1100fb/power");
+ cmdline = QString().sprintf( "echo 4 > /sys/class/backlight/sa1100fb/power");
else
- cmdline = QString().sprintf( "echo 1 > /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", value );
res = ( ::system( (const char*) cmdline ) == 0 );
return res;
@@ -209,9 +209,9 @@ bool Jornada::suspend( )
bool Jornada::setDisplayStatus ( bool on )
{
bool res = false;
- QString cmdline = QString().sprintf( "echo %d > /sys/class/lcd/sa1100fb/power; echo %d > /sys/class/backlight/sa1100fb/power", on ? "1" : "0", on ? "1" : "0" );
+ QString cmdline = QString().sprintf( "echo %d > /sys/class/lcd/sa1100fb/power; echo %d > /sys/class/backlight/sa1100fb/power", on ? "0" : "4", on? "0" : "4" );
res = ( ::system( (const char*) cmdline ) == 0 );
return res;