Photo by Bruno Yamazaky / Unsplash

Logitech - Invert Horizontal Scrolling on Linux

Linux Jan 25, 2023

Introduction

Several Logitech mice have a dedicated scroll wheel for horizontal scrolling. The Logitech MX Master 3S uses "Natural Scrolling" for horizontal mode no matter what the global setting is.

For now there is no entry in libinput in order to fix this issue but this problem existed already on older mice by Logitech.

Fix

To fix the issue you can just copy the MX Master 2S block and duplicate it, change the vendor and device ids and the problem should be fixed.

  1. Get the vendor and device id:
# sudo logid
[INFO] Device found: MX Master 3S on /dev/hidraw0:255

# udevadm info --name /dev/hidraw0
P: /devices/virtual/misc/uhid/0005:046D:B034.0012/hidraw/hidraw0

Logid gives the devicepath, udevadm gives the virtualpath with the correct vendor and device ID (046D and B034).

2.  Edit /usr/share/libinput/30-vendor-logitech.quirks

[Logitech MX Master 3S]
MatchVendor=0x0x46D
MatchProduct=0xB034
ModelInvertHorizontalScrolling=1

Reboot.

Tags