summaryrefslogtreecommitdiffstats
path: root/source/a/eudev
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/eudev')
-rw-r--r--source/a/eudev/0004-Pavilion-13-x360-keys.patch32
-rwxr-xr-xsource/a/eudev/eudev.SlackBuild5
2 files changed, 36 insertions, 1 deletions
diff --git a/source/a/eudev/0004-Pavilion-13-x360-keys.patch b/source/a/eudev/0004-Pavilion-13-x360-keys.patch
new file mode 100644
index 000000000..d901dea3b
--- /dev/null
+++ b/source/a/eudev/0004-Pavilion-13-x360-keys.patch
@@ -0,0 +1,32 @@
+From 9aadd2bfd66333318461c97cc7744ccdb84c24b5 Mon Sep 17 00:00:00 2001
+From: Max Verevkin <me@maxverevkin.tk>
+Date: Thu, 5 Nov 2020 14:16:32 +0200
+Subject: [PATCH 4/4] Pavilion 13 x360 keys
+
+Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
+---
+ hwdb/60-keyboard.hwdb | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/hwdb/60-keyboard.hwdb b/hwdb/60-keyboard.hwdb
+index 15f0a970b..b8ffac2b8 100644
+--- a/hwdb/60-keyboard.hwdb
++++ b/hwdb/60-keyboard.hwdb
+@@ -508,6 +508,14 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHewlett-Packard*:pnHP*Pavilion*dv7*Notebook*PC:
+ KEYBOARD_KEY_c6=break
+ KEYBOARD_KEY_94=reserved
+
++
++# Pavilion 13 x360 (Tablet mode and SYSRQ key)
++evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHewlett-Packard*:pn*[pP][aA][vV][iI][lL][iI][oO][nN]*13*x360*:pvr*
++ KEYBOARD_KEY_d9=unknown
++ KEYBOARD_KEY_d7=!f22 # touchpad on
++ KEYBOARD_KEY_d2=sysrq # Fn+Print = SYSRQ
++
++
+ # Pavilion and Spectre x360 13 (Prevents random airplane mode activation)
+ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHewlett-Packard*:pn*[sS][pP][eE][cC][tT][rR][eE]*x360*13*:pvr*
+ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHP*:pn*[sS][pP][eE][cC][tT][rR][eE]*x360Convertible*:pvr*
+--
+2.29.2
+
diff --git a/source/a/eudev/eudev.SlackBuild b/source/a/eudev/eudev.SlackBuild
index a0fca1ce9..926fe34ef 100755
--- a/source/a/eudev/eudev.SlackBuild
+++ b/source/a/eudev/eudev.SlackBuild
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=eudev
VERSION=${VERSION:-$(echo eudev-*.tar.* | cut -d - -f 2 | rev | cut -f 3- -d . | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@@ -68,6 +68,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
+# One patch from post 3.2.9 git
+zcat $CWD/0004-Pavilion-13-x360-keys.patch.gz | patch -p1 --verbose || exit 1
+
# Patch 60-cdrom_id.rules to create a full set of symlinks:
zcat $CWD/60-cdrom_id.rules.diff.gz | patch -p1 --verbose || exit 1