A few HAL problems
Dan Williams
dcbw at redhat.com
Wed Sep 14 06:33:17 PDT 2005
On Wed, 2005-09-14 at 15:16 +0200, Fabian Zeindl wrote:
> On Wed, 14 Sep 2005 13:58:56 +0100, Richard Hughes wrote
> > > * HAL is very slow in detecting property changes: plugging in and out the
> > > ac-adapter takes about 15 seconds for hal to discover it.
> >
> > What version of HAL are you running? the acpi addon in the newest
> > version makes my events *instantaneous*
>
> I'm running HAL 0.5.4. I'm testing it with lshal|grep ac_adapter.
> ac_adapter present switches to "false" (resp. "true) after about 15 seconds.
What kernel are you running? HAL should just be taking its cues from
hotplug and from /proc/acpi, so if the kernel doesn't recognize that
you've plugged in the AC adapter for a while, neither will HAL...
A way to test this:
1) Start with AC adapter UNplugged
2) run the command:
watch -n 1 "cat /proc/acpi/ac_adapter/AC/state"
3) It should say "off-line"
3) plug in ac adapter
4) See what the 'watch' does, it should say "on-line" when the
kernel/acpi layer realize the adapter is actually plugged in
If this takes more than a second or two, something is either wrong in
your kernel, your BIOS, or your BIOS is just wierd.
> My output of
> sleep 25 && hal-device /org/freedesktop/Hal/devices/acpi_LID
> when I close the lid is:
>
> udi = '/org/freedesktop/Hal/devices/acpi_LID'
> info.udi = '/org/freedesktop/Hal/devices/acpi_LID' (string)
> linux.hotplug_type = 4 (0x4) (int)
> button.has_state = true (bool)
> button.state.value = true (bool)
> info.capabilities = { 'button' } (string list)
> info.category = 'button' (string)
> info.product = 'Lid Switch' (string)
> button.type = 'lid' (string)
> info.parent = '/org/freedesktop/Hal/devices/computer' (string)
> linux.acpi_type = 4 (0x4) (int)
> linux.acpi_path = '/proc/acpi/button/lid/LID' (string)
>
> I get the same output when the lid is open. cat
> /proc/acpi/button/lid/LID/state instantly says "closed" when I close it...
What laptop model and BIOS?
Dan
More information about the hal
mailing list