[Bug 1623853] Re: Device appears to be off after updating to 15Sept2016's rc-proposed image
Alexandros Frantzis
alexandros.frantzis at canonical.com
Wed Oct 5 10:49:28 UTC 2016
> Can repowerd simply hold a lock until the screen dbus service is
connected?
(I am assuming you are referring to a display-on lock, which also
disallows suspends).
repowerd could hold a lock, but, IMO:
1. repowerd is the wrong place to put this logic. repowerd shouldn't
have to know, even implicitly, about the boot time dependencies. As an
example of why this is fragile, if we decide to move USC before or in
parallel with apparmor reprofiling (which I suggest we do), this logic
will stop having the desired effect. It would be much better to use a
suspend block during the whole boot process (repowerd started -> unity8
started) using the init system facilities, as described in comment #31.
2. this lock by itself would only improve the user experience very
slightly, since it would brighten the backlight but the screen would
still remain black and unresponsive to power keys for some time until
USC starts.
I think the best solution from a UX and cleanliness perspective would
be:
1. Start USC before or in parallel with apparmor reprofiling, so the user gets some visual indication that the system is working and can at least turn the screen on/off. This is optional, but I think improves UX a lot.
2. Acquire a suspend blocker (using an init job) when repowerd starts, release when unity8 (not USC) has started or failed to start.
I'll try to find a way to recreate the "profiles need recompilation"
scenario without flashing a new image, so we can test easily. I will
provide a prototype for the proposed solution for people to try out.
--
You received this bug notification because you are a member of Ubuntu
Phablet Team, which is subscribed to repowerd in Ubuntu.
https://bugs.launchpad.net/bugs/1623853
Title:
Device appears to be off after updating to 15Sept2016's rc-proposed
image
To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1623853/+subscriptions
More information about the Ubuntu-reviews
mailing list