summaryrefslogtreecommitdiff
path: root/libopie2
Unidiff
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
@@ -162,11 +162,10 @@ bool Jornada::setDisplayBrightness( int bright )
162 162
163 QString cmdline; 163 QString cmdline;
164 164
165 int value = 255 - bright;
166 if ( !bright ) 165 if ( !bright )
167 cmdline = QString().sprintf( "echo 4 > /sys/class/backlight/sa1100fb/power"); 166 cmdline = QString().sprintf( "echo 4 > /sys/class/backlight/sa1100fb/power");
168 else 167 else
169 cmdline = QString().sprintf( "echo 0 > /sys/class/backlight/sa1100fb/power; echo %d > /sys/class/backlight/sa1100fb/brightness", value ); 168 cmdline = QString().sprintf( "echo 0 > /sys/class/backlight/sa1100fb/power; echo %d > /sys/class/backlight/sa1100fb/brightness", bright );
170 169
171 res = ( ::system( (const char*) cmdline ) == 0 ); 170 res = ( ::system( (const char*) cmdline ) == 0 );
172 171