Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotating Touch [Raspbian 4.14, 3.5 LCD, RP 2] #93

Closed
auxua opened this issue Aug 5, 2018 · 6 comments

Comments

Projects
None yet
3 participants
@auxua
Copy link

commented Aug 5, 2018

Did anyone manage to get the touchscreen running correctly on an existing Raspbian?

The Display is working, but the touch inputs are rotated by 90°

I tried:

  • Calibrating as in the documentation
  • Swapping Axis in all configs
  • Swapping axis manually in /etc/modules
  • Setting Transformation matrices in xinput manually
  • calibrating manually using ts_calibrate (works in ts-utility, but not outside)
@goodtft

This comment has been minimized.

Copy link
Owner

commented Aug 6, 2018

@AustinSaintAubin

This comment has been minimized.

Copy link

commented Aug 12, 2018

I am having the same issue. @auxua where you able to resolve this?

@AustinSaintAubin

This comment has been minimized.

Copy link

commented Aug 12, 2018

Here is what I did to get it to work.
Linux 4.14.61-v7+ #1133 SMP Fri Aug 10 11:04:43 BST 2018 armv7l GNU/Linux
LCD-Show v1.7-20180320


sudo -i
# https://www.raspberrypi.org/forums/viewtopic.php?t=162323
# https://www.raspberrypi.org/forums/viewtopic.php?t=148678
cat > /etc/X11/xorg.conf.d/98-lcd-show.conf <<"EOF"
Section "Device" 
	# WaveShare SpotPear 3.5", framebuffer 1
	Identifier "uga" 
	driver "fbdev" 
	Option "fbdev" "/dev/fb1" 
	Option "ShadowFB" "off"
	#Option "Rotate" "UD"  # Flip Upside Down
	Option "SwapbuffersWait" "true"
EndSection 

Section "Monitor" 
	# Primary monitor. WaveShare SpotPear 480x320
	Identifier "WSSP" 
EndSection 

Section "Screen" 
	Identifier "primary" 
	Device "uga" 
	Monitor "WSSP" 
EndSection 

Section "ServerLayout" 
	Identifier "default" 
	Screen 0 "primary" 0 0
EndSection
EOF
# https://www.waveshare.com/wiki/7inch_HDMI_LCD_(C)
# https://github.com/notro/fbtft/issues/445
# https://codepen.io/GottZ/full/pWpNgK/
cat > /etc/X11/xorg.conf.d/99-calibration.conf <<"EOF"
Section "InputClass"
	Identifier      "calibration touchscreen default primary uga fbdev"
	MatchProduct    "ADS7846 Touchscreen"
	Option  "Calibration"   "3936 227 268 3880"
	Option "CalibrationMatrix" "0 -1 1 1 0 0 0 0 1"   # 270 degree
	#Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1"  # 90 degree, Flip Upside Down
	###Option	"SwapAxes"  "1"
	###Option	"SwapXY"	"1"
	###Option	"InvertX" "true"
	###Option	"InvertY" "true"
EndSection
EOF

reboot

@auxua

This comment has been minimized.

Copy link
Author

commented Aug 22, 2018

Did not work for me. Still no change. Retried from scratch without success - Bought another LCD from another manufacturer and it worked without problems

@goodtft

This comment has been minimized.

Copy link
Owner

commented Sep 28, 2018

@goodtft goodtft closed this Sep 28, 2018

@goodtft goodtft reopened this Sep 28, 2018

@auxua

This comment has been minimized.

Copy link
Author

commented Oct 11, 2018

Sorry, Pi broke - cannot test for some time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.