In this post I went over the basic steps for getting the touchscreen running. Here are some additional hints and tips for getting the touch screen running.
- There is a
display_rotate
option documented for use inconfig.txt
. That didn’t work for me. Only adding therotate=
option worked. The values forrotate=
are 0, 90, 180 and 270. - In the console mode, if the default font is too large, you can select the smaller font by adding a
fbcon=font:VGA8x8
at the end of thecmdline.txt
file - I found it was easiest to setup the system using SSH. That required a few options to get Xwindows to start from a SSH terminal vs. the LCD console.
- You will need
sudo apt-get install xserver-xorg-legacy
to get the config file that allows starting Xwindows from the SSH terminal. - Change
/etc/X11/Xwrapper.config
toallowed_users=anybody
. This allows SSH users to start Xwindows.
- You will need
- Start Xwindows from the SSH terminal with the
startx&
command. Stop X with thepkill x
command. - If you want to run a Xwindows program from the SSH terminal, you need to tell it which display to use. Put the string
DISPLAY=:0.0
before the command. For example “DISPLAY=:0.0 xinput set-prop ...
“ - The
xinput set-prop matrix
command is additive. If you run it twice in the same X session, it will not do what you expect. If you need to run it a second time you will need to stop X and start again. - During testing I setup the xscreensaver. Install with
sudo apt-get install xscreensaver xscreensaver-data-extra
. The screen is too small to configure xscreensaver using the tiny screen. But, you can edit the .xscreensaver file in your home directory. You can see my files below. I removed all the screensavers that don’t look good on the tiny, slowly updating screen.
. You will need to reboot after making the change.
My .xscreensaver
file is here.