[Pm-utils] pm-utils' 55battery: WTF?

Holger Macht hmacht at suse.de
Tue Mar 13 11:38:43 PDT 2007


On Tue 13. Mar - 19:35:50, Stefan Seyfried wrote:
> Hi,
> 
> i just noticed that another strange hook has crept into pm-utils.
> 
> 55battery:
> -----------
> #!/bin/bash
> 
> . /usr/lib/pm-utils/functions
> 
> resume_batteries()
> {
> 	for x in $(hal-find-by-capability --capability battery 2>/dev/null); do
> #		hal-set-property --udi "$x" --key battery.present --bool false
> #		dbus-send --print-reply --system --reply-timeout=2000 \
> #			--dest=org.freedesktop.Hal $x \
> #			org.freedesktop.Hal.Device.Reprobe string:$x
> 		dbus-send --print-reply --system --reply-timeout=2000 \
> 			--dest=org.freedesktop.Hal $x \
> 			org.freedesktop.Hal.Device.Rescan string:$x

Huh? This is already done in hal-system-power-hibernate-linux after
pm-utils was called to suspend? Why is this needed again?

Regards,
	Holger


More information about the hal mailing list