Last image shown before welcome screen shown on resume
Bug #1192707 reported by
Paul Larson
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
touch-preview-images |
Fix Released
|
High
|
Michael Terry |
Bug Description
Image: 20130618
Device: nexus4
1. open an app, browse to a webpage, etc. Anything will do.
2. set the device down and wait for it to timeout and turn off the screen
3. press the power button to resume
At this point, the first image shown should be the welcome screen, but instead it shows the last thing that was on the screen briefly, then the welcome screen comes into view.
Changed in touch-preview-images: | |
assignee: | nobody → Michał Sawicz (saviq) |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → ubuntu-13.06 |
Changed in touch-preview-images: | |
assignee: | Michał Sawicz (saviq) → Michael Terry (mterry) |
To post a comment you must log in.
So, looking at this, we could just skip the animation and trigger a show() on the greeter when the power comes back on. But there's still a race. So the best solution would be to show the greeter when the screen turns off.
But how do we know when that happens? DPMS doesn't seem to have signals (and that's an X thing anyway). Mir doesn't yet seem to have much of an API to expose that info, and I'm not sure it plans to.
GNOME exposes it over DBus via settings daemon, but we're not running that in Touch.
I guess we can monitor /sys/class/ backlight/ acpi_video0/ actual_ brightness but that seems really low level? Qt doesn't seem to abstract this at all for us. I'll dig a bit deeper, but for now, monitoring /sys is my best avenue.