Home › Mice › Logitech

Does the Logitech MX Master 4 work on Linux?

Supported. 4 extra features available on Linux (Battery level, DPI, Hi-res scrolling, Button remapping) via libratbag + Piper, Linux kernel.

Which distros work?

DistroKernelVerdict
Arch Linux
CachyOS, EndeavourOS
✅ 7.2✅ All 4 features with repo packages
Fedora 44
Bazzite, Nobara
✅ 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
Kubuntu, Xubuntu, Ubuntu flavours
✅ 7.0✅ All 4 features with repo packages
Ubuntu 24.04 LTS
Linux Mint 22, elementary OS 8
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
Linux Mint 21
5.15 (driver in 7.0)⚠️ 2 of 4 features from repos; battery level, hi-res scrolling: needs Linux 7.0
Debian 136.12 (driver in 7.0; 7.2 available)⚠️ 2 of 4 features from repos; battery level, hi-res scrolling: install the backports kernel
Debian 126.1 (driver in 7.0)⚠️ 2 of 4 features from repos; battery level, hi-res scrolling: needs Linux 7.0

Kernel versions are each release's default (and optional newer) kernel as of 2026-10-05. Distros sometimes backport drivers, so an older kernel can still work. Basic input and audio work through generic drivers regardless; this table is about the extra features.

Linux features

FeatureProvided by
Battery levelLinux kernel 7.0+
DPIlibratbag + Piper
Hi-res scrollingLinux kernel 7.0+
Button remappinglibratbag + Piper

What to install

ToolInstall
libratbag + PiperArch: sudo pacman -S piper
Fedora: sudo dnf install piper
Debian: sudo apt install piper
Ubuntu: sudo apt install piper
Flatpak: flatpak install flathub org.freedesktop.Piper
Linux kernelBuilt 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.

Kernel driver: hid-logitech-hidpp — Linux 7.0+

"Supported" means the device appears in that project's device list. We don't test hardware ourselves; see how this works. Something wrong here? Report it.

More Logitech mice

Logitech G502
8 Linux features
Logitech G903 Hero
7 Linux features
Logitech GPro
7 Linux features
Logitech MX Master 3
7 Linux features
Logitech PRO X Wireless
7 Linux features
Logitech Wireless Mouse MX Master
7 Linux features