Diffstat (limited to 'libopie2/opiecore/device/odevice_ramses.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice_ramses.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libopie2/opiecore/device/odevice_ramses.cpp b/libopie2/opiecore/device/odevice_ramses.cpp index c75ea3a..a060695 100644 --- a/libopie2/opiecore/device/odevice_ramses.cpp +++ b/libopie2/opiecore/device/odevice_ramses.cpp @@ -99,18 +99,16 @@ void Ramses::playAlarmSound() { #ifndef QT_NO_SOUND static Sound snd ( "alarm" ); if(!snd.isFinished()) return; changeMixerForAlarm( 0, "/dev/sound/mixer" , &snd); snd.play(); -#else -#error QT_NO_SOUND defined #endif } bool Ramses::suspend() { if ( !isQWS( ) ) // only qwsserver is allowed to suspend return false; @@ -119,17 +117,17 @@ bool Ramses::suspend() ::sync(); int fd; if ((fd = ::open("/proc/sys/pm/suspend", O_WRONLY)) >= 0) { char writeCommand[] = "1\n"; ::write(fd, writeCommand, sizeof(writeCommand) ); ::close(fd); } - + ::usleep ( 200 * 1000 ); return true; } bool Ramses::setDisplayBrightness(int bright) { //qDebug("Ramses::setDisplayBrightness(%d)", bright); |