[Bug 1259326] Re: system-update panel not blocking screen lock/blank while downloading

Barry Warsaw 1259326 at bugs.launchpad.net
Mon Jan 6 16:45:26 UTC 2014


Oh, I think I understand.  You want system-image-dbus to prevent
suspends while it's downloading via the powerd dbus api?

Is there any better documentation of this api than this page:
https://wiki.ubuntu.com/powerd and
http://www.mattfischer.com/blog/?p=460 or UTSL?

Is it better for s-i-dbus to prevent suspends than the system-settings ui?
If so, these would be the steps s-i-dbus takes:

* Do nothing during CheckForUpdate().  If system suspends during this method, it should be easy enough to just recheck.
* Call requestSysState(1) first thing during DownloadUpdate()
* Call clearSysState() when the update finished for any reason (i.e. UpdateDownloaded success signal, UpdateFailed failiure signal,    
    or UpdatePaused signal)
* Call requestSysState(1) when a paused update is resumed.

This means that when the ui calls ApplyUpdate() we will *not*
requestSysState(1) since the reboot will happen almost immediately.
Although, if the state is automatically reset upon reboot, we could
probably do it without much harm.

This also means that during a paused download, the system could still
suspend.

I think that's it; can you think of anything else?

** Changed in: ubuntu-system-image
       Status: New => Confirmed

** Changed in: ubuntu-system-image
   Importance: Undecided => Medium

** Changed in: ubuntu-system-image
    Milestone: None => 2.1

** Tags added: client

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to system-image in Ubuntu.
https://bugs.launchpad.net/bugs/1259326

Title:
  system-update panel not blocking screen lock/blank while downloading

Status in Ubuntu system image (server/client/updater):
  Confirmed
Status in “system-image” package in Ubuntu:
  Confirmed
Status in “ubuntu-system-settings” package in Ubuntu:
  New

Bug description:
  The system-update panel is not blocking the screen form
  locking/blanking, while a download of a new image is in progress.
  Sometimes this seems to result in the new image not being fully
  downloaded (or the UI not properly representing the download, and
  assuming it hasn't been successful), leaving one with an "Install &
  Restart" button that immediately fails when pressed, with no way to
  retry the download.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-system-image/+bug/1259326/+subscriptions



More information about the foundations-bugs mailing list