-
Notifications
You must be signed in to change notification settings - Fork 93
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 /usr/share/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 /usr/share/X11/xorg.conf.d/99-fbdev.conf -
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"
Configurate the webcam settings as followed:
if you're using OctoPi you could also use octopi.local
-
Open a browser and type
http://<pi-ip-address>:8080/webcam/?action=snapshot.
If this works, then replace/webcam/?action=snapshotwithhttp://<pi-ip-address>:8080/webcam/?action=snapshotand save -
If that didn't work, then try
<pi-ip-address>:8080/?action=snapshot
If this works, then replace/webcam/?action=snapshotwithhttp://<pi-ip-address>:8080/?action=snapshotand save
- Make sure your bootloader is updated.
- Edit TouchUI default file:
sudo nano /etc/default/touchui - Add or change the variable
DISABLE_SCREENSAVER=falsetoDISABLE_SCREENSAVER=true - Save (CTR-O, Enter, CTR-X)
- Restart TouchUI
sudo service touchui restart
Please consult your touchscreen maker for better details. These steps below work on a Waveshare 3.5
- Stop TouchUI with
sudo service touchui stop - Run
sudo apt-get install -y xinput-calibrator - Run
sudo xinit ~/TouchUI-autostart/helpers/calibration.xinit* - Follow the calibration steps
- After you completed step 4, pay attention to your command line, because it will show a wall of text with at the bottom instructions, copy
SectiontoEndsection - Exit by pressing CTR-C
- Run
sudo nano /usr/share/X11/xorg.conf.d/99-calibration.confand replace the file with the copiedSectioncode from step 5. - Save (CTR-O, Enter, CTR-X)
- Reboot **
* if the file does not exist, update your bootloader!.
** if your changes to the file 99-calibration.conf seems to be ignored, you might be victim to the problem explained here
- Update your bootloader!.
- Read the instructions from https://wiki.ubuntu.com/X/InputCoordinateTransformation
- Run
sudo apt-get install xinput - To get your device name run
FRAMEBUFFER=/dev/fb1 & DISPLAY=:0.0 xinput list
use/dev/fb0if you're using HDMI or the Official RPI display - 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
Upgrading your kernel can result in unexpected behaviors, if your kernel was installed by the touchscreen manufacturer then try to install the latest version from your manufacturer
- Run:
sudo apt-get upgrade sudo apt-get install rpi-update - Run:
sudo rpi-update - Reboot:
sudo reboot