Screen on time
Is there any way to know the screen on time of the phone? I tried screen usage monitor from storeman but it isn't working. Im using Intex Aqua Fish.
We have moved to a new Sailfish OS Forum. Please start new discussions there.
Is there any way to know the screen on time of the phone? I tried screen usage monitor from storeman but it isn't working. Im using Intex Aqua Fish.
You can query display state statistics from mce service.
Either with mcetool
mcetool --get-display-stats=human
or directly from D-Bus with equivalent of:
dbus-send --system --type=method_call --print-reply --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.get_display_stats
EDIT:
The output has three values: display state name, total time spent in that state, and number of times the state has been entered.
The sum of time values should be equal to uptime. Time before currently running mce process was started ends up calculated in "UNDEF". Normally mce starts early in bootup and keeps running until the device shuts down, so the undefined time should be fairly small and static. POWER_UP and POWER_DOWN are transient states which occur when the display is physcally being powered up / down. Normally POWER_UP is followed by ON state, and POWER_DOWN is followed by OFF state. But if "lpm" mode is enabled, the display can be physucally powered up for displaying lpm screen while it logically (from application program point of view) is not actually ON.
The entry-to-state-count numbers go something like:
This thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2018-10-28 16:50:52 +0200
Seen: 419 times
Last updated: Oct 28 '18
Volume rocker caused screen discoloration
Screen orientation setting / locking
display sleep after "never" option ie. "display always on" is needed
Delay between screen shuts off and lock activates [answered]
who else has to aim super-carefully near the borders of the display?
rotate screen applications [duplicate]
Add "wallpaper"/"Ambience" setting to Settings/Display [released]
Oh man. I had to read your question ten times to understand that you are talking about "screen on" time, and not about having your screen "on time" :-)
dirksche ( 2018-10-28 20:17:52 +0200 )edit@dirksche Hahaha, I'm not really sure how else to say it, though. :D
utkarsh ( 2018-10-28 21:18:24 +0200 )edit