Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] ddcutil: udev rule
@ 2021-03-01 10:46 dkwo
  2021-03-11 19:55 ` ericonr
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dkwo @ 2021-03-01 10:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1390 bytes --]

New issue by dkwo on void-packages repository

https://github.com/void-linux/void-packages/issues/29152

Description:
With `kernel 5.11` and `ddcutil 1.0.1` it's now possible to control external display connected via docking station.
When running `ddcutil`, at the moment it is necessary to use `sudo/doas`, as no rules are in place.
In fact, `ddctutil environment` suggests:
```
Configuration suggestions:
   Issue:
      Group i2c does not exist.
   Suggestion:
      Create group i2c. To create group i2c, use command:
         sudo groupadd --system i2c
      Assign /dev/i2c-N devices to group i2c by adding a rule to /etc/udev/rules.d
      Add the current user to group i2c:
         sudo usermod -G i2c -a <username>
      After this, you will have to logout and login again.
      The changes to the user's group list are not read until a new login.
```
Is it fine to ship a new `udev` rule with `ddcutil`, something like the suggested
```
$ cat /usr/share/ddcutil/data/45-ddcutil-i2c.rules
# On some distributions, package i2c-tools provides a udev rule.
# For example, on Ubuntu, see 40-i2c-tools.rules.

# Assigns the i2c devices to group i2c, and gives that group RW access:
KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660"

# Gives everyone RW access to the /dev/i2c devices:
# KERNEL=="i2c-[0-9]*",  MODE="0666"
```
Or what is the correct approach?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-08-27 17:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-01 10:46 [ISSUE] ddcutil: udev rule dkwo
2021-03-11 19:55 ` ericonr
2021-03-12 10:21 ` dkwo
2021-03-12 15:20 ` ericonr
2021-03-15  9:20 ` dkwo
2021-08-27 17:39 ` [ISSUE] [CLOSED] " ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).