Comment 42 for bug 415023

Revision history for this message
Steve Beaulac (steve-sagacity) wrote :

thanks to Felix Geyer for the patch.

this didn't work right aways since my system is a MSI U120.

here's what I did.. (no need to patch anything)

I created a file in /etc/hal/fdi/information/msi-backlight-fix.fdi

with this content

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="info.category" string="laptop_panel">
      <match key="/org/freedesktop/Hal/devices/computer:system.board.vendor" prefix_ncase="micro-star">
        <match key="/org/freedesktop/Hal/devices/computer:system.board.product" contains_outof="U100;U-100"
          <merge key="laptop_panel.brightness_in_hardware" type="bool">true</merge>
          <remove key="info.addons" type="strlist">hald-addon-generic-backlight</remove>
  </match>
      </match>
    </match>
  </device>
</deviceinfo>

then restarted the hal service (backlight works great)
I changed hardware for board make it more generic.