https://bugzilla.novell.com/show_bug.cgi?id=221999 ------- Comment #11 from seife@novell.com 2006-11-30 12:42 MST ------- on_ac_power does this: # Check for AC/DC/etc adapters for device in $(hal-find-by-capability --capability ac_adapter) ; do present=$(hal-get-property --udi $device --key ac_adapter.present) [ "$present" == "true" ] && exit 0 done # If there are no ac_adapters, check for batteries. hal-find-by-capability --capability battery >/dev/null 2>&1 && exit 1 # If there are no batteries assume AC. exit 0 Now it's time for the funny part: seife@frechet:~> hal-find-by-capability --capability ac_adapter seife@frechet:~> hal-find-by-capability --capability battery /org/freedesktop/Hal/devices/usb_device_46d_c50e_noserial Yes Karl, your machine has a battery! But no ac adapter :-) Unfortunately it is the battery in the BT Mouse and it won't be able to power your system for very long :-) I'll supply a fixed on_ac_power If this does not work, i assume it's a bug in HAL, but let's make sure. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.