r2204 - trunk/src/target/OM-2007/panel-plugins/openmoko-panel-mainmenu/src

mickey at sita.openmoko.org mickey at sita.openmoko.org
Sat Jun 9 18:15:26 CEST 2007


Author: mickey
Date: 2007-06-09 18:15:23 +0200 (Sat, 09 Jun 2007)
New Revision: 2204

Modified:
   trunk/src/target/OM-2007/panel-plugins/openmoko-panel-mainmenu/src/buttonactions.c
Log:
openmoko-panel-mainmenu: make MOKO_POWERSAVE opt-in again


Modified: trunk/src/target/OM-2007/panel-plugins/openmoko-panel-mainmenu/src/buttonactions.c
===================================================================
--- trunk/src/target/OM-2007/panel-plugins/openmoko-panel-mainmenu/src/buttonactions.c	2007-06-09 16:12:05 UTC (rev 2203)
+++ trunk/src/target/OM-2007/panel-plugins/openmoko-panel-mainmenu/src/buttonactions.c	2007-06-09 16:15:23 UTC (rev 2204)
@@ -40,7 +40,7 @@
 #include <sys/stat.h>
 #include <linux/input.h>
 
-//#undef DEBUG_THIS_FILE
+#undef DEBUG_THIS_FILE
 #define DEBUG_THIS_FILE
 
 //FIXME find out through sysfs
@@ -153,7 +153,7 @@
     g_source_add_poll( button_watcher, &power_fd );
     g_source_attach( button_watcher, NULL );
 
-    if ( getenv( "MOKO_POWERSAVE" ) == NULL )
+    if ( getenv( "MOKO_POWERSAVE" ) != NULL )
     {
 
         int tsfd = open( TOUCHSCREEN_EVENT_PATH, O_RDONLY );
@@ -170,7 +170,7 @@
         panel_mainmenu_sound_init();
     }
     else
-        g_debug( "MOKO_POWERSAVE set. Not enabling power management." );
+        g_debug( "MOKO_POWERSAVE=yes not set. Not enabling power management." );
 
     return TRUE;
 }





More information about the commitlog mailing list