[Bug 1502145] Re: Apps can keep screen lit permanently
The original report for the browser was closed some time ago so I suggest we need a new bug. Per comment #27 this may be a new behavior with the new repowered in ota13. (I added lp:1630986) Per comment #25 I think this is actually functioning as intended, if an app sets display on and is an active app we honor it. What is missing IMO is any indication that this is the state of the display. Also would be nice to add display on to the app permissions controlled via settings.(lp:1630989) ** No longer affects: qtmir (Ubuntu) ** No longer affects: unity-system-compositor (Ubuntu) ** Changed in: canonical-devices-system-image Status: Confirmed => Fix Released ** No longer affects: unity8 (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
Bob, could you please attach /var/log/repowerd.log and /var/log/syslog to this bug. It could help us debug this issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
M10 tablet, OTA13 I had not seen this problem until I installed OTA13. Now my screen never blanks. I pretty much only use the web browser app. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Attachment added: "ubuntu-silo-installer.fboucault_0.1_armhf.click" https://bugs.launchpad.net/ubuntu/+source/unity-system-compositor/+bug/1502145/+attachment/4588418/+files/ubuntu-silo-installer.fboucault_0.1_armhf.click -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
It's very easy to reproduce now. Just run an app that requests the screen to stay on, in my case ubuntu-silo-installer (click package attached). Steps to reproduce: - launch the app - press the power button to lock the phone/dim the screen - now send a text message to the phone Expected results - screen turns on for notification, then goes black after timeout Actual results: - screen turns on for notification then stays on Seems to happen even if you move the app to the background before turning off the screen. Whenever the screen is locked or hte app is moved to the background we should remove the lock that is causing the screen to stay on. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Changed in: unity-system-compositor (Ubuntu) Importance: Undecided => High ** Changed in: unity8 (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
still seeing this issue on krillin, and it's very easy to reproduce: 1) launch a few apps, system-settings, messaging-app, address book 2) put phone to sleep 3) send a text message to the phone or recv some other kind of notification (gmail, telegram, etc) Expected Results: - phone screen turns on for notification and then goes back sleep in some seconds Actual Results: - phone screen turns on for notification and never goes back to sleep -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Changed in: oxide/1.10 Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Changed in: canonical-devices-system-image Milestone: None => backlog -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Changed in: canonical-devices-system-image Milestone: ww02-2016 => None -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** No longer affects: webbrowser-app (Ubuntu) ** Changed in: canonical-devices-system-image Importance: Critical => High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
Per comment #17 this is not fully fixed ** Changed in: canonical-devices-system-image Status: Fix Released => Confirmed ** Changed in: canonical-devices-system-image Milestone: ww46-2015 => ww02-2016 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Changed in: canonical-devices-system-image Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
this just happened again to my krillin, rc-proposed, r181 sudo dbus-send --print-reply=literal --system --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID string:":1.77" reports unity8 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Changed in: canonical-devices-system-image Status: Confirmed => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Changed in: canonical-devices-system-image Milestone: ww02-2016 => ww46-2015 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: qtmir (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: unity-system-compositor (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: unity8 (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
I have seen this (screen lit and never goes blank) in OTA-7, bq aquaris 4.5. I simply cancelled an alarm, and it happened. syslog attached, ** Attachment added: "syslog" https://bugs.launchpad.net/ubuntu/+source/unity-system-compositor/+bug/1502145/+attachment/4513286/+files/syslog -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Changed in: oxide/1.10 Milestone: None => 1.10.4 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Changed in: canonical-devices-system-image Milestone: ww46-2015 => ww02-2016 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Changed in: canonical-devices-system-image Assignee: David Barth (dbarth) => Michał Sawicz (saviq) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Also affects: oxide/1.10 Importance: Undecided Status: New ** Changed in: oxide/1.10 Assignee: (unassigned) => Olivier Tilloy (osomon) ** Changed in: oxide/1.10 Status: New => Fix Committed ** Changed in: oxide/1.10 Importance: Undecided => Critical -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Branch linked: lp:oxide/1.10 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Changed in: oxide Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Branch linked: lp:oxide -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
I'm reopening the unity-system-compositor task, because the bug still exists there. Even if oxide will lift the screen lock when unfocused, who's to say other apps will behave well, too? We need to make sure that only the foreground app can request a screen lock, which means we need to refactor how it works and have the shell proxy the requests to u-s-c. ** Changed in: unity-system-compositor (Ubuntu) Status: Invalid => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Changed in: unity-system-compositor (Ubuntu) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Changed in: oxide Status: Confirmed => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
** Branch linked: lp:~osomon/oxide/prevent-concurrent-power-save-blocks -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
I have instrumented oxide, and I’m seeing the following: Start playback of video, two instances of PowerSaveBlocker (one for video, one for audio) are created and request a lock: [1015/20:INFO:oxide_power_save_blocker.cc(260)] PowerSaveBlocker::PowerSaveBlocker() 0xb8d11938 : Playing video [1015/20:INFO:oxide_power_save_blocker.cc(88)] PowerSaveBlocker::Init() 0xb8d11938 : -1 [1015/20:INFO:oxide_power_save_blocker.cc(107)] PowerSaveBlocker::ApplyBlock() 0xb8d11938 : -1 [1015/20:INFO:oxide_power_save_blocker.cc(157)] PowerSaveBlocker::ApplyBlockUnityScreenService() 0xb8d11938 : 3 [1015/20:INFO:oxide_power_save_blocker.cc(260)] PowerSaveBlocker::PowerSaveBlocker() 0xb8a15ad0 : Playing audio [1015/20:INFO:oxide_power_save_blocker.cc(88)] PowerSaveBlocker::Init() 0xb8a15ad0 : -1 [1015/20:INFO:oxide_power_save_blocker.cc(107)] PowerSaveBlocker::ApplyBlock() 0xb8a15ad0 : -1 [1015/20:INFO:oxide_power_save_blocker.cc(157)] PowerSaveBlocker::ApplyBlockUnityScreenService() 0xb8a15ad0 : 4 Press power button, the two PowerSaveBlocker instances correctly release their locks, as expected: [1015/201117:INFO:oxide_power_save_blocker.cc(99)] PowerSaveBlocker::CleanUp() 0xb8d11938 : 3 [1015/201117:INFO:oxide_power_save_blocker.cc(99)] PowerSaveBlocker::CleanUp() 0xb8a15ad0 : 4 [1015/201117:INFO:oxide_power_save_blocker.cc(119)] PowerSaveBlocker::RemoveBlock() 0xb8d11938 : 3 [1015/201117:INFO:oxide_power_save_blocker.cc(119)] PowerSaveBlocker::RemoveBlock() 0xb8a15ad0 : 4 Press power button again to wake screen, unlock screen, playback resumes but Init() appears to be called twice on each instance: [1015/201130:INFO:oxide_power_save_blocker.cc(88)] PowerSaveBlocker::Init() 0xb8d11938 : -1 [1015/201130:INFO:oxide_power_save_blocker.cc(88)] PowerSaveBlocker::Init() 0xb8a15ad0 : -1 [1015/201130:INFO:oxide_power_save_blocker.cc(107)] PowerSaveBlocker::ApplyBlock() 0xb8d11938 : -1 [1015/201130:INFO:oxide_power_save_blocker.cc(88)] PowerSaveBlocker::Init() 0xb8d11938 : -1 [1015/201130:INFO:oxide_power_save_blocker.cc(88)] PowerSaveBlocker::Init() 0xb8a15ad0 : -1 [1015/201130:INFO:oxide_power_save_blocker.cc(157)] PowerSaveBlocker::ApplyBlockUnityScreenService() 0xb8d11938 : 5 [1015/201130:INFO:oxide_power_save_blocker.cc(107)] PowerSaveBlocker::ApplyBlock() 0xb8a15ad0 : -1 [1015/201131:INFO:oxide_power_save_blocker.cc(157)] PowerSaveBlocker::ApplyBlockUnityScreenService() 0xb8a15ad0 : 6 [1015/201131:INFO:oxide_power_save_blocker.cc(107)] PowerSaveBlocker::ApplyBlock() 0xb8d11938 : 5 [1015/201131:INFO:oxide_power_save_blocker.cc(157)] PowerSaveBlocker::ApplyBlockUnityScreenService() 0xb8d11938 : 7 [1015/201131:INFO:oxide_power_save_blocker.cc(107)] PowerSaveBlocker::ApplyBlock() 0xb8a15ad0 : 6 [1015/201131:INFO:oxide_power_save_blocker.cc(157)] PowerSaveBlocker::ApplyBlockUnityScreenService() 0xb8a15ad0 : 8 I’m suspecting that Init() is called once by chromium itself when it resumes the paused playback, and a second time in the meantime by the code that handles application state changes, when oxide detects that the application got focused. This is a bug in oxide: a call to Init() should bail out if another Init() has already been requested, to avoid two concurrent lock requests. ** Also affects: oxide Importance: Undecided Status: New ** Changed in: oxide Assignee: (unassigned) => Olivier Tilloy (osomon) ** Changed in: oxide Importance: Undecided => Critical ** Changed in: oxide Status: New => Confirmed ** Changed in: webbrowser-app (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
Thanks for the detailed analysis Alexandros. I am able to reproduce the issue reliably on my arale, looking into it. Note that the fact that keepDisplayOn is requested twice is expected: chromium instantiates one PowerSaveBlocker per stream, so for a video with audio, that’s two streams, hence two requests. Perhaps not the most efficient thing to do, but it should be okay as long as the corresponding removeDisplayOnRequest requests are emitted where relevant. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
I have found a way to deterministically reproduce the issue with webbrowser-app. Perhaps there are other scenarios that are problematic, but hopefully this will at least provide some hints. Below are the steps and between them the USC logs I get for each step, which give some insight into what is going wrong. [TL;DR] The problem seems to be that, for some reason, if after the screen is turned on and logging in the webbrowser is in focus and playing a video (which means that the user previously turned off the screen with the power button while playing a video in the browser) the webbrowser app leaks (doesn't eventually release) two keepDisplayOn requests ids. This causes the screen to stay on even when focusing away from it. [Detailed analysis] 1. Start browser, start watching a youtube video. The browser requests keepDisplayOn twice from two different dbus connections, which is strange, but OK. [1444841076.023016] usc::UnityScreenService: Received request with serial 3 from :1.300 : keepDisplayOn [1444841076.023390] usc::UnityScreenService: Sending reply for serial 3 to :1.300 id: 9 [1444841077.052913] usc::UnityScreenService: Received request with serial 3 from :1.301 : keepDisplayOn [1444841077.053164] usc::UnityScreenService: Sending reply for serial 3 to :1.301 id: 10 2. Turn off screen with power key. Everything is normal the keepDisplayOn requests are released. [1444841087.268477] usc::UnityScreenService: Received request with serial 4 from :1.300 : removeDisplayOnRequest id: 9 [1444841087.274530] usc::UnityScreenService: Received request with serial 4 from :1.301 : removeDisplayOnRequest id: 10 3. Turn on screen with power key, log in, video should resume. Strange things happen here, note the extra keepDisplayOn requests this time (4 vs 2 before, and they are all from webbrowser-app) [1444841106.885474] usc::UnityScreenService: Received request with serial 3 from :1.302 : keepDisplayOn [1444841106.885997] usc::UnityScreenService: Sending reply for serial 3 to :1.302 id: 11 [1444841106.889124] usc::UnityScreenService: Received request with serial 3 from :1.303 : keepDisplayOn [1444841106.889333] usc::UnityScreenService: Sending reply for serial 3 to :1.303 id: 12 [1444841106.895151] usc::UnityScreenService: Received request with serial 3 from :1.304 : keepDisplayOn [1444841106.895258] usc::UnityScreenService: Sending reply for serial 3 to :1.304 id: 13 [1444841106.900406] usc::UnityScreenService: Received request with serial 3 from :1.305 : keepDisplayOn [1444841106.900471] usc::UnityScreenService: Sending reply for serial 3 to :1.305 id: 14 4. Focus away from webbrowser (e.g. go to scopes). webbrowser-app requested 4 keepDisplayOn ids but releases only 2, which causes the screen to stay on. [1444841117.298103] usc::UnityScreenService: Received request with serial 4 from :1.304 : removeDisplayOnRequest id: 13 [1444841117.307436] usc::UnityScreenService: Received request with serial 4 from :1.305 : removeDisplayOnRequest id: 14 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1502145] Re: Apps can keep screen lit permanently
Oxide (the web engine under webbrowser-app) is the one that issues a request to prevent screen blanking when playing a video. It has code to handle releasing the lock when the app goes into the background, so unless the signal doesn’t reach oxide in time before the process is stopped, the lock should be released as expected. See oxide::PowerSaveBlocker::ApplicationStateChanged() in http://bazaar.launchpad.net/~oxide- developers/oxide/oxide.trunk/view/head:/shared/browser/oxide_power_save_blocker.cc#L238. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502145 Title: Apps can keep screen lit permanently To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1502145/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs