Created
May 6, 2026 18:08
-
-
Save Oxey405/14519e8dc5de5a213a4fbc1a8748b7a0 to your computer and use it in GitHub Desktop.
udev rule for the Keychron M6 mouse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Keychron M6 - Wired | |
| SUBSYSTEM=="usb", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="d064", MODE="0666", GROUP="plugdev" | |
| SUBSYSTEM=="hidraw", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="d064", MODE="0666", GROUP="plugdev" | |
| # Keychron M6 - Bluetooth | |
| SUBSYSTEM=="hidraw", KERNELS=="*3434:0361*", MODE="0666", GROUP="plugdev" | |
| # Keychron M6 (Via 2.4GHz Keychron Link-KM adapter) | |
| SUBSYSTEM=="usb", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="d026", MODE="0666", GROUP="plugdev" | |
| SUBSYSTEM=="hidraw", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="d026", MODE="0666", GROUP="plugdev" | |
| # What's this ? | |
| # This is a udev rule, it defines permissions for hardware devices in roughly the same way that file permissions work in Linux. | |
| # Here I've set the Mode (permissions) to 0666 meaning read and write for root, the user and any user on your machine. | |
| # This rule allows the usage of Keychron's Launcher web-app (see launcher.keychron.com) on your linux computer! | |
| # How to install : | |
| # 1. Copy-paste this text into a brand new file named 99-keychron.rules in the /etc/udev/rules.d folder | |
| # 2. Run the following commands to reload your ID | |
| # sudo udevadm control --reload-rules && sudo udevadm trigger | |
| # 2b. If this doesn't work directly, try rebooting your computer. | |
| # Note: if you have another keychron product, you can use the following command to determine the vendor and product ids : | |
| # lsusb | grep Keychron | |
| # You can they identify the device's IDs. Here is an example | |
| # Bus 003 Device 013: ID 3434:d064 Keychron Keychron M6 | |
| # Here we take a look the the "ID VVVV:PPPP" part where we can see 2 ids, | |
| # the Vendor ID (VVVV), here it's 3434 and that's the same for all keychron products | |
| # the Product ID (PPPP), here it's d064 and it's the same for all Keychron M6 mouses |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment