I'm writing an application which I'd like to have start from boot. It's a python3 script.
To etc/xdg/lxsession/LXDE-pi/autostart I added @lxterminal and @/usr/bin/python3 /home/pi/DigitalClock.py.
A reboot went to the Linux prompt. But when I entered 'startx' the desktop came up and the digital clock script executed. So I figured I needed a way to run startx.
I ran raspi-config and selected 'boot to Desktop.' On reboot, the terminal came up on the HDMI monitor instead of the PiTFT. Is there a way to auto-run startx (or xserver or anything that allows a script with pyside) so that it operates on the PiTFT?
BTW -- The HDMI display was not connected at boot. When the PiTFT went black, I connected the monitor to see if anything was showing. The digital clock was running on the terminal there.
PiTFT 3.5 boot to startx?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: PiTFT 3.5 boot to startx?
Please see this FAQ
https://learn.adafruit.com/adafruit-pit ... faq#faq-11
https://learn.adafruit.com/adafruit-pit ... faq#faq-11
- mooneygeek
- Posts: 4
- Joined: Tue Dec 27, 2011 12:41 pm
Re: PiTFT 3.5 boot to startx?
Solved everything. Thanks.
Please be positive and constructive with your questions and comments.