Red Hat Bugzilla – Bug 165953
pm-shutdown and pm-restart missing
Last modified: 2015-03-04 20:15:00 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050720 Fedora/1.0.6-1.1.fc4 Firefox/1.0.6
Description of problem:
I see the new scripts pm-hibernate and pm-suspend are present. This is great as it supplies the low level hooks for HAL/GNOME Power Manager/Power Manager to execute a generic suspend/hibernate.
For completeness, wouldn't the two scripts pm-restart and pm-shutdown also have merit? In this way the "/sbin/shutdown -r now" or "halt ..." doesn't have to be hardcoded in HAL or PowerManager - it can just treat them the same as another power-event.
In this way gentoo, debian, ubuntu etc can supply thier own pm-utils package just with these scripts in - which will give the user a common commandset - even if the scripts are radiacally different.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. type pm-reboot
2. nothing :-)
Actual Results: Nothing
Expected Results: /sbin/shutdown -r now should have executed, along with any clever logic too.
Why would shutdown or reboot have anything to do with power management?
PowerManagement is surely restarting a machine, and shutting down the power?
Also having these scripts here would lets use use HAL to do an architecture
neutral, distro neutral Shutdown() and Restart() dbus command without any clever
path-foo or distro-tweak-foo. Also having these scripts here would allow us to
put any future cleverness like bootdown-splashscreen or radeontool blanking if
we needed to.
Hm, ok. I suspect they'd just be symlinks to the already-existing consolehelper
symlinks for reboot/shutdown.
I'll be putting in some symlinks for now so we have the basis for pm-shutdown
Will be in next build.
Read ya, Phil