[Pkg-kde-extras] Bug#475011: Impossible to launch guidance-power-manager

Laurent Léonard laurent at open-minds.org
Tue Apr 8 13:14:44 UTC 2008


Package: kde-guidance-powermanager
Version: 0.8.0-2.1
Severity: critical
Tags: patch

--- Please enter the report below this line. ---
Crash at the launch time : 
Traceback (most recent call last):
  File "/usr/share/guidance/python/guidance-power-manager.py", line 1079, in ?
    mainWindow = PowermanagerApp(None, "main window")
  File "/usr/share/guidance/python/guidance-power-manager.py", line 1016, in 
__init__
    self.pmwidget = PowerManager(self,name)
  File "/usr/share/guidance/python/guidance-power-manager.py", line 98, in 
__init__
    self.powermanager = PowerManage()
  File "/usr/share/guidance/python/powermanage.py", line 109, in __init__
    self._checkSuspend()
  File "/usr/share/guidance/python/powermanage.py", line 256, in _checkSuspend
    self.canSuspend = properties["power_management.can_suspend_to_ram"]
KeyError: 'power_management.can_suspend_to_ram'

I suppose HAL properties recently changed... I replaced those 2 lines 
in /usr/share/guidance/python/powermanage.py (line #255 and #256) : 
self.canSuspend = properties["power_management.can_suspend_to_ram"]
self.canHibernate = properties["power_management.can_suspend_to_disk"]
by
self.canSuspend = properties["power_management.can_suspend"]
self.canHibernate = properties["power_management.can_hibernate"]

Now it works again. 

--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.24-1-amd64

Debian Release: lenny/sid
  500 unstable        ftp.fr.debian.org 
  500 stable          security.debian.org 
  500 stable          ftp.fr.debian.org 
 1000 testing         www.emdebian.org 
 1000 testing         security.debian.org 
 1000 testing         ftp.fr.debian.org 
    1 experimental    ftp.fr.debian.org 

--- Package information. ---
Depends             (Version) | Installed
=============================-+-===========
hal                           | 0.5.11~rc2-1
kde-guidance                  | 0.8.0-2.1
python                        | 2.4.4-6
python-dbus                   | 0.82.4-2
python-kde3                   | 3.16.1-1
python-support     (>= 0.7.1) | 0.7.7

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-kde-extras/attachments/20080408/482bf853/attachment.pgp 


More information about the pkg-kde-extras mailing list