Mailinglist Archive: opensuse-bugs (8017 mails)

< Previous Next >
[Bug 221999] cron.daily not running daily
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 30 Nov 2006 12:42:34 -0700 (MST)
  • Message-id: <20061130194234.D1DA325C887@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=221999





------- Comment #11 from seife@xxxxxxxxxx 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.

< Previous Next >