View Single Post
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#36
Originally Posted by Copernicus View Post
Thanks! I will check for that signal, then (especially as I don't have a QMaemo5HomescreenAdaptor around when Fettuccine is running as an app ).

BTW, another newbie question here: I've just been browsing the documentation a bit, and along with the screen lock signal, there appears to be a screen "status" signal (with values for "on", "dimmed", and "off"):

http://maemo.org/api_refs/5.0/5.0-fi...ba2daba3e609e1

Would you know if "on" and "off" for this signal are identical to "locked" and "unlocked" for the tklock mode signal, or can the screen go dark without being in "locked" mode? (I seem to recall situations where the screen was dark but still detected when I touched it...)
The screen can be off without being locked if 'Lock screen automatically' is disabled in the settings. I'm not sure if the display_status_ind signal is emitted alongside the tklock_mode_ind signal if the screen is locked manually. To be honest, I didn't actually read the documentation before implementing my solution. For the purpose of suspending/resuming UI updates, it makes sense to respond to the screen being off/on as well as locked/unlocked.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 

The Following 2 Users Say Thank You to marxian For This Useful Post: