Skip to content

Setup: Troubleshooting

Paul de Vries edited this page Apr 23, 2016 · 31 revisions

Boots to Blackscreen

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:

  1. Run sudo nano /etc/X11/xorg.conf.d/99-fbdev.conf
    if file/path does not exist then create it

  2. Paste the following code:

    Section "Device"  
      Identifier "myfb"
      Driver "fbdev"
      Option "fbdev" "/dev/fb1"
    EndSection
    
  3. Save & Exit (CTR-O, ENTER, CTR-X)

  4. Run sudo chmod +x /etc/X11/xorg.conf.d/99-fbdev.conf

  5. Reboot

Calibration

  1. Stop TouchUI with sudo service touchui stop
  2. Run curl -sLS https://apt.adafruit.com/add | sudo bash
  3. Run sudo apt-get install -y xinput-calibrator
  4. Run FRAMEBUFFER=/dev/fb1 & DISPLAY=:0.0 xinput_calibrator
  5. Follow the calibration steps
  6. 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 until Endsection and follow step 7
  7. Run sudo nano /etc/X11/xorg.conf.d/99-calibration.conf and replace the file with the copied Section code from step 6.
  8. Save (CTR-O, Enter, CTR-X)
  9. Reboot

Inverted touch Y/X axis

  1. Make sure you followed the Calibration part first!

  2. Edit the calibration file you made sudo nano /etc/X11/xorg.conf.d/99-calibration.conf

  3. 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"
    

Webcam image not working

  1. Download and install the plugin SnapStream (also available in the plugin manager)
  2. Configurate the settings (remember do not link the MJPEG file but to a static JPEG, the plugin will reload the image rather then streaming)