aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_screensaver.h
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-10 09:08:25 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-10 10:18:50 +0900
commitd0c5fb465b699ebe7556c61e14f12c9882620175 (patch)
tree8d5a7538353a3de5469f494db86b259c9f05c614 /src/bin/e_screensaver.h
parentadd new powersave features for supporting a live sleep mode (diff)
downloadenlightenment-d0c5fb465b699ebe7556c61e14f12c9882620175.tar.gz
support connected standby (non-s3 sleep/freeze) that new lpatops sport
this requires we have to force dpms on to reduce power. to avoid glitches with the pointer staying around in x we need to support suspending it too so it hides cleanly like the screen dims or undims. also use the new powersave freeze mode to do this. note that i've tested this on s3 supporting laptops and non-s3 and it "works for me". it may require more testing and work. there is more to power saving than just this as well but for now that's out of scope as you have to mess with linux device autosuspend timeouts and a bunch more (wowlan ... blahblah). i need to find the source of the intermittent wakeups too in e. there is a long lived timeout (8-ish seconds?) but more specifically e keeps waking up from fd's and then reading /sys stuff about battery - some event is causing us to do this... maybe to suspend this or make battery checking very rare when in freeze mode (or screen off) etc. so this fixes some glitches as well as supports a new way of sleeping "alive" when hardware literally doesnt support normal s3 sleep... so kind of a fix with a feature.
Diffstat (limited to 'src/bin/e_screensaver.h')
-rw-r--r--src/bin/e_screensaver.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/e_screensaver.h b/src/bin/e_screensaver.h
index 35e94cbfb..9c26afc98 100644
--- a/src/bin/e_screensaver.h
+++ b/src/bin/e_screensaver.h
@@ -7,6 +7,10 @@ EINTERN void e_screensaver_preinit(void);
EINTERN int e_screensaver_init(void);
EINTERN int e_screensaver_shutdown(void);
+E_API void e_screensaver_ignore(void);
+E_API void e_screensaver_unignore(void);
+E_API Eina_Bool e_screensaver_ignore_get(void);
+
E_API void e_screensaver_update(void);
E_API int e_screensaver_timeout_get(Eina_Bool use_idle);