PiTFT 3.5 boot to startx?

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mooneygeek
 
Posts: 4
Joined: Tue Dec 27, 2011 12:41 pm

PiTFT 3.5 boot to startx?

Post by mooneygeek »

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.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: PiTFT 3.5 boot to startx?

Post by adafruit_support_rick »


User avatar
mooneygeek
 
Posts: 4
Joined: Tue Dec 27, 2011 12:41 pm

Re: PiTFT 3.5 boot to startx?

Post by mooneygeek »

Solved everything. Thanks.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”