Disable splash screen when launching openmoko app

In openmoko (stable hybrid release, SHR), how do you programmatically disable the screensaver (dim / blank screen after a few seconds of inactivity) only while your application is running?

0


source to share


3 answers


In X, you can run

xset s off

      



to disable the screen saver. Likewise, gnome / freedesktop provides a DBUS API for managing and blocking the splash screen. I don't know if OpenMoko supports the freedesktop spec, but if it does, you should be able to use DBUS directly. You can see how Totem does it here .

+1


source


FSORaw is a wrapper that you can use externally to require resources like display. This will prevent screen blanking. But if this is your own application, then I would recommend requiring the same display resources in your software.



more about fsoraw and resources

+1


source


This can be done via the D-BUS freesmartphone API , it can also prevent suspension.

mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy CPU auto
mdbus -s org.freesmartphone.ousaged /org/freesmartphone/Usage org.freesmartphone.Usage.SetResourcePolicy Display auto

      

Replace cars with enabled or disabled.

Documentation on this D-BUS method can be found at http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Usage.html;hb=HEAD#GetResourcePolicy

0


source







All Articles