[touch] NetworkManager needs to inhibit sleep if hotspot is active
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
Pat McGowan | ||
indicator-network (Ubuntu) |
Fix Released
|
High
|
Pete Woods | ||
network-manager (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
network-manager (Ubuntu RTM) |
Confirmed
|
Undecided
|
Unassigned |
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:/
"* 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."
Related branches
- PS Jenkins bot (community): Approve (continuous-integration)
- Indicator Applet Developers: Pending requested
-
Diff: 621 lines (+466/-0) (has conflicts)12 files modifieddata/com.canonical.powerd.xml (+77/-0)
src/CMakeLists.txt (+1/-0)
src/indicator/CMakeLists.txt (+1/-0)
src/indicator/nmofono/hotspot-manager.cpp (+16/-0)
src/qdbus-stubs/CMakeLists.txt (+7/-0)
src/qdbus-stubs/dbus-types.h (+6/-0)
src/qpowerd/CMakeLists.txt (+16/-0)
src/qpowerd/qpowerd.cpp (+79/-0)
src/qpowerd/qpowerd.h (+58/-0)
tests/integration/CMakeLists.txt (+1/-0)
tests/integration/indicator-network-test-base.cpp (+27/-0)
tests/integration/test-connectivity-api.cpp (+177/-0)
Changed in network-manager (Ubuntu): | |
assignee: | nobody → Tony Espy (awe) |
status: | New → Confirmed |
Changed in network-manager (Ubuntu RTM): | |
status: | New → Confirmed |
Changed in network-manager (Ubuntu): | |
assignee: | Tony Espy (awe) → nobody |
Changed in canonical-devices-system-image: | |
assignee: | nobody → Pat McGowan (pat-mcgowan) |
importance: | Undecided → High |
milestone: | none → ww28-2015 |
status: | New → Confirmed |
Changed in indicator-network (Ubuntu): | |
importance: | Undecided → High |
status: | New → In Progress |
Changed in canonical-devices-system-image: | |
status: | Confirmed → In Progress |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
no longer affects: | ubuntu-system-settings (Ubuntu) |
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. /wiki.ubuntu. com/Networking? action= diff&rev2= 281&rev1= 280> /wiki.ubuntu. com/Power? action= diff&rev2= 75&rev1= 74>
<https:/
<https:/