[PATCH] fix for acpi-addon if use/compile with acpid

Danny Kukawka danny.kukawka at web.de
Wed Oct 19 09:38:12 PDT 2005


On Wednesday 19 October 2005 18:26, you wrote:
> > But for this case see my first patch in the other thread. The best would
> > be to enclose the whole connect (to acpid and proc) in a loop. With this
> > solution you can be sure that you get proc or acpid if you compiled both
> > in and it should also work with only one of the both.
>
> Yes, I like this idea. Doesn't this solve all the permutations of acpid
> and a direct connection (with lost connections)?

IMO it should, but it must be tested with proc (we use and compile only for 
acpid on SUSE).

> Hmm, I think making this an fdi configurable is overkill. HAL can just
> fallback like it is now, or do I misunderstand you?

You misunderstand me. Currently the addon is added if there is the key 
power_management.type=acpi (in 
fdi/policy/10osvendor/10-power-mgmt-policy.fdi) this is true if there 
is /proc/acpi/info (in fact this is also the case if there is /proc/acpi)

With this current settings it's really easy for the user/root to prevent 
loading the addon if you want to surrender acpi events (and reconnects ;) )

Danny


More information about the hal mailing list