Opened 12 years ago

Closed 7 years ago

Last modified 7 years ago

#615 closed task (fixed)

shutdown/reboot/logout: 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

Currently all of shutdown, reboot and logout only work if hald is running (which is wasting precious resources on embedded systems).
For shutdown and reboot, "sudo poweroff" and "sudo reboot" can be used. For logout, I don't know (yet) why it currently requires HAL at all.
The HAL methods should probably be tried first (since sudo might not be configured correctly), with the above commands used as fallback.

Attachments (1)

sugar-shutdown-no-hal-fallback.patch (2.3 KB) - added by sascha_silbe 12 years ago.
Fallback to poweroff / reboot, fix logout

Download all attachments as: .zip

Change History (8)

Changed 12 years ago by sascha_silbe

Fallback to poweroff / reboot, fix logout

comment:1 Changed 12 years ago by sascha_silbe

  • Bug Status changed from Unconfirmed to New
  • Keywords r? added

comment:2 Changed 12 years ago by tomeu

  • Milestone changed from Unspecified by Release Team to 0.86

comment:3 Changed 12 years ago by tomeu

  • Keywords r- added; r? removed
  • Resolution set to wontfix
  • Status changed from new to closed

Right now, the policy I'm following is to stick as close to the GNOME way of doing things and keep things as simple as possible.

If in the future we have resources to maintain diverging strategies, we'll implement a simple abstract class with concrete implementations so that the only decision point is which implementation to use. That should be better than sprinkling ifs and try..excepts along the code.

In the meantime, distros with special needs will have to patch the sugar code.

comment:4 Changed 11 years ago by sascha_silbe

  • Keywords r- removed
  • Milestone changed from 0.86 to 0.90
  • Resolution wontfix deleted
  • Severity changed from Unspecified to Major
  • Status changed from closed to reopened
  • Summary changed from shutdown/reboot/logout: don't require hald to be running to shutdown/reboot/logout: replace HAL with DeviceKit-power
  • Type changed from enhancement to task

HAL is finally going to die. gnome-power-manager seems to use [http://hal.freedesktop.org/docs/DeviceKit-power D
eviceKit-power] for the battery and power management part.

comment:5 Changed 11 years ago by sascha_silbe

The correct link is DeviceKit-power.

comment:6 Changed 7 years ago by dnarvaez

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

We seem to be using the freedesktop interfaces now.

comment:7 Changed 7 years ago by dnarvaez

  • Milestone 0.90 deleted

Milestone 0.90 deleted

Note: See TracTickets for help on using tickets.