author | chicken <chicken> | 2005-02-19 08:11:08 (UTC) |
---|---|---|
committer | chicken <chicken> | 2005-02-19 08:11:08 (UTC) |
commit | 07f7d4fa6b0d0ac436494720e465af12e7005cc9 (patch) (unidiff) | |
tree | 6cc51b8e6c009a10df5566be114a06b745359a77 | |
parent | eeb0aa0829b8a1eda5ae567f21d063d4fbfa031e (diff) | |
download | opie-07f7d4fa6b0d0ac436494720e465af12e7005cc9.zip opie-07f7d4fa6b0d0ac436494720e465af12e7005cc9.tar.gz opie-07f7d4fa6b0d0ac436494720e465af12e7005cc9.tar.bz2 |
jornada device fixes
-rw-r--r-- | libopie2/opiecore/device/odevice_jornada.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libopie2/opiecore/device/odevice_jornada.cpp b/libopie2/opiecore/device/odevice_jornada.cpp index 272109b..e4f8510 100644 --- a/libopie2/opiecore/device/odevice_jornada.cpp +++ b/libopie2/opiecore/device/odevice_jornada.cpp | |||
@@ -175,34 +175,34 @@ bool Jornada::setDisplayBrightness( int bright ) | |||
175 | 175 | ||
176 | if ( d->m_model == Model_Jornada_56x ) { | 176 | if ( d->m_model == Model_Jornada_56x ) { |
177 | if ( !bright ) | 177 | if ( !bright ) |
178 | cmdline = QString::fromLatin1( "echo 4 > /sys/class/backlight/sa1100fb/power"); | 178 | cmdline = QString::fromLatin1( "echo 4 > /sys/class/backlight/sa1100fb/power"); |
179 | else | 179 | else |
180 | cmdline = QString::fromLatin1( "echo 0 > /sys/class/backlight/sa1100/power; echo %1 > /sys/class/backlight/sa1100/brightness" ).arg( bright ); | 180 | cmdline = QString::fromLatin1( "echo 0 > /sys/class/backlight/sa1100/power; echo %1 > /sys/class/backlight/sa1100/brightness" ).arg( bright ); |
181 | } else if ( d->m_model == Model_Jornada_720 ) { | 181 | } else if ( d->m_model == Model_Jornada_720 ) { |
182 | cmdline = QString::fromLatin1( "echo %1 > /sys/class/backlight/e1356fb/brightness" ).arg( bright ); | 182 | cmdline = QString::fromLatin1( "echo %1 > /sys/class/backlight/e1356fb/brightness" ).arg( bright ); |
183 | } | 183 | } |
184 | 184 | ||
185 | // No Global::shellQuote as we gurantee it to be sane | 185 | // No Global::shellQuote as we gurantee it to be sane |
186 | res = ( ::system( QFile::encodeName(cmdline) ) == 0 ); | 186 | res = ( ::system( QFile::encodeName(cmdline) ) == 0 ); |
187 | 187 | ||
188 | return res; | 188 | return res; |
189 | } | 189 | } |
190 | 190 | ||
191 | 191 | ||
192 | bool Jornada::setDisplayStatus ( bool on ) | 192 | bool Jornada::setDisplayStatus ( bool on ) |
193 | { | 193 | { |
194 | bool res = false; | 194 | bool res = false; |
195 | 195 | ||
196 | QString cmdline; | 196 | QString cmdline; |
197 | 197 | ||
198 | if ( d->m_model == Model_Jornada_56x ) { | 198 | if ( d->m_model == Model_Jornada_56x ) { |
199 | QString cmdline = QString::fromLatin1( "echo %1 > /sys/class/lcd/*/power; echo %2 > /sys/class/backlight/*/power").arg( on ? "0" : "4" ).arg( on ? "0" : "4" ); | 199 | cmdline = QString::fromLatin1( "echo %1 > /sys/class/lcd/sa1100fb/power; echo %2 > /sys/class/backlight/sa1100fb/power").arg( on ? "0" : "4" ).arg( on ? "0" : "4" ); |
200 | } else if ( d->m_model == Model_Jornada_720 ) { | 200 | } else if ( d->m_model == Model_Jornada_720 ) { |
201 | QString cmdline = QString::fromLatin1( "echo %1 > /sys/class/lcd/e1356fb/power").arg( on ? "0" : "4" ); | 201 | cmdline = QString::fromLatin1( "echo %1 > /sys/class/lcd/e1356fb/power").arg( on ? "0" : "4" ); |
202 | } | 202 | } |
203 | 203 | ||
204 | res = ( ::system( QFile::encodeName(cmdline) ) == 0 ); | 204 | res = ( ::system( QFile::encodeName(cmdline) ) == 0 ); |
205 | 205 | ||
206 | return res; | 206 | return res; |
207 | } | 207 | } |
208 | 208 | ||