Red Hat Bugzilla – Bug 169054
pm-utils is missing a laptop-mode type script
Last modified: 2015-03-04 20:15:11 EST
Description of problem:
pm-utils has hibernate and suspend scripts that work really well in a fedora
core rawhide system.
It does not have a script to change the various vm arguments like the script
laptop-tools does, e.g.
echo $DISK_IDLE_SECS > /proc/sys/vm/laptop_mode
Version-Release number of selected component (if applicable):
HAL will call this script for SetLowPower() dbus methods that is invoked on
Created attachment 119149 [details]
Example file that could be used in pm-utils
Should this be a blocker for FC5?
It's on the target list for FC5.
Any news? FC5t3 will be out soon, and it's simply a case of adding one file to a
package... This single file makes laptop-mode tools obsolete, and also means
gnome-power-manager doesn't spit out errors from hal about no LowPowerMode script.
Hal currently looks for pm-powersave, so if the new script is called that name,
then it will just work with HAL. If you change the name to something like
pm-laptopmode, then I can trivially patch HAL - it's up to you.
SuSE already support laptop-mode by default in the powersaved package.
Bill, Phil, could we put this in? It makes a lot of sense to include it and it
seems like pretty low risk.
Ping? Can we do this please? It seems like extremely low risk since a number of
our competitors is already doing this.
Yeah, will put it in today.
Read ya, Phil
What's the script called, then I can send a patch for HAL. Thanks for doing this.
I've already fix hal upstream. The hal-0.5.7-1 Fedora package will include this
--- hal-system-power-set-power-save 2005/11/29 17:47:54 1.4
+++ hal-system-power-set-power-save 2006/02/24 16:47:11 1.5
@@ -25,10 +25,10 @@
elif [ -f /etc/redhat-release ] || [ -f /etc/fedora-release ] ; then
if [ -x "/usr/sbin/pm-powersave" ] ; then
if [ $value = "true" ]; then
- /usr/sbin/pm-powersave on
+ /usr/sbin/pm-powersave true
elif [ $value = "false" ]; then
- /usr/sbin/pm-powersave off
+ /usr/sbin/pm-powersave false
Good man, thanks for doing this.