Python script won't auto start on 3.5 LCD image - Raspberry Pi Forums
this first posting please excuse protocol violations posting.
have raspberry pi 2 model b loaded wth wheezy has been been updated , running raspbian gnu/linux 7.
have mypi.py program runs no problem home/pi directory , prints output on hdmi monitor. have configured following files , scripts auto start mypi.py on boot no glitches. have worked when loaded separately.
scenario 1 executed on hdmi screen
/etc/inittab
1:2345:respawn:/sbin/getty 115200 tty1line1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
,
wrote .sh file
!/bin/sh
cd/
cd/home/pi/mypi.py
sudo python mypi.py
cd/
chmod tx mypi.py
chmod tx launcher.sh
/etc/profile
. /home/pi/your_script_name.sh
scenario 2 executed on hdmi screen
sudo nano /etc/rc.local
before sxit0 wrote
python /home/pi/mypi.py parms &
scenario 3 executed on hdmi screen
chron script
sudo crontab -e
added
using cursor keys scroll bottom , add following line :
@reboot python /home/pimypi.py &
problem started when installed waveshare pear 3.5 inch lcd (a).
under stated scenarios tried separately, boot have log in manually , run mypi.py python prompt python mypi.py on lcd display. seems image created loading lcd35-show not recognize of above scripts
when each separately configured. need start mypi.py standalone on lcd display when systems powers application.
assistance appreciated.
have raspberry pi 2 model b loaded wth wheezy has been been updated , running raspbian gnu/linux 7.
have mypi.py program runs no problem home/pi directory , prints output on hdmi monitor. have configured following files , scripts auto start mypi.py on boot no glitches. have worked when loaded separately.
scenario 1 executed on hdmi screen
/etc/inittab
1:2345:respawn:/sbin/getty 115200 tty1line1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
,
wrote .sh file
!/bin/sh
cd/
cd/home/pi/mypi.py
sudo python mypi.py
cd/
chmod tx mypi.py
chmod tx launcher.sh
/etc/profile
. /home/pi/your_script_name.sh
scenario 2 executed on hdmi screen
sudo nano /etc/rc.local
before sxit0 wrote
python /home/pi/mypi.py parms &
scenario 3 executed on hdmi screen
chron script
sudo crontab -e
added
using cursor keys scroll bottom , add following line :
@reboot python /home/pimypi.py &
problem started when installed waveshare pear 3.5 inch lcd (a).
under stated scenarios tried separately, boot have log in manually , run mypi.py python prompt python mypi.py on lcd display. seems image created loading lcd35-show not recognize of above scripts
when each separately configured. need start mypi.py standalone on lcd display when systems powers application.
assistance appreciated.
raspberrypi
Comments
Post a Comment