-
Notifications
You must be signed in to change notification settings - Fork 37
Better port permission setup and errors #42
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
Conversation
ledmatrix/README.md
Outdated
1. Copy it to your udev rules directory. On Ubuntu, this is located at `/etc/udev/rules.d/` | ||
2. Reload the rules with `sudo udevadm control --reload` | ||
|
||
You can debug issues using the `udevadm monitor --environment` command. Ensure that the device's `idVendor` and `idProduct` match when you plug in the device. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see udevadm monitor --environment
showing anything when I plug in my device.
Do you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is interesting! I definitely am. Here's a gif and a log of what I see what I run this, plug it in, then unplug it:
udevadm-monitor--environment-run-jun-13-733am.log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it seems to work now, hm.
ledmatrix/50-framework.rules
Outdated
# Framework Laptop 16 - LED Matrix Inputmodule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice @JohnAZoidberg , thanks for these and the other changes! 👍
Signed-off-by: Daniel Schaefer <[email protected]>
9a55c4f
to
247bc18
Compare
@JohnAZoidberg just rebased this - could we merge it soon potentially? |
Seems to be the recommended way. See: https://wiki.archlinux.org/title/udev#Allowing_regular_users_to_use_devices Signed-off-by: Daniel Schaefer <[email protected]>
59a621f
to
3c3eac6
Compare
Sorry for the long wait @zachfeldman. Thanks for the contribution! :D |
I tested it and adjusted a bit according to the best practices recommended by the arch wiki. |
Hey no problem @JohnAZoidberg I know it's been a busy time for your team! Thanks so much for taking the time to review this/get it in. |
This PR achieves two things:
Before:
After:
udev
rule (per @kiram9 's suggestion) to give the right permissions to connect to the LED matrix by opening up its port and an addition to the README to make it clear to users how to install this rule (eventually we can make this part of an install script)