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 #347

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

Add udev rules for flashing QMK firmware #347

Zindswini opened this issue Dec 8, 2024 · 0 comments

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant