Christian123
Posts: 2
Joined: Tue Oct 21, 2014 7:19 am

Display, how to start GUI?

Tue Oct 21, 2014 7:58 am

Hi,

I have bought a Adafruit PiTFT - 2.8" Touchscreen Display for Raspberry Pi. There’s a descripition for the installation of the touchscreen Display under https://learn.adafruit.com/adafruit-pit ... sy-install. I took the easy install possibility and it worked. That means I can use the Terminal and print Images on screen.

My problem is that I don’t know how to start the GUI/Desktop??
Thanks in advance.

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Display, how to start GUI?

Tue Oct 21, 2014 10:22 am

Do the instructions in the adafruit documentation not work?

https://learn.adafruit.com/adafruit-pit ... s-on-pitft

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Display, how to start GUI?

Tue Oct 21, 2014 10:43 am

And if you want to start the GUI from the command line:

Code: Select all

FRAMEBUFFER=/dev/fb1 startx
Or you can add a line to .profile (if the auto setup has not done that already) and just use startx.

From https://learn.adafruit.com/adafruit-pit ... stallation:
You can now try to run X again with

Code: Select all

FRAMEBUFFER=/dev/fb1 startx
Type Control-C to quit X

If you don't ever want to have to type FRAMEBUFFER=/dev/fb1 before startx, you can make it a default state by editing your profile file: sudo nano ~/.profile and adding

Code: Select all

export FRAMEBUFFER=/dev/fb1
near the top and saving the file. Then reboot to reload the profile file. It will now always assume you want to use /dev/fb1
Gr.
Dirk.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Display, how to start GUI?

Tue Oct 21, 2014 11:20 am

Follow the instructions here: https://github.com/notro/fbtft/wiki/Framebuffer-use

You need to create an xorg.conf.d file to force X to use the FB1 device.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Christian123
Posts: 2
Joined: Tue Oct 21, 2014 7:19 am

Re: Display, how to start GUI?

Fri Oct 24, 2014 7:37 am

You are right. I forgot the "FRAMEBUFFER=/dev/fb1 startx" command. It's working now.

Thank you all very much.

Return to “Graphics, sound and multimedia”