author | sandman <sandman> | 2002-08-28 23:01:58 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-08-28 23:01:58 (UTC) |
commit | 42e4592219600d6919c93dec82635e2b64382b37 (patch) (side-by-side diff) | |
tree | 1201ccb206b2b4176c0886a85093e6ff40cc3cbf | |
parent | c46685713eb4ef4bfd0a9dcb7eb53b883704a759 (diff) | |
download | opie-42e4592219600d6919c93dec82635e2b64382b37.zip opie-42e4592219600d6919c93dec82635e2b64382b37.tar.gz opie-42e4592219600d6919c93dec82635e2b64382b37.tar.bz2 |
- speedup for suspend: don't switch off backlight
- don't call processEvents on resume since it is not really needed anymore
-rw-r--r-- | core/launcher/desktop.cpp | 5 | ||||
-rw-r--r-- | core/launcher/main.cpp | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index fb10602..1ec477c 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp @@ -613,13 +613,13 @@ void Desktop::togglePower() excllock = true; bool wasloggedin = loggedin; loggedin=0; suspendTime = QDateTime::currentDateTime(); - qpe_setBacklight ( 0 ); // force LCD off +// qpe_setBacklight ( 0 ); // force LCD off (sandman: why ????) if ( wasloggedin ) blankScreen(); ODevice::inst ( )-> suspend ( ); @@ -633,15 +633,12 @@ void Desktop::togglePower() if ( wasloggedin ) login(TRUE); execAutoStart(); //qcopBridge->closeOpenConnections(); - //qDebug("called togglePower()!!!!!!"); - - qApp-> processEvents ( ); excllock = false; } void Desktop::toggleLight() { diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp index 3ee5e26..5cf624b 100644 --- a/core/launcher/main.cpp +++ b/core/launcher/main.cpp @@ -349,24 +349,25 @@ void create_pidfile ( ) void remove_pidfile ( ) { ::unlink ( pidfile_path ); } -void handle_sigterm ( int sig ) +void handle_sigterm ( int /* sig */ ) { if ( qApp ) qApp-> quit ( ); } int main( int argc, char ** argv ) { #ifndef SINGLE_APP ::signal( SIGCHLD, SIG_IGN ); ::signal ( SIGTERM, handle_sigterm ); + ::signal ( SIGINT, handle_sigterm ); ::setsid ( ); ::setpgid ( 0, 0 ); ::atexit ( remove_pidfile ); create_pidfile ( ); |