PiTFT & script: console yes, X no

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
kirill
 
Posts: 15
Joined: Fri Sep 07, 2012 7:12 am

PiTFT & script: console yes, X no

Post by kirill »

Hello,

I have the old resistive PiTFT and it, well, sorta works.
I've used the install script and the console is indeed show, the desktop however is missing, the screen stays black.
The image is the latest (as of 18. November 2014) Raspbian with I²C and SPI turned on in raspi-config.
Any help?

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: PiTFT & script: console yes, X no

Post by adafruit_support_mike »

Have you launched an X session with:

Code: Select all

FRAMEBUFFER=/dev/fb1 startx &

User avatar
kirill
 
Posts: 15
Joined: Fri Sep 07, 2012 7:12 am

Re: PiTFT & script: console yes, X no

Post by kirill »

I've run the script from http://adafru.it/pitftsh, nothing more
It looks though like the script does that, doesn't it?
Edit: checked it out, my ~/.profile has the line export FRAMEBUFER=/dev/fb1

User avatar
kirill
 
Posts: 15
Joined: Fri Sep 07, 2012 7:12 am

Re: PiTFT & script: console yes, X no

Post by kirill »

Ok, now I've installed the image from https://learn.adafruit.com/adafruit-pit ... sy-install and have the same situation: boot console appears. Afterwards, the screen is black with one static cursor and no X whatsoever. What to do to make the screen work with the Adafruit-provided image? That is, I've used raspi-config to tell it to boot to GUI. Logging in and typing startx manually is impossible as I want to make a keyboard-less device.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: PiTFT & script: console yes, X no

Post by adafruit_support_mike »

You can add the `startx` command above to the end of /etc/rc.local and it will run as part of the standard boot process.

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”