Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: autostart oled display failure..
#15
Oh my word   Rolleyes  
OK looking at your dump of your /etc/rc.local file you misunderstood my last post.

So assuming your thing worked when running in a shell and as root...

e.g. as pi, switch to the root user...

Code:
sudo -i


... then run your script

Code:
cd /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor && /usr/bin/python ./monitor.py

If that works as root then the monitor works as the root user in a shell.


One would do the same in the rc.local file by just adding to the file before the 'exit 0' line...
Code:
cd /home/pi/Adafruit_Python_SSD1306/raspberry-oled-monitor && /usr/bin/python ./monitor.py &

That will be executed at boot time. So do that and get rid of the other commented out ones...


Now above those, what's this line?

Code:
/home/pi/Flirc-moode.py

 ... and why doesn't it have a '&' on the end? Is that a persistent process? If so nothing after it will run.


FYI you can see what processes are still running from rc.local by running..

Code:
sudo systemctl status rc-local
Reply


Messages In This Thread
autostart oled display failure.. - by DRONE7 - 12-27-2019, 11:54 PM
RE: autostart oled display failure.. - by DRONE7 - 12-28-2019, 03:20 AM
RE: autostart oled display failure.. - by vinnn - 12-28-2019, 11:47 AM
RE: autostart oled display failure.. - by DRONE7 - 12-28-2019, 04:57 PM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 03:59 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 06:10 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 06:56 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 08:03 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 08:26 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 08:57 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 09:39 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 10:02 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 10:30 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 10:44 AM
RE: autostart oled display failure.. - by vinnn - 12-30-2019, 10:53 AM
RE: autostart oled display failure.. - by DRONE7 - 12-30-2019, 08:11 PM
RE: autostart oled display failure.. - by DRONE7 - 12-31-2019, 03:24 AM

Forum Jump: