Giter Site home page Giter Site logo

Raspberry Pi GPIO Permissions about build HOT 3 CLOSED

dbrgn avatar dbrgn commented on June 6, 2024
Raspberry Pi GPIO Permissions

from build.

Comments (3)

dbrgn avatar dbrgn commented on June 6, 2024

Can be fixed by changing the following in /etc/udev/rules.d/92-gpio.rules (just add GROUP="gpio"):

-SUBSYSTEM=="gpio", KERNEL=="gpiochip*", ACTION=="add", PROGRAM="/bin/sh -c 'chown volumio:volumio /sys/class/gpio/export /sys/class/gpio/unexport ; chmod 220 /sys/class/gpio/export /sys/class/gpio/unexport'"
-SUBSYSTEM=="gpio", KERNEL=="gpio*", ACTION=="add", PROGRAM="/bin/sh -c 'chown volumio:volumio /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value ; chmod 660 /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value'"
+SUBSYSTEM=="gpio", KERNEL=="gpiochip*", GROUP="gpio", ACTION=="add", PROGRAM="/bin/sh -c 'chown volumio:volumio /sys/class/gpio/export /sys/class/gpio/unexport ; chmod 220 /sys/class/gpio/export /sys/class/gpio/unexport'"
+SUBSYSTEM=="gpio", KERNEL=="gpio*", GROUP="gpio", ACTION=="add", PROGRAM="/bin/sh -c 'chown volumio:volumio /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value ; chmod 660 /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value'"

from build.

macmpi avatar macmpi commented on June 6, 2024

Not sure current build uses latest of raspberrypi-sys-mods as that package is cached in own @volumio repo.
You may check if latest rule fixes your issue.

from build.

ashthespy avatar ashthespy commented on June 6, 2024

I believe http://archive.volumio.org/debian/ is just a mirror of archive.raspberrypi.org -- so packages are the same. :-)

$ curl -s http://archive.raspberrypi.org/debian/dists/jessie/main/binary-armhf/Packages | grep 'Package: raspberrypi-sys-mods' -B 2
Package: raspberrypi-sys-mods
Version: 20170519

$ curl -s http://archive.volumio.org/debian/dists/jessie/main/binary-armhf/Packages | grep 'Package: raspberrypi-sys-mods' -B 2
Package: raspberrypi-sys-mods
Version: 20170519

from build.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.