Please merge procfs... :-)
Richard Hughes
ee21rh at surrey.ac.uk
Sat Jan 29 17:42:51 PST 2005
On Sat, 29 Jan 2005 19:06:07 +0000, Richard Hughes wrote:
> If it does need to stay, what's wrong with putting
>
> event=*
> action=/path/to/hal_addon "%s"
>
> as the default in /etc/acpi/events?
>
Nope, It's just as easy to try /proc/acpi/event, and if not available
then open the UNIX domain socket.
Prototype code being typed now:
[hughsie at hughsie test]$ ./acpid2
type>ac_adapter
name>ADP1
[99]set_bool system.acadaptor.present, FALSE
type>processor
name>CPU0
type>ac_adapter
name>ADP1
[99]set_bool system.acadaptor.present, TRUE
type>processor
name>CPU0
type>battery
name>BAT1
[99]set_string system.battery.charge_level.current, 38556
Plus, I've another patch for HEAD to correct a few coding errors in the
patch. Please apply the existing patch, and then I can work on the updates.
Richard.
--
http://www.hughsie.com/PUBLIC-KEY
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list