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

Udev rule for i2c device permission #85

Open
CromFr opened this issue May 6, 2019 · 2 comments
Open

Udev rule for i2c device permission #85

CromFr opened this issue May 6, 2019 · 2 comments

Comments

@CromFr
Copy link

CromFr commented May 6, 2019

I'm using the following udev rule for setting rights for the i2c devices:

KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660", PROGRAM="/usr/bin/ddcutil --bus=%n capabilities"

where I replaced the i2c group with my user group.

This is very similar to the USB rule in http://www.ddcutil.com/i2c_permissions/, however I did not find any "quick" way to check if the i2c device is a ddc device (what chkusbmon does for usb), and I ended up querying all the capabilities (which is probably overkill).

Anyway you may find this interesting to add to the documentation ;)

@rockowitz
Copy link
Owner

rockowitz commented May 8, 2019 via email

@CromFr
Copy link
Author

CromFr commented May 9, 2019

Thank you so much for your very detailed response !

I originally used getvcp 0x10, but I was afraid I might end up with an unsupported display. I'll switch back to 0x10 following your advice.

Thank you for your work on ddcutil, it's now essential to me for switching multiple screen inputs between my host and VMs :)

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

No branches or pull requests

2 participants