47313b1
From b9ae7f976b524c712b7b98062087adaa662f3cf8 Mon Sep 17 00:00:00 2001
b397f2a
From: Hans de Goede <hdegoede@redhat.com>
b397f2a
Date: Thu, 30 Oct 2014 10:15:54 +0100
b397f2a
Subject: [PATCH] keymap: Ignore brightness keys on Dell Inspiron 1520 to avoid
b397f2a
 double events
b397f2a
b397f2a
On the Dell Inspiron 1520 both the atkbd and acpi-video input devices report
b397f2a
an event for pressing the brightness up / down key-combos, resulting in user
b397f2a
space seeing double events and increasing / decreasing the brightness 2 steps
b397f2a
for each keypress.
b397f2a
b397f2a
This hwdb snippet suppresses the atkbd events, making the Inspiron 1520 work
b397f2a
like most modern laptops which emit brightness up / down events through
b397f2a
acpi-video only.
b397f2a
b397f2a
Reported by Pavel Malyshev <p.malishev@gmail.com>
b397f2a
b397f2a
https://bugzilla.redhat.com/show_bug.cgi?id=1141525
b397f2a
(cherry picked from commit aba248ee6b1eb10baf3d89eca2ad7569459af6ab)
b397f2a
---
b397f2a
 hwdb/60-keyboard.hwdb | 5 +++++
b397f2a
 1 file changed, 5 insertions(+)
b397f2a
b397f2a
diff --git a/hwdb/60-keyboard.hwdb b/hwdb/60-keyboard.hwdb
b397f2a
index 06caba9791..d2ca965c90 100644
b397f2a
--- a/hwdb/60-keyboard.hwdb
b397f2a
+++ b/hwdb/60-keyboard.hwdb
b397f2a
@@ -230,6 +230,11 @@ keyboard:dmi:bvn*:bvr*:bd*:svnDell*:pnInspiron*1110:pvr*
b397f2a
 keyboard:dmi:bvn*:bvr*:bd*:svnDell*:pnInspiron*1210:pvr*
b397f2a
  KEYBOARD_KEY_84=wlan
b397f2a
 
b397f2a
+# Dell Inspiron 1520
b397f2a
+keyboard:dmi:bvn*:bvr*:bd*:svnDell*:pnInspiron*1520:pvr*
b397f2a
+ KEYBOARD_KEY_85=unknown  # Brightness Down, also emitted by acpi-video, ignore
b397f2a
+ KEYBOARD_KEY_86=unknown  # Brightness Up, also emitted by acpi-video, ignore
b397f2a
+
b397f2a
 # Latitude XT2
b397f2a
 keyboard:dmi:bvn*:bvr*:bd*:svnDell*:pnLatitude*XT2:pvr*
b397f2a
  KEYBOARD_KEY_9b=up                                     # tablet rocker up