Powerd does not release locks requested over dbus when name goes away
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
powerd (Ubuntu) |
Expired
|
Critical
|
Unassigned |
Bug Description
powerd: 0.13+14.
The scenario would be:
- check locks
- play a tune with the music app
- check locks (a lock requested by an anonymous name should show up)
- close music
- check locks (the anonymous name should go away)
This should be maked as critical as it drains battery.
This is easily reproduceable with the music app
root@ubuntu-
root 4778 4347 0 09:22 pts/31 00:00:00 grep --color=auto music
root@ubuntu-
System Request Statistics:
Owner Name Count Active Time Time Active Since
internal display-request 1 59.993644 59.993644 0.000000
Display Request Statistics:
Owner Name Count Active Time Time Active Since Time Since On Time On Since On Time On Since On Time On Since
internal activity-timer 1 59.776911 59.776911 0.000000 59.776911 0.000000 0.000000 0.000000 0.000000 0.000000 44.789634 0.000000
root@ubuntu-
phablet 4962 1661 87 09:22 ? 00:00:05 /usr/lib/
root 5064 4347 0 09:22 pts/31 00:00:00 grep --color=auto music
root@ubuntu-
System Request Statistics:
Owner Name Count Active Time Time Active Since
internal display-request 2 78.068896 59.993644 204.477546
:1.60 4962-background 1 4.907990 4.907990 217.644839
Display Request Statistics:
Owner Name Count Active Time Time Active Since Time Since On Time On Since On Time On Since On Time On Since
internal activity-timer 2 77.854942 59.776911 204.477851 77.854942 204.477851 0.000000 0.000000 0.000000 0.000000 62.867665 204.477851
root@ubuntu-
root 5271 4347 0 09:22 pts/31 00:00:00 grep --color=auto music
root@ubuntu-
System Request Statistics:
Owner Name Count Active Time Time Active Since
internal display-request 2 90.312365 59.993644 204.477546
:1.60 4962-background 1 11.347066 11.347066 0.000000
Display Request Statistics:
Owner Name Count Active Time Time Active Since Time Since On Time On Since On Time On Since On Time On Since
internal activity-timer 2 90.098167 59.776911 204.477851 90.098167 204.477851 0.000000 0.000000 0.000000 0.000000 75.110890 204.477851
Changed in powerd (Ubuntu): | |
status: | New → Confirmed |
Can't reproduce this issue with current image.
Use powerd-cli list to get the active locks, and you'll see that the one for media-hub goes away after you close down the app.