quirks: add quirk for MX Master 4

The scrollwheels are similar to the MX Master 3, and need the same
quirks: the horizontal wheel events are inverted (it scrolls "naturally"
by default while the horizontal scrollwheel direction is "traditional"),
and middle-clicking without scrolling is very difficult with high-res
scroll events (from the hid_logitech_hidpp kernel module) enabled.

This adds the device ID seen through Bluetooth, which seems to be the
only one we can add a quirk for:

- When connected using the Bolt receiver, there is no separate device ID
  for the mouse (just the same 046d:c548 ID for the receiver already
  documented as supporting multiple mice).

- When connected through USB, the mouse charges but does not provide HID
  events through USB (it can be used while charging but only by using a
  separate Bluetooth or Bolt connection for HID).

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1362>
This commit is contained in:
Marien Zwart 2025-11-08 14:43:44 +11:00 committed by Marge Bot
parent 20a3131947
commit f6caae2289

View file

@ -116,6 +116,12 @@ MatchProduct=0xB028
ModelInvertHorizontalScrolling=1 ModelInvertHorizontalScrolling=1
ModelScrollOnMiddleClick=1 ModelScrollOnMiddleClick=1
[Logitech MX Master 4]
MatchVendor=0x046D
MatchProduct=0xB042
ModelInvertHorizontalScrolling=1
ModelScrollOnMiddleClick=1
# Don't add quirks for the Logitech Bolt Receiver: # Don't add quirks for the Logitech Bolt Receiver:
# MatchVendor=0x046D # MatchVendor=0x046D
# MatchProduct=0xC548 # MatchProduct=0xC548