RFC: ACPI namespace

Richard Hughes ee21rh at surrey.ac.uk
Sat Jan 8 03:51:37 PST 2005


I've been working on policy for the ACPI extension I'm planning:

acpi namespace:
Device objects with the capability acpi represent all the devices
currently accessed through the ACPI bus and found in /proc/acpi.

Key: acpi.version (string)
Mandatory: No
Description: The in-kernel driver version providing ACPI services. Usually
of the form 20041210.

acpi.ac_adaptor namespace:
Device objects with the capability acpi.ac_adaptor represent all the
devices capable of powering the system from AC power. Note that device
objects can only have the acpi.ac_adaptor capability if they have already
got the capability acpi. The following property is available:

Key: acpi.ac_adaptor.enabled (bool)
Mandatory: Yes
Description: The state of the adaptor, i.e. whether it is providing power
to the unit.

acpi.button namespace:
Device objects with the capability acpi.button represent all the devices
capable of providing a state to the system. Note that device objects can
only have the acpi.button capability if they have already got the
capability acpi. The following property is available:

Key: acpi.button.type (string)
Mandatory: Yes
Values:
lid_switch: The switch on a laptop that senses whether the lid is open or
closed. 
power: The main power button on the computer
sleep: The sleep button on a computer capable of putting the computer into
a suspend state.

acpi.processor namespace:
Device objects with the capability acpi.processor represent all CPU's in
the system. Note that device objects can only have the acpi.processor
capability if they have already got the capability acpi. The following
properties are available:

Key: acpi.processor.number (int)
Mandatory: Yes
Description: The internal processor number in the system

Key: acpi.processor.power_management (int)
Mandatory: No
Description: Whether the processor supports advanced power management
facilities.

Key: acpi.processor.can_throttle (int)
Mandatory: No
Description: Whether the processor supports throttling to decrease it's
own clock speed.

Comments please.

Richard

_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list