-
Notifications
You must be signed in to change notification settings - Fork 93
Setup: Troubleshooting
Paul de Vries edited this page Apr 23, 2016
·
31 revisions
X.org still thinks your HDMI (or analog) port is the main output for your display. So we need tell it to output the display to your new touchscreen:
-
Run
sudo nano /etc/X11/xorg.conf.d/99-fbdev.conf
if file/path does not exist then create it -
Paste the following code:
Section "Device" Identifier "myfb" Driver "fbdev" Option "fbdev" "/dev/fb1" EndSection
-
Save & Exit (CTR-O, ENTER, CTR-X)
-
Run
sudo chmod +x /etc/X11/xorg.conf.d/99-fbdev.conf
-
Reboot
- Stop TouchUI with
sudo service touchui stop
- Run
curl -sLS https://apt.adafruit.com/add | sudo bash
- Run
sudo apt-get install -y xinput-calibrator
- Run
FRAMEBUFFER=/dev/fb1 & DISPLAY=:0.0 xinput_calibrator
- Follow the calibration steps
- After you completed step 6, pay attention to your command line, because it will show a wall of text with at the bottom instructions, please copy
Section
untilEndsection
and follow step 7 - Run
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
and replace the file with the copiedSection
code from step 6. - Save (CTR-O, Enter, CTR-X)
- Reboot
-
Make sure you followed the Calibration part first!
-
Edit the calibration file you made
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
-
Add the following line before the
EndSection
that you copied from the calibration:For inverting horizontal axis
Option "InvertX" "true"
For inverting vertical axis
Option "InvertY" "true"
- Download and install the plugin SnapStream (also available in the plugin manager)
- Configurate the settings (remember do not link the MJPEG file but to a static JPEG, the plugin will reload the image rather then streaming)