-
Notifications
You must be signed in to change notification settings - Fork 91
Setup: Troubleshooting
This indicates your driver is not working, please consult your touchscreen maker for installation instructions.
X11 is using the wrong framebuffer for displaying TouchUI.
-
Run
sudo nano /etc/X11/xorg.conf.d/99-fbdev.conf
if file/path does not exist then create it -
Find the following code:
Section "Device" Identifier "touchscreen" Driver "fbdev" Option "fbdev" "/dev/fb1" EndSectionif not found, paste the code into the file
if found, replace/dev/fb1into/dev/fb0or/dev/fb0into/dev/fb1 -
Save & Exit (CTR-O, ENTER, CTR-X)
-
Run
sudo chmod +x /etc/X11/xorg.conf.d/99-fbdev.conf -
Reboot
* if the file does not exist, update your bootloader!.
- Update your bootloader!.
- Read https://wiki.ubuntu.com/X/InputCoordinateTransformation
- Create a new file
touch ~/TouchUI-autostart/calibration.sh - Edit the new file
nano ~/TouchUI-autostart/calibration.sh - Copy
su $TOUCHUI_USER -c "xinput set-prop 'YOUR DEVICE NAME' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1" - Replace 'YOUR DEVICE NAME' and the coordinates with the instructions from the ubuntu wiki.
- Save & Exit (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
EndSectionthat 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:
-
Open a browser and type
http://pi-ip-adrress:8080/?action=snapshot.
If this works, then replace/webcam/?action=snapshotwith/?action=snapshotand save -
If that didn't work, then try
http://pi-ip-adrress:8080/webcam/?action=snapshot
In that case, SnapStream should work straight out of the box
-
- 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
sudo xinit ~/TouchUI-autostart/calibration.xinit* - 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
SectionuntilEndsectionand follow step 7 - Exit by pressing CTR-C
- Run
sudo nano /etc/X11/xorg.conf.d/99-calibration.confand replace the file with the copiedSectioncode from step 6. - Save (CTR-O, Enter, CTR-X)
- Reboot