hitsware
Posts: 123
Joined: Sat Mar 26, 2016 10:12 pm
Location: sacramento , california , usa
Contact: Website

auto run gpio

Wed Sep 05, 2018 4:23 pm

To put audio on pins 12 & 13 ......
This works :

Code: Select all

[email protected]:~ $ gpio -g mode 12 alt0
[email protected]:~ $ gpio -g mode 13 alt0
[email protected]:~ $

But this doesn't :
/etc/xdg/lxsession/LXDE-pi/autostart

Code: Select all

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
gpio -g mode 12 alt0
gpio -g mode 13 alt0
@xscreensaver -no-splash
@point-rpi
Can it be made to work ?

gordon77
Posts: 4117
Joined: Sun Aug 05, 2012 3:12 pm

Re: auto run gpio

Wed Sep 05, 2018 4:51 pm

Use /home/pi/.config/lxsession/LXDE-pi/autostart

hitsware
Posts: 123
Joined: Sat Mar 26, 2016 10:12 pm
Location: sacramento , california , usa
Contact: Website

Re: auto run gpio

Wed Sep 05, 2018 8:39 pm

THANK YOU !

Return to “Beginners”