← Back to team overview

touch-packages team mailing list archive

[Bug 1285646] Re: Powerd does not release locks requested over dbus when name goes away

 

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to powerd in Ubuntu.
https://bugs.launchpad.net/bugs/1285646

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

Status in powerd package in Ubuntu:
  Incomplete

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/powerd/+bug/1285646/+subscriptions