Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add udev rules for flashing QMK firmware #225

Open
Zindswini opened this issue Dec 8, 2024 · 0 comments
Open

Add udev rules for flashing QMK firmware #225

Zindswini opened this issue Dec 8, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed udev udev rules

Comments

@Zindswini
Copy link

I would like to propose adding the necessary udev rules to allow flashing QMK compatible keyboards as a non-root user.

The starting point for these rules is located here:
https://github.com/qmk/qmk_firmware/blob/master/util/udev/50-qmk.rules

Installing the QMK-CLI fails to install using brew on my system, and installing it via Pip requires additional packages, so I created a distrobox to install the CLI flasher via pip and the necessary packages. However, inside a user distrobox container there is no (good ux) way to run the CLI as root to access the USB device, hence the need for udev rules.

Warning!

These rules need to be evaluated very carefully. These rules apply to any microcontroller with the necessary ids, not just keyboards. There is likely a superset of these rules which would cover this case and allow flashing for Arduino and such. I was unable to find one with some quick searching but it may be worth investigating.

I somewhat recall running into a conflict with this years ago, and looking at the qmk firmware repo there are several issues which mention these rules causing issues:

@castrojo castrojo transferred this issue from ublue-os/config Feb 23, 2025
@dosubot dosubot bot added the enhancement New feature or request label Feb 23, 2025
@castrojo castrojo transferred this issue from ublue-os/main Feb 23, 2025
@castrojo castrojo added udev udev rules help wanted Extra attention is needed labels Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed udev udev rules
Projects
None yet
Development

No branches or pull requests

2 participants