Opened 12 years ago

Closed 8 years ago

Last modified 7 years ago

#616 closed task (fixed)

battery device: replace HAL with DeviceKit-power

Reported by: sascha_silbe Owned by: tomeu
Priority: Unspecified by Maintainer Milestone:
Component: Sugar Version: Git as of bugdate
Severity: Major Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: New

Description

If hald is not running, the following traceback happens:

1237823146.126622 ERROR root: Exception while loading extension:
Traceback (most recent call last):

File "/home/sugar/sugar-jhbuild/install/lib/python2.5/site-packages/jarabe/frame/devicestray.py", line 36, in init

mod.setup(self)

File "/home/sugar/sugar-jhbuild/install/share/sugar/extensions/deviceicon/battery.py", line 247, in setup

'/org/freedesktop/Hal/Manager')

File "/var/lib/python-support/python2.5/dbus/bus.py", line 244, in get_object

follow_name_owner_changes=follow_name_owner_changes)

File "/var/lib/python-support/python2.5/dbus/proxies.py", line 241, in init

self._named_service = conn.activate_name_owner(bus_name)

File "/var/lib/python-support/python2.5/dbus/bus.py", line 183, in activate_name_owner

self.start_service_by_name(bus_name)

File "/var/lib/python-support/python2.5/dbus/bus.py", line 281, in start_service_by_name

'su', (bus_name, flags)))

File "/var/lib/python-support/python2.5/dbus/connection.py", line 622, in call_blocking

message, timeout)

DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Hal was not provided by any .service files

A fallback to acpid would be great (as that one usually needs to run anyway for power button etc. to work).
At the very least, it should catch the exception, though.

Change History (4)

comment:1 Changed 12 years ago by tomeu

  • Milestone changed from Unspecified by Release Team to 0.86

comment:2 Changed 11 years ago by sascha_silbe

  • Milestone changed from 0.86 to 0.90
  • Priority changed from Low to Unspecified by Maintainer
  • Severity changed from Minor to Major
  • Summary changed from battery device: fail gracefully if hald is not running to battery device: replace HAL with DeviceKit-power
  • Type changed from defect to task

HAL is finally going to die. gnome-power-manager seems to use DeviceKit-power for the battery and power management part.

comment:3 Changed 8 years ago by dnarvaez

  • Resolution set to fixed
  • Status changed from new to closed

No trace of Hal in sugar these days.

comment:4 Changed 7 years ago by dnarvaez

  • Milestone 0.90 deleted

Milestone 0.90 deleted

Note: See TracTickets for help on using tickets.