rcn-ee / repos

repos.rcn-ee.com
41 stars 30 forks source link

Enable non-root user access to the eQEP modules #33

Closed dplanella closed 7 years ago

dplanella commented 7 years ago

This change enables non-root users who are part of the eqep group to access the sysfs attributes needed to control the eQEP modules from user space. As an example, it allows resetting the position attribute to 0 or to an arbitrary position without the need to elevate privileges.

It's implemented as a udev rule following the convention set by the other subsystems that need to be accessed as non-root (80-gpio-noroot.rules and 81-pwm-noroot.rules). Following a similar practice, a new, dedicated 'eqep' group was added.

RobertCNelson commented 7 years ago

Look good!

dplanella commented 7 years ago

@RobertCNelson awesome, thanks for the super quick review and merge! While the commit is for buster, I'm running stretch right now, and I'd like to get the update in there too. What's the release process for the bb-customizations package, or more specifically, do you need me to submit a separate PR to backport it to stretch?

RobertCNelson commented 7 years ago

Already done: ;)

https://github.com/rcn-ee/repos/commit/1bf3004d6b835670b9f64e810fa95858dfa91bc6

i just use meld and sync everything up..

Regards,

RobertCNelson commented 7 years ago

it's pushed out:

sudo apt update
sudo apt upgrade

Regards,

dplanella commented 7 years ago

Awesome, thanks! Upgraded, works like a charm :)