summaryrefslogtreecommitdiff
path: root/libopie2
authorchicken <chicken>2005-03-03 19:13:07 (UTC)
committer chicken <chicken>2005-03-03 19:13:07 (UTC)
commitadb8960dfcdb18b698f313fc7e7d40209c65b01a (patch) (side-by-side diff)
treec2c70d7a8eb918701472f23934b3406a437fd4bc /libopie2
parent72cedc06be735c1df3046799555b0bc690653e99 (diff)
downloadopie-adb8960dfcdb18b698f313fc7e7d40209c65b01a.zip
opie-adb8960dfcdb18b698f313fc7e7d40209c65b01a.tar.gz
opie-adb8960dfcdb18b698f313fc7e7d40209c65b01a.tar.bz2
fix a typo in the jornada 56x backlight control
Diffstat (limited to 'libopie2') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_jornada.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiecore/device/odevice_jornada.cpp b/libopie2/opiecore/device/odevice_jornada.cpp
index e4f8510..bcde425 100644
--- a/libopie2/opiecore/device/odevice_jornada.cpp
+++ b/libopie2/opiecore/device/odevice_jornada.cpp
@@ -156,49 +156,49 @@ void Jornada::initButtons()
reloadButtonMapping();
}
int Jornada::displayBrightnessResolution() const
{
return 255;
}
bool Jornada::setDisplayBrightness( int bright )
{
bool res = false;
if ( bright > 255 )
bright = 255;
if ( bright < 0 )
bright = 0;
QString cmdline;
if ( d->m_model == Model_Jornada_56x ) {
if ( !bright )
cmdline = QString::fromLatin1( "echo 4 > /sys/class/backlight/sa1100fb/power");
else
- cmdline = QString::fromLatin1( "echo 0 > /sys/class/backlight/sa1100/power; echo %1 > /sys/class/backlight/sa1100/brightness" ).arg( bright );
+ cmdline = QString::fromLatin1( "echo 0 > /sys/class/backlight/sa1100fb/power; echo %1 > /sys/class/backlight/sa1100fb/brightness" ).arg( bright );
} else if ( d->m_model == Model_Jornada_720 ) {
cmdline = QString::fromLatin1( "echo %1 > /sys/class/backlight/e1356fb/brightness" ).arg( bright );
}
// No Global::shellQuote as we gurantee it to be sane
res = ( ::system( QFile::encodeName(cmdline) ) == 0 );
return res;
}
bool Jornada::setDisplayStatus ( bool on )
{
bool res = false;
QString cmdline;
if ( d->m_model == Model_Jornada_56x ) {
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" );
} else if ( d->m_model == Model_Jornada_720 ) {
cmdline = QString::fromLatin1( "echo %1 > /sys/class/lcd/e1356fb/power").arg( on ? "0" : "4" );
}
res = ( ::system( QFile::encodeName(cmdline) ) == 0 );