← Back to team overview

desktop-packages team mailing list archive

[Bug 1458046] Re: [touch] NetworkManager needs to inhibit sleep if hotspot is active

 

Ubuntu for PC has an auto-suspend option too, so exactly the same
inhibiting behavior should apply there, right? No need for this to be
form-factor-specific.

Anyway, specifications updated.
<https://wiki.ubuntu.com/Networking?action=diff&rev2=281&rev1=280>
<https://wiki.ubuntu.com/Power?action=diff&rev2=75&rev1=74>

** Description changed:

  As Ubuntu touch uses an auto-suspend model, it's possible for the system
  to be suspended while a user has a hotspot active and in use.
  
  In order to prevent such behavior, we should modify NetworkManager to
  inhibit suspend via powerd's DBus interface when hotspot is active and
  one or more clients are connected to the hotspot.   As a first pass,
  inhibiting suspend when hotspot is active would probably be sufficient.
  This could probably be implemented via a NM dispatcher script, which
  would run when the hotspot is activated.
+ 
+ <https://wiki.ubuntu.com/Networking#hotspot-power>:
+ "* Whenever at least one person is using your hotspot, the device should not sleep automatically.
+ * The indicator icon should be different when anyone is connected than when no-one is.
+ * If a hotspot is set up, there should be a “Hotspot” item in the “Ways to reduce battery use” list in “Power” settings."

** Also affects: ubuntu-system-settings (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: indicator-network (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1458046

Title:
  [touch] NetworkManager needs to inhibit sleep if hotspot is active

Status in the base for Ubuntu mobile products:
  New
Status in indicator-network package in Ubuntu:
  New
Status in network-manager package in Ubuntu:
  Confirmed
Status in ubuntu-system-settings package in Ubuntu:
  New
Status in network-manager package in Ubuntu RTM:
  Confirmed

Bug description:
  As Ubuntu touch uses an auto-suspend model, it's possible for the
  system to be suspended while a user has a hotspot active and in use.

  In order to prevent such behavior, we should modify NetworkManager to
  inhibit suspend via powerd's DBus interface when hotspot is active and
  one or more clients are connected to the hotspot.   As a first pass,
  inhibiting suspend when hotspot is active would probably be
  sufficient.   This could probably be implemented via a NM dispatcher
  script, which would run when the hotspot is activated.

  <https://wiki.ubuntu.com/Networking#hotspot-power>:
  "* Whenever at least one person is using your hotspot, the device should not sleep automatically.
  * The indicator icon should be different when anyone is connected than when no-one is.
  * If a hotspot is set up, there should be a “Hotspot” item in the “Ways to reduce battery use” list in “Power” settings."

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


References