Does the Logitech MX Master 4 work on Linux?
Works out of the box for pointer input with the in-kernel driver hid-logitech-hidpp (since Linux 7.0).
Extra features: DPI and button remapping need libratbag + Piper; battery level and hi-res scrolling come with the kernel driver.
5 of 9 tracked distro releases ship a new enough default kernel; older: Ubuntu 24.04 LTS, Ubuntu 22.04 LTS, Debian 13, Debian 12 (see the table below).
Which distros work?
| Distro | Kernel | Verdict |
|---|---|---|
| Arch Linux | ✅ 7.2 | ✅ All 4 features with repo packages |
| Fedora 44 | ✅ 7.2 | ✅ All 4 features with repo packages |
| Fedora 43 | ✅ 7.2 | ✅ All 4 features with repo packages |
| openSUSE Tumbleweed | ✅ 7.2 | ✅ All 4 features with repo packages |
| Ubuntu 26.04 LTS | ✅ 7.0 | ✅ All 4 features with repo packages |
| Ubuntu 24.04 LTS | 6.8 (driver in 7.0; 7.0 available) | ⚠️ 2 of 4 features from repos; battery level, hi-res scrolling: install the HWE kernel |
| Ubuntu 22.04 LTS | 5.15 (driver in 7.0) | ⚠️ 2 of 4 features from repos; battery level, hi-res scrolling: needs Linux 7.0 |
| Debian 13 | 6.12 (driver in 7.0; 7.2 available) | ⚠️ 2 of 4 features from repos; battery level, hi-res scrolling: install the backports kernel |
| Debian 12 | 6.1 (driver in 7.0) | ⚠️ 2 of 4 features from repos; battery level, hi-res scrolling: needs Linux 7.0 |
Linux features
| Feature | Provided by |
|---|---|
| Battery level | Linux kernel 7.0+ |
| DPI | libratbag + Piper |
| Hi-res scrolling | Linux kernel 7.0+ |
| Button remapping | libratbag + Piper |
Specs from systemd hwdb
| Spec | Value |
|---|---|
| DPI | 1000 |
| Sampling rate | 142 Hz |
What this means on Linux
- Battery level
- The charge level can be read from Linux through the tool or driver listed above.
- DPI
- DPI is the sensor's sensitivity (dots per inch). The listed tool can show or change the DPI steps from Linux.
- Hi-res scrolling
- High-resolution scrolling reports finer wheel steps, so apps that support it can scroll more smoothly.
- Button remapping
- The mouse buttons can be remapped from Linux with the listed tool.
What to install
| Tool | Install |
|---|---|
| libratbag + Piper | Arch: sudo pacman -S piperFedora: sudo dnf install piperDebian: sudo apt install piperUbuntu: sudo apt install piperFlatpak: flatpak install flathub org.freedesktop.Piper |
| Linux kernel | Built in, nothing to install. |
Is this my device?
Run lsusb and look for this ID: 046d:b042.
Or paste your whole lsusb output into the lookup on the home page.