Powerd does not release locks requested over dbus when name goes away

Bug #1285646 reported by Sergio Schvezov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
powerd (Ubuntu)
Expired
Critical
Unassigned

Bug Description

powerd: 0.13+14.04.20140129-0ubuntu1

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-phablet:/# ps -ef|grep music |grep -v scope
root 4778 4347 0 09:22 pts/31 00:00:00 grep --color=auto music
root@ubuntu-phablet:/# powerd-cli stats
System Request Statistics:
                                        Active Max Active
  Owner Name Count Active Time Time Active Since
  internal display-request 1 59.993644 59.993644 0.000000
Display Request Statistics:
                                        Active Max Active Display On Display On Flag 0 Flag 0 Flag 1 Flag 1 Flag 2 Flag 2
  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:/# ps -ef|grep music |grep -v scope
phablet 4962 1661 87 09:22 ? 00:00:05 /usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene music-app.qml --file=/home/phablet/Music/14-still_with_me_feat._cristina_soto-seven_lions_remix.mp3 -I ./plugins
root 5064 4347 0 09:22 pts/31 00:00:00 grep --color=auto music
root@ubuntu-phablet:/# powerd-cli stats
System Request Statistics:
                                        Active Max Active
  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:
                                        Active Max Active Display On Display On Flag 0 Flag 0 Flag 1 Flag 1 Flag 2 Flag 2
  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-phablet:/# ps -ef|grep music |grep -v scope
root 5271 4347 0 09:22 pts/31 00:00:00 grep --color=auto music
root@ubuntu-phablet:/# powerd-cli stats
System Request Statistics:
                                        Active Max Active
  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:
                                        Active Max Active Display On Display On Flag 0 Flag 0 Flag 1 Flag 1 Flag 2 Flag 2
  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

Anders (eddiedog988)
Changed in powerd (Ubuntu):
status: New → Confirmed
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

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.

Changed in powerd (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for powerd (Ubuntu) because there has been no activity for 60 days.]

Changed in powerd (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.