Ticket #615 (reopened task)

Opened 4 years ago

Last modified 3 years ago

shutdown/reboot/logout: replace HAL with DeviceKit-power

Reported by: sascha_silbe Owned by: tomeu
Priority: Unspecified by Maintainer Milestone: 0.90
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

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

Change History

Changed 4 years ago by sascha_silbe

Fallback to poweroff / reboot, fix logout

Changed 4 years ago by sascha_silbe

  • keywords r? added
  • status_field changed from Unconfirmed to New

Changed 4 years ago by tomeu

  • milestone changed from Unspecified by Release Team to 0.86

Changed 4 years ago by tomeu

  • keywords r- added; r? removed
  • status changed from new to closed
  • resolution set to wontfix

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.

Changed 3 years ago by sascha_silbe

  • status changed from closed to reopened
  • severity changed from Unspecified to Major
  • type changed from enhancement to task
  • summary changed from shutdown/reboot/logout: don't require hald to be running to shutdown/reboot/logout: replace HAL with DeviceKit-power
  • milestone changed from 0.86 to 0.90
  • keywords r- removed
  • resolution wontfix deleted

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.

Changed 3 years ago by sascha_silbe

The correct link is  DeviceKit-power.

Note: See TracTickets for help on using tickets.