Merge ~andch/ubuntu/+source/systemd:ubuntu-focal-lp1967038 into ~ubuntu-core-dev/ubuntu/+source/systemd:ubuntu-focal

Proposed by Andy Chi
Status: Merged
Merged at revision: 09cd12b399725d9c766f5a3c979ff6983812c783
Proposed branch: ~andch/ubuntu/+source/systemd:ubuntu-focal-lp1967038
Merge into: ~ubuntu-core-dev/ubuntu/+source/systemd:ubuntu-focal
Diff against target: 41 lines (+27/-0)
2 files modified
debian/patches/hwdb-Add-mic-mute-key-mapping-for-HP-Elite-x360.patch (+26/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Lukas Märdian Approve
Nick Rosbrook Pending
Julian Andres Klode Pending
Dimitri John Ledkov Pending
Review via email: mp+419361@code.launchpad.net

Commit message

Add mic mute key support for HP Elite x360 series (LP: #1967038)

To post a comment you must log in.
Revision history for this message
Lukas Märdian (slyon) wrote :

It would be nice to have some DEP-3 patch headers with this distro patch (https://dep-team.pages.debian.net/deps/dep3/), and also prefix the patch filename with the bug number (e.g. "debian/patches/lp1967038-hwdb-Add-mic-mute-key-mapping-for-HP-Elite-x360.patch").

Especially something like: "Origin: upstream https://github.com/systemd/systemd/commit/f09f6dc2c8f59b2b58159cc413b605a547c8646e"

But this is a time critical patch and things are pretty obvious with this upstream cherry-pick, so we'll keep it as is.

review: Approve
Revision history for this message
Andy Chi (andch) wrote :

Hi @slyon,
Thanks for your tip, I'll keep it in mind next time.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/patches/hwdb-Add-mic-mute-key-mapping-for-HP-Elite-x360.patch b/debian/patches/hwdb-Add-mic-mute-key-mapping-for-HP-Elite-x360.patch
0new file mode 1006440new file mode 100644
index 0000000..d303383
--- /dev/null
+++ b/debian/patches/hwdb-Add-mic-mute-key-mapping-for-HP-Elite-x360.patch
@@ -0,0 +1,26 @@
1From f09f6dc2c8f59b2b58159cc413b605a547c8646e Mon Sep 17 00:00:00 2001
2From: Andy Chi <andy.chi@canonical.com>
3Date: Tue, 29 Mar 2022 15:36:13 +0800
4Subject: [PATCH] hwdb: Add mic mute key mapping for HP Elite x360
5
6On the new Elite x360 2 in 1 HP laptops, the microphone mute hotkey is "Fn+F8" and
7the scancode for this hotkey is 0x81, but this scancode was mapped to
8fn_esc in the HP generic keymap section. To fix this problem, we add
9a machine specific keymap section to add the correct keymap rule.
10---
11 hwdb.d/60-keyboard.hwdb | 2 ++
12 1 file changed, 2 insertions(+)
13
14Index: systemd-ubuntu-core/hwdb.d/60-keyboard.hwdb
15===================================================================
16--- systemd-ubuntu-core.orig/hwdb.d/60-keyboard.hwdb
17+++ systemd-ubuntu-core/hwdb.d/60-keyboard.hwdb
18@@ -600,6 +600,8 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHewlett
19 # HP EliteBook
20 evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHewlett-Packard*:pnHPEliteBook*:pvr*
21 evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHP*:pnHPEliteBook*:pvr*
22+# HP Elite x360
23+evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHP*:pnHPElite*x360*:*
24 # HP Elite Dragonfly
25 evdev:atkbd:dmi:bvn*:bvr*:bd*:svnHP*:pnHPEliteDragonfly*:pvr*
26 # HP ProBook 440 G2
diff --git a/debian/patches/series b/debian/patches/series
index e0a85c5..ddb4740 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -173,3 +173,4 @@ lp1946388-sd-journal-don-t-check-namespaces-if-we-have-no-name.patch
173lp1955997-add-a-allowlist-to-unblock-intel-hid-on-HP-mach.patch173lp1955997-add-a-allowlist-to-unblock-intel-hid-on-HP-mach.patch
174lp1958284-core-move-reset_arguments-to-the-end-of-main-s-finish.patch174lp1958284-core-move-reset_arguments-to-the-end-of-main-s-finish.patch
175pid1-set-SYSTEMD_NSS_DYNAMIC_BYPASS-1-env-var-for-dbus-da.patch175pid1-set-SYSTEMD_NSS_DYNAMIC_BYPASS-1-env-var-for-dbus-da.patch
176hwdb-Add-mic-mute-key-mapping-for-HP-Elite-x360.patch

Subscribers

People subscribed via source and target branches