ACPI/PMU procfs HAL test program. Version 002.
Paul Ionescu
i_p_a_u_l at yahoo.com
Sun Jan 23 15:27:48 PST 2005
Hi Richard,
On Sun, 23 Jan 2005 20:23:15 +0000, Richard Hughes wrote:
> Okay, version 002 of the hal acpi/pmu test program is now here:
>
> http://hughsie.no-ip.com/write/hal/procfs-hal-002/
>
> Could you please comment on the code, compile it, run it, before I send
> any patches for HEAD. It's a lot simpler to change and debug a 10k .c file
> than the whole of haldaemon.
Here is output from procfs-hal on my system:
./procfs-hal
[7]set_string linux.powersystem, acpi
[7]set_string linux.acpi.version, 20040816
* new_device *
[11]capability system.ac_adapter
[11]set_int system.ac_adapter.number, 0
[11]set_string info.bus, unknown
[11]set_string info.udi, /org/freedesktop/Hal/devices/ac_adapter_0
[11]capability linux.acpi
[11]set_string linux.acpi.procfs_path, /proc/acpi/ac_adapter/AC
[11]set_string info.product, AC Adaptor
[11]set_bool system.acadaptor.present, TRUE
* callout_device *
* new_device *
[12]capability system.processor
[12]set_int system.processor.number, 0
[12]set_string info.bus, unknown
[12]set_string info.udi, /org/freedesktop/Hal/devices/processor_0
[12]capability linux.acpi
[12]set_string linux.acpi.procfs_path, /proc/acpi/processor/CPU
[12]set_string info.product, Processor
[12]set_bool system.processor.can_throttle, TRUE
* callout_device *
* new_device *
[13]capability system.button
[13]set_int system.button.number, 0
[13]set_string system.button.type, lid
[13]set_string info.bus, unknown
[13]set_string info.udi, /org/freedesktop/Hal/devices/lid_0
[13]capability linux.acpi
[13]set_string linux.acpi.procfs_path, /proc/acpi/button/lid/LID
[13]set_string info.product, Lid Button
* callout_device *
* new_device *
[14]capability system.button
[14]set_int system.button.number, 0
[14]set_string system.button.type, sleep
[14]set_string info.bus, unknown
[14]set_string info.udi, /org/freedesktop/Hal/devices/sleep_0
[14]capability linux.acpi
[14]set_string linux.acpi.procfs_path, /proc/acpi/button/sleep/SLPB
* callout_device *
* new_device *
[15]capability system.button
[15]set_int system.button.number, 0
[15]set_string system.button.type, power
[15]set_string info.bus, unknown
[15]set_string info.udi, /org/freedesktop/Hal/devices/power_0
[15]capability linux.acpi
[15]set_string linux.acpi.procfs_path, /proc/acpi/button/power/PWRF
* callout_device *
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list