- Split polygen applet in a separate app, ran via a .desktop file
(faster zavai startup time, can then integrate a browser in the polygen
applet, makes more sense altogether)
+ - Is there a way to lock the screen completely turning off the touchscreen, so
+ that interrupts are not even generated?
Not quite needed yet:
- GPX log with more features (quality, course, speed, ...)
return;
}
+ // FIXME: X won't see events, but it's still generating interrupts,
+ // isn't it?
int EVIOCGRAB = 0x40044590;
if (Posix.ioctl(screen_lock_fd, EVIOCGRAB, locked ? 1 : 0) != 0)
{
public class Backlight: zavai.Service
{
public dynamic DBus.Object usage;
- public dynamic DBus.Object display;
+ //public dynamic DBus.Object display;
public Backlight()
{
"/org/freesmartphone/Usage",
"org.freesmartphone.Usage");
+ /*
display = zavai.registry.sbus.get_object(
"org.freesmartphone.odeviced",
"/org/freesmartphone/Device/Display/0",
"org.freesmartphone.Device.Display");
+ */
}
// Turn the backlight and then let it fade off
if (!started)
{
try {
- display.SetBacklightPower(false);
+ //display.SetBacklightPower(false);
+ string policy = usage.GetResourcePolicy("Display");
+ if (policy == "auto")
+ {
+ usage.SetResourcePolicy("Display", "disabled");
+ usage.SetResourcePolicy("Display", "auto");
+ }
} catch (GLib.Error e) {
zavai.log.error(e.message);
}