summaryrefslogtreecommitdiff
path: root/fdi/information/10freedesktop/10-laptop-panel-hardware.fdi
blob: 6685ceb39b48f086df05f0bf50733e77e94a12c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <!-- Some laptops have software controllable backlights and will provide
       notifications on keypresses, but will also change the brightness
       directly in firmware. If software changes the value in response to
       a press, there's a risk that a further event will be generated and
       a feedback loop occur. brightness_in_hardware indicates to clients
       that they should not act in response to keypress notifications. -->
  <device>
    <match key="info.category" string="laptop_panel">
      <!-- For Asus EeePC -->
      <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor"
          string="ASUSTeK Computer INC.">
        <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" string="701">
          <merge key="laptop_panel.brightness_in_hardware" type="bool">true</merge>
        </match>
      </match>
      <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" string="TOSHIBA">
        <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" string="SATELLITE M100">
          <merge key="laptop_panel.brightness_in_hardware" type="bool">true</merge>
        </match>
      </match>
      <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" string="Hewlett-Packard">
        <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains_outof="2510p;2710p;nc2400">
          <merge key="laptop_panel.brightness_in_hardware" type="bool">true</merge>
        </match>
	<match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains_outof="4410s;4415s;4416s;Compaq 5X5">
	  <!-- needed since the acpi video module reports it handle the events, but it don't work on this machines-->
          <merge key="laptop_panel.brightness_in_hardware" type="bool">false</merge>
        </match>
      </match>

      <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" prefix_ncase="micro-star">
        <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains_outof="U100;U-100">
          <merge key="laptop_panel.brightness_in_hardware" type="bool">true</merge>
        </match>
      </match>

      <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" string="Hewlett-Packard">
        <match key="/org/freedesktop/Hal/devices/computer:system.formfactor" string="laptop">
          <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains_outof="4310s;4410s;4411s;4415s;4416s;4510s;4515s;4710s;Compaq 5X5;Compaq 515;Compaq 516;Compaq 615;HP Mini 5102">
            <merge key="laptop_panel.brightness_in_hardware" type="bool">false</merge>
          </match>
          <match key="laptop_panel.brightness_in_hardware" bool="true">
            <match key="/org/freedesktop/Hal/devices/computer:system.firmware.release_date" contains_outof="2009;2010;2011;2012;2013;2014;2015">
              <merge key="laptop_panel.brightness_in_hardware" type="bool">false</merge>
            </match>
          </match>
        </match>
      </match>

      <match key="linux.sysfs_path" suffix="/backlight/thinkpad_screen">
        <merge key="laptop_panel.brightness_in_hardware" type="bool">true</merge>
      </match>

    </match>
  </device>
</deviceinfo>