richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
9fc0f6
From 774b623c772bbb716b74c8927b6f90cfbce795b9 Mon Sep 17 00:00:00 2001
9fc0f6
From: Martin Pitt <martinpitt@gnome.org>
9fc0f6
Date: Wed, 9 Oct 2013 16:05:15 +0200
9fc0f6
Subject: [PATCH] keymap: Fix Samsung 900X[34]C
9fc0f6
9fc0f6
It appears that it's not really the 900 vs. 940 or the X3 vs X4, but the
9fc0f6
A/B/C/D suffix after that which makes the difference between the keymaps. On a
9fc0f6
NP900X3C-A04RU you get
9fc0f6
9fc0f6
   MODALIAS=dmi:bvn*:bvr*:bd*:svnSAMSUNGELECTRONICSCO.,LTD.:pn900X3C/900X3D/900X4C/900X4D:*
9fc0f6
9fc0f6
So change the matches to use AB vs. CDG as the differentiator.
9fc0f6
9fc0f6
Thanks to Anatoly Markov for reporting and testing!
9fc0f6
---
9fc0f6
 hwdb/60-keyboard.hwdb | 3 ++-
9fc0f6
 1 file changed, 2 insertions(+), 1 deletion(-)
9fc0f6
9fc0f6
diff --git a/hwdb/60-keyboard.hwdb b/hwdb/60-keyboard.hwdb
9fc0f6
index 20d398f..b497f92 100644
9fc0f6
--- a/hwdb/60-keyboard.hwdb
9fc0f6
+++ b/hwdb/60-keyboard.hwdb
9fc0f6
@@ -904,6 +904,7 @@ keyboard:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn*550P*:pvr*
9fc0f6
  KEYBOARD_KEY_a9=!                                      # Fn Lock - Function lock off
9fc0f6
 
9fc0f6
 keyboard:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn*700Z*:pvr*
9fc0f6
+keyboard:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn*900X[34][CDG]*:pvr*
9fc0f6
 keyboard:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn*940X3G*:pvr*
9fc0f6
  KEYBOARD_KEY_ce=!prog1                                 # Fn+F1 launch settings
9fc0f6
  KEYBOARD_KEY_a0=!mute                                  # Fn+F6 mute
9fc0f6
@@ -915,7 +916,7 @@ keyboard:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn*940X3G*:pvr*
9fc0f6
 
9fc0f6
 # Series 9
9fc0f6
 keyboard:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn*90X3A*:pvr*
9fc0f6
-keyboard:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn*900X[34]*:pvr*
9fc0f6
+keyboard:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn*900X[34][AB]*:pvr*
9fc0f6
  KEYBOARD_KEY_ce=!                                      # Fn+F8 keyboard backlight up
9fc0f6
  KEYBOARD_KEY_8d=!                                      # Fn+F7 keyboard backlight down
9fc0f6
  KEYBOARD_KEY_96=!                                      # Fn+F1 performance mode (?)