xref: /illumos-gate/usr/src/cmd/hal/fdi/policy/10osvendor/10-power-mgmt-policy.fdi (revision 18c2aff776a775d34a4c9893a4c72e0434d68e36)
1*18c2aff7Sartem<?xml version="1.0" encoding="UTF-8"?>
2*18c2aff7Sartem
3*18c2aff7Sartem<deviceinfo version="0.2">
4*18c2aff7Sartem
5*18c2aff7Sartem  <device>
6*18c2aff7Sartem    <match key="hiddev.application_pages" contains="Power Device Page">
7*18c2aff7Sartem      <append key="info.addons" type="strlist">hald-addon-hid-ups</append>
8*18c2aff7Sartem    </match>
9*18c2aff7Sartem  </device>
10*18c2aff7Sartem
11*18c2aff7Sartem  <device>
12*18c2aff7Sartem    <match key="power_management.type" string="acpi">
13*18c2aff7Sartem      <append key="info.addons" type="strlist">hald-addon-acpi</append>
14*18c2aff7Sartem    </match>
15*18c2aff7Sartem  </device>
16*18c2aff7Sartem
17*18c2aff7Sartem  <device>
18*18c2aff7Sartem    <match key="button.type" string="lid">
19*18c2aff7Sartem      <match key="linux.pmu_type" exists="true">
20*18c2aff7Sartem	<append key="info.addons" type="strlist">hald-addon-pmu</append>
21*18c2aff7Sartem      </match>
22*18c2aff7Sartem    </match>
23*18c2aff7Sartem  </device>
24*18c2aff7Sartem
25*18c2aff7Sartem  <device>
26*18c2aff7Sartem    <match key="info.udi" string="/org/freedesktop/Hal/devices/computer">
27*18c2aff7Sartem      <append key="info.interfaces" type="strlist">org.freedesktop.Hal.Device.SystemPowerManagement</append>
28*18c2aff7Sartem
29*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_names" type="strlist">Suspend</append>
30*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_signatures" type="strlist">i</append>
31*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_argnames" type="strlist">num_seconds_to_sleep</append>
32*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths" type="strlist">hal-system-power-suspend</append>
33*18c2aff7Sartem
34*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_names" type="strlist">Hibernate</append>
35*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_signatures" type="strlist"></append>
36*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_argnames" type="strlist"></append>
37*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths" type="strlist">hal-system-power-hibernate</append>
38*18c2aff7Sartem
39*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_names" type="strlist">Shutdown</append>
40*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_signatures" type="strlist"></append>
41*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_argnames" type="strlist"></append>
42*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths" type="strlist">hal-system-power-shutdown</append>
43*18c2aff7Sartem
44*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_names" type="strlist">Reboot</append>
45*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_signatures" type="strlist"></append>
46*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_argnames" type="strlist"></append>
47*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths" type="strlist">hal-system-power-reboot</append>
48*18c2aff7Sartem
49*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_names" type="strlist">SetPowerSave</append>
50*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_signatures" type="strlist">b</append>
51*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_argnames" type="strlist">enable_power_save</append>
52*18c2aff7Sartem      <append key="org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths" type="strlist">hal-system-power-set-power-save</append>
53*18c2aff7Sartem    </match>
54*18c2aff7Sartem  </device>
55*18c2aff7Sartem
56*18c2aff7Sartem</deviceinfo>
57