SHARE
TWEET

99-calibration.conf-35 for Raspbian 9.8 Stretch

a guest Apr 12th, 2019 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This is the file "99-calibration.conf-35" that the script "LCD35-show" is supposed to copy onto (i.e. overwrite with) /etc/X11/xorg.conf.d/99-calibration.conf on a Raspberry Pi. Don't use the one in https://github.com/goodtft/LCD-show/tree/master/usr/.
  2.  
  3. # Use this file for Raspbian 9.8 Stretch. Might not work with older or newer versions of Raspbian!
  4.  
  5. Section "InputClass"
  6.    Identifier      "calibration"
  7.    MatchProduct    "ADS7846 Touchscreen"
  8.    # Hat trick to get the pen to work properly on the touch screen, rotate 90 degrees clockwise:
  9.    Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
  10.    # Don't use libinput but evdev for the touch screen and the pen so calibration works:
  11.    Driver "evdev"
  12.    Option  "Calibration"   "3936 227 268 3880"
  13.    Option "InvertY" "false"
  14.    Option "InvertX" "true"
  15.    # Right mouse button is long press with pen:
  16.    Option "EmulateThirdButton" "1"
  17.    Option "EmulateThirdButtonTimeout" "750"
  18.    Option "EmulateThirdButtonMoveThreshold" "30"
  19. EndSection
  20.  
  21. Section "Device"
  22.    # WaveShare SpotPear 3.5", framebuffer 1
  23.    Identifier "uga"
  24.    driver "fbdev"
  25.    Option "fbdev" "/dev/fb1"
  26.    Option "ShadowFB" "off"
  27. EndSection
  28.  
  29. Section "Monitor"
  30.    # Primary monitor. WaveShare SpotPear 480x320
  31.    Identifier "WSSP"
  32. EndSection
  33.  
  34. Section "Screen"
  35.    Identifier "primary"
  36.    Device "uga"
  37.    Monitor "WSSP"
  38. EndSection
  39.  
  40. Section "ServerLayout"
  41.    Identifier "default"
  42.    Screen 0 "primary" 0 0
  43. EndSection
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top