Advertisement
Guest User

99-calibration.conf-35 for Raspbian 9.8 Stretch

a guest
Apr 12th, 2019
1,046
1
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 1 0
  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
Advertisement
Comments
  • jupiterbjy
    1 year
    # text 0.13 KB | 0 0
    1. Minor note: For anyone trying to use with 90 rotation(Power cable downward), use matrix "1 0 0 0 1 0 0 0 1" and set InvertX to false.
Add Comment
Please, Sign In to add comment
Advertisement