I'm running a script at log-in on my Raspberry Pi B+ (I call it in the
The script runs Jack-Audio and then launch a Puredata patch that deals with audio and GPIOs. The audio part works well but not the GPIO one (a led should be on when the Pd patch opens and a button should let me switch it on/off).
It looks like the pdwiringPi can't speak to GPIOs when called in a script on log-in whereas when I run this script manually after logging in, it works fine.
I precise that I don't have any errors whatever the method I use (automatic on log-in or manually after logging in)
Am I doing something wrong when using the pdwiringPi in Pure data at log-in?
Here is the script:
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket sleep 2 jackd -dalsa -D -i 2 -o 2 -n 3 -r 44100 -p 256 -P& sleep 2 pd-extended -rt -jack -nogui -open wire.pd