[PATCH] Add hotkey quirk for Acer Aspire One (AO531h/AO751h)

View: New views
1 Messages — Rating Filter:   Alert me  

[PATCH] Add hotkey quirk for Acer Aspire One (AO531h/AO751h)

by Keng-Yü Lin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

This patch for hal-info fixes the issue that the brightness increases
when disabling bluetooth by the hotkey on Acer Aspire One model AO531h
and AO751h.

  Regards,

Keng-Yu Lin

[0001-Add-hotkey-quirk-for-Acer-Aspire-One-AO531h-AO751h.patch]

From 3a1e2f5c7ae71a687bff405ea1ef8bd5133f5969 Mon Sep 17 00:00:00 2001
From: Keng-Yu Lin <keng-yu.lin@...>
Date: Wed, 16 Sep 2009 15:08:05 +0800
Subject: [PATCH] Add hotkey quirk for Acer Aspire One (AO531h/AO751h)

To prevent the brightness adjustment OSD from showing when disabling the bluetooth.
---
 fdi/information/10freedesktop/30-keymap-acer.fdi |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/fdi/information/10freedesktop/30-keymap-acer.fdi b/fdi/information/10freedesktop/30-keymap-acer.fdi
index a2cf8d8..4511bff 100644
--- a/fdi/information/10freedesktop/30-keymap-acer.fdi
+++ b/fdi/information/10freedesktop/30-keymap-acer.fdi
@@ -61,6 +61,10 @@
           <append key="input.keymap.data" type="strlist">e012:prog2</append>
           <append key="input.keymap.data" type="strlist">e059:bluetooth</append> <!-- Bluetooth (toggle) on-to-off -->
         </match>
+        <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains_outof="AO751h;AO531h">
+          <remove key="input.keymap.data" type="strlist">e059:brightnessup</remove>
+          <append key="input.keymap.data" type="strlist">e059:bluetooth</append> <!-- Bluetooth (toggle) on-to-off -->
+        </match>
       </match>
     </match>
   </device>
--
1.6.0.4



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