summaryrefslogtreecommitdiff
authorchicken <chicken>2004-10-03 17:49:05 (UTC)
committer chicken <chicken>2004-10-03 17:49:05 (UTC)
commit9e6c7c669b22e0f8091882557cd1e7091129d026 (patch) (side-by-side diff)
tree04e68acbcc54c13393a9c5a5538d36bc1dc21b1c
parentaadb02c4219cf3d7a11e5293ba3205e8a4a0efe7 (diff)
downloadopie-9e6c7c669b22e0f8091882557cd1e7091129d026.zip
opie-9e6c7c669b22e0f8091882557cd1e7091129d026.tar.gz
opie-9e6c7c669b22e0f8091882557cd1e7091129d026.tar.bz2
correct jornada 56x sysfs handlings
Diffstat (more/less context) (ignore 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 60736a1..2872c0e 100644
--- a/libopie2/opiecore/device/odevice_jornada.cpp
+++ b/libopie2/opiecore/device/odevice_jornada.cpp
@@ -178,31 +178,31 @@ bool Jornada::suspend( )
{
qDebug("ODevice::suspend");
if ( !isQWS( ) ) // only qwsserver is allowed to suspend
return false;
if ( d->m_model == Model_Unknown ) // better don't suspend in qvfb / on unkown devices
return false;
bool res = false;
ODevice::sendSuspendmsg();
struct timeval tvs;
::gettimeofday ( &tvs, 0 );
::sync(); // flush fs caches
res = ( ::system ( "apm --suspend" ) == 0 );
return res;
}
bool Jornada::setDisplayStatus ( bool on )
{
bool res = false;
- QString cmdline = QString( "echo %1 > /sys/class/lcd/sa1100fb/power; echo %2 > /sys/class/backlight/sa1100fb/power").arg( on ? "0" : "4" ).arg( on ? "0" : "4" );
+ QString cmdline = QString( "echo %1 > /sys/class/lcd/sa1100fb/power; echo %2 > /sys/class/backlight/sa1100fb/power").arg( on ? "4" : "0" ).arg( on ? "4" : "0" );
res = ( ::system( (const char*) cmdline ) == 0 );
return res;
}