summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice_jornada.cpp
authorchicken <chicken>2004-05-30 09:37:02 (UTC)
committer chicken <chicken>2004-05-30 09:37:02 (UTC)
commit5bd7c2eee656e8f30635921f15770bd4a43da9e6 (patch) (unidiff)
tree727cbc6c13b4f6d412bfe8706acca229fa047366 /libopie2/opiecore/device/odevice_jornada.cpp
parent9f56a986d7d509ec0b75b5d039efa22dbaec2c03 (diff)
downloadopie-5bd7c2eee656e8f30635921f15770bd4a43da9e6.zip
opie-5bd7c2eee656e8f30635921f15770bd4a43da9e6.tar.gz
opie-5bd7c2eee656e8f30635921f15770bd4a43da9e6.tar.bz2
LCD/Backlight control has changed a bit
Diffstat (limited to 'libopie2/opiecore/device/odevice_jornada.cpp') (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
@@ -172,15 +172,15 @@ bool Jornada::setDisplayBrightness( int bright )
172 bright = 0; 172 bright = 0;
173 173
174 QString cmdline; 174 QString cmdline;
175 175
176 int value = 255 - bright; 176 int value = 255 - bright;
177 if ( !bright ) 177 if ( !bright )
178 cmdline = QString().sprintf( "echo 0 > /sys/class/backlight/sa1100fb/power"); 178 cmdline = QString().sprintf( "echo 4 > /sys/class/backlight/sa1100fb/power");
179 else 179 else
180 cmdline = QString().sprintf( "echo 1 > /sys/class/backlight/sa1100fb/power; echo %d > /sys/class/backlight/sa1100fb/brightness", value ); 180 cmdline = QString().sprintf( "echo 0 > /sys/class/backlight/sa1100fb/power; echo %d > /sys/class/backlight/sa1100fb/brightness", value );
181 181
182 res = ( ::system( (const char*) cmdline ) == 0 ); 182 res = ( ::system( (const char*) cmdline ) == 0 );
183 183
184 return res; 184 return res;
185} 185}
186 186
@@ -207,13 +207,13 @@ bool Jornada::suspend( )
207} 207}
208 208
209bool Jornada::setDisplayStatus ( bool on ) 209bool Jornada::setDisplayStatus ( bool on )
210{ 210{
211 bool res = false; 211 bool res = false;
212 212
213 QString cmdline = QString().sprintf( "echo %d > /sys/class/lcd/sa1100fb/power; echo %d > /sys/class/backlight/sa1100fb/power", on ? "1" : "0", on ? "1" : "0" ); 213 QString cmdline = QString().sprintf( "echo %d > /sys/class/lcd/sa1100fb/power; echo %d > /sys/class/backlight/sa1100fb/power", on ? "0" : "4", on? "0" : "4" );
214 214
215 res = ( ::system( (const char*) cmdline ) == 0 ); 215 res = ( ::system( (const char*) cmdline ) == 0 );
216 216
217 return res; 217 return res;
218} 218}
219 219