richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
8d419f
From ce32478594b4afc26c91ed63eb17c65ca988158c Mon Sep 17 00:00:00 2001
8d419f
From: 4piu <16668056+4piu@users.noreply.github.com>
8d419f
Date: Mon, 7 Mar 2022 16:38:08 +0800
8d419f
Subject: [PATCH] Add support for NEC VersaPro VG-S
8d419f
8d419f
The brightness control key (Fn+F7 Fn+F8) and touchpad toggle key (Fn + Space) do not work on the NEC VersaPro VG-S laptop. Add the keycode to fix the problem.
8d419f
8d419f
(cherry picked from commit 19a04e807129e7790a0f2950cf67d79fe0df85cb)
8d419f
8d419f
Related: #2087778
8d419f
---
8d419f
 hwdb.d/60-keyboard.hwdb | 11 +++++++++++
8d419f
 1 file changed, 11 insertions(+)
8d419f
8d419f
diff --git a/hwdb.d/60-keyboard.hwdb b/hwdb.d/60-keyboard.hwdb
8d419f
index 2606d0b66c..73b26089ab 100644
8d419f
--- a/hwdb.d/60-keyboard.hwdb
8d419f
+++ b/hwdb.d/60-keyboard.hwdb
8d419f
@@ -1345,6 +1345,17 @@ evdev:name:MSI Laptop hotkeys:dmi:bvn*:bvr*:bd*:svn*:pnM[iI][cC][rR][oO]-S[tT][a
8d419f
  KEYBOARD_KEY_0213=f22
8d419f
  KEYBOARD_KEY_0214=f23
8d419f
 
8d419f
+##########################################
8d419f
+# NEC
8d419f
+##########################################
8d419f
+
8d419f
+# VersaPro VG-S
8d419f
+evdev:atkbd:dmi:bvn*:bvr*:bd*:svnNEC:pnPC-VK22TGSGS:pvr*
8d419f
+ KEYBOARD_KEY_a8=f21                                    # Fn+Space touchpad toggle
8d419f
+ KEYBOARD_KEY_67=brightnessdown                         # Fn+F7 brightness down
8d419f
+ KEYBOARD_KEY_65=brightnessup                           # Fn+F8 brightness up
8d419f
+ KEYBOARD_KEY_71=battery                                # Fn+F4 ECO
8d419f
+
8d419f
 ###########################################################
8d419f
 # Olimex
8d419f
 ###########################################################