Created
September 12, 2026 04:23
-
-
Save thor27/640c659e37606d0171d0776810ecc9ff to your computer and use it in GitHub Desktop.
Keychron Q3 HE 8K udev rules (Full xbox controller compatibility)
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
| # 1. Device Permissions (WebHID / Keychron Launcher) | |
| SUBSYSTEMS=="usb", ATTRS{idVendor}=="3434", MODE="0666", TAG+="uaccess" | |
| KERNEL=="hidraw*", ATTRS{idVendor}=="3434", MODE="0666", TAG+="uaccess" | |
| # 2. Block the keyboard, mouse, and system interfaces from acting like a joystick | |
| KERNEL=="event*", SUBSYSTEM=="input", ATTRS{idVendor}=="3434", ATTRS{name}=="*Keyboard*", ENV{ID_INPUT_JOYSTICK}="" | |
| KERNEL=="event*", SUBSYSTEM=="input", ATTRS{idVendor}=="3434", ATTRS{name}=="*Mouse*", ENV{ID_INPUT_JOYSTICK}="" | |
| KERNEL=="event*", SUBSYSTEM=="input", ATTRS{idVendor}=="3434", ATTRS{name}=="*System Control*", ENV{ID_INPUT_JOYSTICK}="" | |
| KERNEL=="event*", SUBSYSTEM=="input", ATTRS{idVendor}=="3434", ATTRS{name}=="*Consumer Control*", ENV{ID_INPUT_JOYSTICK}="" | |
| # 3. Force the Xbox mode interface to use the official Linux Xbox Controller driver (xpad) | |
| SUBSYSTEM=="usb", ATTR{idVendor}=="3434", ATTR{idProduct}=="1030", RUN+="/sbin/modprobe xpad" | |
| SUBSYSTEM=="usb", ATTR{idVendor}=="3434", ATTR{idProduct}=="1030", RUN+="/bin/sh -c 'echo 3434 1030 > /sys/bus/usb/drivers/xpad/new_id'" | |
| # 4. Standard Gamepad Mode (fallback if you use standard generic gamepad instead of Xbox) | |
| SUBSYSTEM=="input", ATTRS{idVendor}=="3434", ATTRS{name}=="*Gamepad*", ENV{ID_INPUT_JOYSTICK}="1" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not only the xbox mode works with more games, it also support both analog trigger as independent axis