Shutdown dialog appears on resume
Bug #1508563 reported by
Michael Terry
This bug affects 14 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
Medium
|
kevin gunn | ||
unity8 (Ubuntu) |
Fix Released
|
Medium
|
Michael Terry |
Bug Description
This is very similar to old friends bug 1383277 and bug 1410830.
But we never fully vanquished the beast. The dialog still appears on resume in some situations where the system is very loaded.
(also when not at all loaded)
I suspect what is happening is that we process the power-button-
But instead, we should compare event timestamps to determine that. (Which I'm assuming we aren't doing because this bug exists.)
Related branches
lp://staging/~mterry/unity8/shutdown-dialog-on-resume
- PS Jenkins bot (community): Needs Fixing (continuous-integration)
- Albert Astals Cid (community): Approve
- Michael Zanetti (community): Needs Information
-
Diff: 179 lines (+51/-36)5 files modifiedplugins/Utils/windowkeysfilter.cpp (+15/-1)
plugins/Utils/windowkeysfilter.h (+7/-0)
qml/Components/PhysicalKeysMapper.qml (+16/-23)
qml/Shell.qml (+2/-2)
tests/qmltests/Components/tst_PhysicalKeysMapper.qml (+11/-10)
Changed in unity8 (Ubuntu): | |
assignee: | nobody → Michael Terry (mterry) |
status: | New → In Progress |
Changed in unity8 (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
summary: |
- Shutdown dialog appears on resume under high load + Shutdown dialog appears on resume |
Changed in canonical-devices-system-image: | |
status: | New → In Progress |
importance: | Undecided → Medium |
milestone: | none → ww46-2015 |
Changed in canonical-devices-system-image: | |
assignee: | nobody → kevin gunn (kgunn72) |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Specifically, the load seems to only matter for dbus (which makes sense, it would delay IPC). So this mostly comes up when we see bug 1480877.
The following line reproduces this bug fairly easily if you press the power button a few times after running it:
sudo cpulimit -l 1 -c 1 -p `pidof dbus-daemon`
I have a proposed fix, but want broader comment on whether it's crack or not.