Comment 18 for bug 1383277

Revision history for this message
Michael Terry (mterry) wrote : Re: Power dialog sometimes shown on resume

It appears there are multiple ways to reproduce the same symptom, which may be several different technical fixes. Here is one:

1) Download and set https://launchpadlibrarian.net/187754062/mountain.jpeg as your phone's background image.

2) In an "adb shell", run:

(while true; do true; done) & (while true; do true; done) & (while true; do true; done) & (while true; do true; done) &

This will max out the four CPUs on a krillin device. (It would be nice if the 'stress' package was available for ubuntu-rtm. Is there a smarter way to do the above? Something that wouldn't involve manually killing the forked jobs?)

3) Now from the dash, suspend the device.
4) Wait a few seconds.
5) Turn the device on.

About 80% of the time, you will see the power dialog.

The lp:~mterry/unity8/power-button-on-lock branch should fix this. But it seems there are other ways to trigger the power dialog, something to do with roaming and sms messages. So I'm still looking at this bug. Clear reproduction steps for the other ways would be great.