1
0
mirror of https://github.com/systemd/systemd synced 2024-07-09 04:26:06 +00:00
Commit Graph

149 Commits

Author SHA1 Message Date
Derek J. Clark
7c6028bbcb Add OrangePi NEO Scancodes
Adds scancodes for the OrangePi NEO Handheld Gaming computer. This
device ships with an AT Translated Set 2 Keyboard device that
provides two buttons, ~~LC (Top Left) and RC (Top Right)~~
Home (front, bottom left) and Gamepad (front, bottom right). The
scancodes do not properly map in Linux. This change maps these
scancodes to ensure the hardware behaves as the OEM expects.
2024-06-18 10:38:53 +01:00
Derek J. Clark
25dcd9a348
hwdb: add scancodes for AYANEO devices (#33378)
AYANEO has multiple models that all use the same AT Translated Set
2 Keyboard device with 3-4 buttons available. Starting with the
AYANEO 2 there was a change to the IMU programming they were using
that caused the scancodes to no longer present the correct values
in Linux. This change adds a blanket scancode mapping to present
the correct keycodes as designed by the OEM.

In some cases a kernel bug will cause the AT Translated Set 2
Keyboard to present as an AT Raw Set 2 keyboard. I have also
adjusted the scancodes for this scenario as well so they are
in line with expected behavior. Currently only the Kun is still
experiencing this bug.

Example userspace tool refs:
https://github.com/ShadowBlip/InputPlumber/blob/main/rootfs/usr/lib/udev/hwdb.d/59-inputplumber.hwdb
https://github.com/ShadowBlip/HandyGCCS/blob/main/usr/lib/udev/hwdb.d/59-handygccs-ayaneo.hwdb
https://github.com/hhd-dev/hhd/tree/master/usr/lib/udev/hwdb.d
2024-06-18 09:19:30 +09:00
Tobias Jakobi
9afc6ac87c hwdb: add keyboard mappings for the Ayaneo Kun face buttons
See comment in hwdb file for details.
2024-06-12 02:49:06 +09:00
Edson Juliano Drosdeck
3cffbd37c0 Fix key toggle touchpad and programmable buttom for Positivo N14AP7 2024-06-04 15:23:30 +01:00
Leonard
f3a02fc053
hwdb: added hwdb rules for micmute and power button on Acer Nitro AN 515-58 (#32867) 2024-06-01 11:29:42 +09:00
Victor Berchet
71d78c599f
hwdb: Lenovo 16G6IRL volume keys and friends (#33107)
This prevents volume keys on the machine from repeating.
Full modalias:
```
$ cat /sys/class/dmi/id/modalias
dmi:bvnLENOVO:bvrMMCN36WW:bd03/26/2024:br1.36:efr1.30:svnLENOVO:pn21KH:pvrThinkBook16G6IRL:rvnLENOVO:rnLNVNB161216:rvrSDK0T76530WIN:cvnLENOVO:ct10:cvrThinkBook16G6IRL:skuLENOVO_MT_21KH_BU_idea_FM_ThinkBook16G6IRL:
```
2024-05-31 09:08:00 +09:00
Nicholas Little
f4434c61b9
hwdb: Lenovo IdeaPad Z500 Touchpad Toggle (#33039)
Map scancode f3 to KEY_F21.
2024-05-28 09:56:53 +09:00
Jian-Hong Pan
5ccd8ab263 hwdb: Enable JP-IK LEAP W502's touchpad toggle key
The laptop JP-IK LEAP W502 has touchpad toggle key (Fn+F9), but it does
not work. Because, the scancode maps to a wrong key code:

Event: time 1715846095.224900, type 4 (EV_MSC), code 4 (MSC_SCAN), value 9d
Event: time 1715846095.224900, type 1 (EV_KEY), code 97 (KEY_RIGHTCTRL), value 1
Event: time 1715846095.224900, -------------- SYN_REPORT ------------
Event: time 1715846095.230985, type 4 (EV_MSC), code 4 (MSC_SCAN), value db
Event: time 1715846095.230985, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 1
Event: time 1715846095.230985, -------------- SYN_REPORT ------------
Event: time 1715846095.232903, type 4 (EV_MSC), code 4 (MSC_SCAN), value 76
Event: time 1715846095.232903, type 1 (EV_KEY), code 85 (KEY_ZENKAKUHANKAKU), value 1
Event: time 1715846095.232903, -------------- SYN_REPORT ------------

Map the scancode 76 to KEY_F21 to enable the touchpad toggle key.
2024-05-17 14:24:20 +09:00
Michał Kopeć
f5c8dd85ee hwdb.d/60-keyboard.hwdb: enable Clevo quirk for model V5x0TU
Enable the display switch function key quirk for a new model.

Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2024-05-15 20:25:03 +02:00
Lucas Salles
6915e6d914 Fix Positivo N14EPE and N15EPE key toggle touchpad and search key 2024-05-11 00:30:59 +09:00
Hans de Goede
5a99749453 hwdb: Add mapping for Xiaomi Mipad 2 bottom bezel capacitive buttons
The Xiaomi Mipad2 tablet has 3 capacitive buttons at the bottom.
These 3 buttons are handled by the touchsceen (the touchscreen extends
downwards to cover the bottom bezel).

By default these send Windows specific shortcuts which do not work
with Linux desktop environments:

Menu: LeftMeta + S
Home: LeftCtrl + Esc
Back: Backspace

Map these to menu / leftmeta (Windows key / Win 8 tablet home button key) /
back.
2024-05-05 22:42:13 +02:00
Saliba-san
a6ab3053aa
hwdb: Add mapping for Samsung GalaxyBook - 550X (#32616)
- Kernel: linux-6.8.8-arch
- systemd: 255.5-3-arch
- Laptop: Samsung GalaxyBook - NP550XDA-KF1BR

This is the solution to a problem with the Samsung GalaxyBook in which some Media keys,
when pressed and released, get stuck as if they are hold.
2024-05-02 04:54:32 +09:00
Hans de Goede
93cc8de05c hwdb: Add mapping for ACPI quickstart keys on Toshiba Z830
The Toshiba Z830 has 3 hotkeys which use the ACPI PNP0C32 quickstart spec:
https://archive.org/details/microsoft-acpi-dirapplaunch

These devices have an ACPI method called GHID() which suggests
it returns a value from the "HID Usage Tables" document, but these
methods simple returns a follow number for the button (1, 2 and 3).

The first 2 buttons are for what the manual calls "TOSHIBA eco button"
and "TOSHIBA Presentation button", since there is no good match for
these simply map them to KEY_PROG1 and KEY_PROG2.

The third button is intended to toggle the touchpad on/off, map
this to F21 which GNOME/KDE will interpret as touchpad toggle.
2024-03-25 10:57:22 +00:00
Edson Juliano Drosdeck
f1c198719d Fix Positivo N14NPE-N and N15NPE-N key toggle touchpad and search key 2024-03-18 15:35:50 +00:00
Vasiliy Kovalev
a850ae7a9c hwdb: Add touchpad toggle mapping for Kvadra LE14U/LE15U
Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>
2024-03-05 22:08:09 +00:00
onenowy
a3f5976ded hwdb: add Predator PHN16-71
enable microphone mute, predator sense button and fix the keyboard backlight up button changes display brightness.
2023-11-19 12:39:59 +00:00
Martin Beneš
fc48807d29 add udev rule for micmute (f20) 2023-10-08 15:41:13 +01:00
Lucas Adriano Salles
2de72ade08
Fix Positivo N14EP6 key toggle touchpad and programmable keys (#29448) 2023-10-05 05:06:34 +09:00
beh_10257
5808300c44
add support for hp pavilion gaming 15 lid switch (#29304)
Tested together with kernel patch: https://lore.kernel.org/linux-acpi/20230920130506.8595-1-hdegoede@redhat.com/
but the d7 key is still interpreted as a wlan key switch, so an hwdb update is needed.

Raw dmi:

dmi:bvnInsyde:bvrF.45:bd07/07/2023:br15.45:efr2.51:svnHP:pnHPPavilionGamingLaptop15-dk1xxx:pvrType1ProductConfigId:rvnHP:rn8742:rvr02.51:cvnHP:ct10:cvrChassisVersion:sku20T68EA#BH4::

Related to: https://github.com/systemd/systemd/issues/28942
2023-09-26 13:32:03 +01:00
IllusionMan1212
df4535a5c0 hwdb: add mic mute key mappings for Acer Predator Triton 300 SE 2023-09-19 19:17:52 +02:00
David Santamaría Rogado
8b7f0eb6a8 hwdb: keyboard: D330 FnLk toggle
Map Fn+Tab to fn_esc as is FnLock toggle in this keyboard. Still doesn't behave as expected because work in ideapad_laptop kernel module could be required but now at least we report the same mapping in others keyboards with Fn+ESC for FnLock and not unknown.

Signed-off-by: David Santamaría Rogado <howl.nsp@gmail.com>
2023-09-06 19:00:29 +01:00
Maxim Mikityanskiy
fa8216e206 hwdb: Mute SW rfkill keys on MSI Wind U100
Kernel patch [1] fixed bugs in rfkill handling on MSI Wind U100. Now
that the HW rfkill reports the correct state, and the SW rfkill is
controllable from userspace, it's necessary to mute KEY_WLAN and
KEY_BLUETOOTH generated on HW rfkill state changes. Otherwise, the
userspace will react to these keys and toggle the SW rfkill as well,
which is not desired, because the user may end up with non-functional
radios if HW and SW rfkills are out of sync.

Blocking these keycodes doesn't impair user experience, because the
desktop environment can still react to HW rfkill events and act
accordingly (for example, show notifications).

While at it, use "unknown" instead of "reserved" to mute keys, to avoid
the "atkbd serio0: Unknown key pressed" flood in dmesg.

[1]: https://lore.kernel.org/all/20230721145423.161057-1-maxtram95@gmail.com/
2023-08-04 02:18:13 +09:00
Yu Watanabe
65d7d832a9 hwdb: merge multiple keyboard entries with same setting
Follow-up for 123c0e24dd.

Note, the entry was originally added for IdeaPad Flex 5 in
21b589a155.
Then, a bug introduced by 19db450f3a.
But, when it was fixed by 738a195bd5,
the glob becomes too stricter, and another variant was added by
123c0e24dd.
2023-07-05 10:34:04 +09:00
Hoe Hao Cheng
123c0e24dd hwdb: fix volume control keys on Lenovo IdeaPad Flex 5 (14ARE05) 2023-06-27 20:26:08 +01:00
Benjamin Raison
4fd7c712dc hwdb: fix arrow keys on HP Elite Dragonfly G3 2023-06-10 15:05:27 +09:00
Edson Juliano Drosdeck
60ca859bf0
hwdb: fix Positivo CG15D key toggle touchpad and programmable keys (#27689) 2023-05-19 03:06:42 +09:00
saikat0511
738a195bd5
hwdb: fix keyboard entry for IdeapadFlex5 (#27643)
Fixes a bug caused by 19db450f3a (#27211).

Also this makes the model more specific.
2023-05-16 05:58:50 +09:00
drosdeck
e71254edb0 Fix Positivo CF40CM-V2 key toggle touchpad 2023-05-13 03:13:24 +09:00
Yu Watanabe
5b5e54e058 hwdb: do not include '#' in modalias
Follow-up for 7bd3d6e35a.
Fixes #27516.
2023-05-06 10:27:34 +02:00
don bright
46b8c3f5b2
hwdb: add hardware rfkill key for Dell Latitude E6* models (#27462)
Hello

This pull req is adapting pull req #5772 (which fixed issue #5047), for the very similar computer Dell Latitude E6420 which has the same problem with the hardware switch to toggle wifi (aka rfkill). The symptom is the following repeated msgs in dmesg

[  309.010284] atkbd serio0: Use 'setkeycodes e008 <keycode>' to make it known.
[  309.016020] atkbd serio0: Unknown key pressed (translated set 2, code 0x88 on isa0060/serio0).

Adding this line to include E6 models causes these messages to stop showing in dmesg

Thank you
2023-04-30 11:33:13 +08:00
Yu Watanabe
19db450f3a hwdb: fix ambiguous glob pattern for Lenovo machines
Fixes #27195.

Follow-up for a5c0ad9a9a.
2023-04-11 13:21:34 +02:00
Hans de Goede
4e3a50169b hwdb: Move MSI touchpad-toggle mapping to generic MSI section
Like other MSI laptops the MSI Summit E16 Flip A12UCT laptop also send
atkbd scancode 0x76 for the Fn + F4 touchpad-toggle hotkey combo.

Move the existing mapping for this from the MSI Prestige And MSI Modern
section to the generic MSI laptop section.

While at it also drop the KEYBOARD_KEY_f1=f20 mapping from
the MSI Prestige And MSI Modern section, as that is already listed
in the generic MSI laptop section.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=216824
2023-03-28 03:03:02 +09:00
taniishkaaa
c22dcc80d0
hwdb: fix Wifi toggling for Haier 7G-Series/JWU (#25293) (#26878) 2023-03-19 14:16:00 +09:00
EinBaum
a5c0ad9a9a
hwdb: 60-keyboard.hwdb: Fix modalias for Thinkpad X200 Tablet (#26795)
This fixes the tablet buttons on the Thinkpad X200 Tablet.
My Lenovo ThinkPad X200 Tablet is called "ThinkPadX200T" instead of "ThinkPadX200Tablet":
```
$ cat /sys/devices/virtual/dmi/id/modalias 
dmi:bvnLENOVO:bvr7WET71WW(3.21):bd11/29/2012:br3.33:efr1.6:svnLENOVO:pn7453WVK:pvrThinkPadX200T:rvnLENOVO:rn7453WVK:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:sku:
```
This patch makes both strings work correctly to support the extra tablet keys.
2023-03-14 17:41:21 +09:00
Yu Watanabe
ae9f36397f Revert "hwdb: fix swapped buttons for Logitech Lift left"
This reverts commit 81cfea95e5.

The modalias seems to match a generic Logitech USB receiver even the
connected mouce is not for left hand.

Fixes #26671 and #26676.
2023-03-05 14:21:22 +01:00
Vít Zikmund
81cfea95e5 hwdb: fix swapped buttons for Logitech Lift left 2023-02-22 19:10:10 +09:00
Jean-Tiare Le Bigot
112f81a547 hwdb: Add HP ENVY x360 2-in-1
Since #26144, RFKILL events are disabled for HP ENVY x360 Convertible.
This commit adds a variation of the name.
2023-02-15 10:25:37 +09:00
Zbigniew Jędrzejewski-Szmek
45062a62ac hwdb: add override for IdeaPad5 insert key
Fixes #25968.

I wrote the rule to assume that all IdeaPad5 thingies are like that.
2023-02-08 20:15:27 +00:00
drosdeck
2f2d948293 Fix Positivo-vaio VJPW12F11X key toggle touchpad 2023-02-07 16:31:50 +01:00
DaPigGuy
60eac27a0d hwdb: Prevent activation of airplane mode on HP ENVY x360 2023-01-22 18:46:27 +01:00
13r0ck
9e2e3342ca hwdb: Add touchpad toggle mapping for System76 Pangolin 12 2023-01-21 00:40:09 +00:00
Koba Ko
9ca3bfb6c4 hwdb: Add mic mute key mappings for Dell G16 Series
add Dell G16 series to use the mic mute hotkey.
2023-01-18 18:56:22 +09:00
drosdeck
6152de293a Fix Positivo MASTER-N1110 key toggle touchpad 2023-01-10 09:45:38 +01:00
Hannoskaj
cb6f38b182 Prevents airplane mode toggle for HP Spectre 16 2022-12-26 21:08:24 +09:00
Hans de Goede
ec6267e862 hwdb: Add mic-mute, control-center and screen-rotation mappings for MSI laptops
The MSI Summit E16 Flip A12UCT laptop sends the following unmapped
atkbd scancodes:

0x91: Launch MSI Control Center
0xf1: Toggle mic mute
0xf2: Rotate screen

The 0x91, 0xf1 and 0xf2 codes are already present in the MSI Prestige/Modern
series specific keymappings and the 0xf1 mapping is also already present in
the MSI Bravo 15-B5DX FnKeys entry.

This shows that these are generic to many MSI models, so add mappings for
these to the generic MSI mappings.

Since the MSI Bravo 15-B5DX FnKeys entry only contains the 0xf1 mapping and
that is covered by the generic MSI mappings now, that entry is removed.

Link: https://gitlab.freedesktop.org/libinput/libinput/-/issues/822
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216824
2022-12-22 05:40:05 +09:00
noodlejetski
53a568f327
hwdb: Fn+F5 fix for MSI Bravo 15-B5DX (#25788)
Closes #25782.
2022-12-20 09:57:54 +09:00
Yu Watanabe
d3bee9f300 hwdb: add comments about matching entries
Follow-up for 57bb707d48.

This makes the comments in 60-evdev.hwdb, 60-keyboard.hwdb, and
70-pointingstick.hwdb consistent.
2022-12-14 01:50:07 +09:00
Yu Watanabe
c31e7bf07d hwdb: drop trailing space 2022-12-14 01:45:10 +09:00
Edson Juliano Drosdeck
1feb9743d0
hwdb: add Positivo-vaio Pro PW key toggle touchpad (#25669) 2022-12-09 04:51:09 +09:00
Michał Kotyla
cb8d22fa84 hwdb: add Clevo touchpad toggle key quirks 2022-11-30 01:46:18 +09:00