Rotate screen and touch for touchscreen (Solved)

General discussion about RuneAudio. Do not post any support or feature requests here.

Rotate screen and touch for touchscreen (Solved)

Postby irishwill2008 » 06 Sep 2017, 16:19

Hi guys,

I have a portrait 1080 x 1920 touchscreen. I had to add: display_rotate=3 to the config file at /boot/

My display is perfect but my touch is all over the shop? I think its still in landscape mode?

How can i fix this?

What i did with screen:

I opened /boot/config.txt

With a text editor and searched for the line:
lcd_rotate=2

Under that i added: display_rotate=3

Any help is appreciated!

Thanks.

SOLVED:
Solved my issue by editing /root/.xinitrc and adding "xinput --set-prop 'DRIVER NAME HERE' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1".
Last edited by irishwill2008 on 07 Sep 2017, 10:30, edited 4 times in total.
irishwill2008
 
Posts: 157
Joined: 26 Jul 2016, 14:49
Location: Ireland

Re: Rotate screen and touch for touchscreen

Postby irishwill2008 » 07 Sep 2017, 09:22

To explain my issue clearer, my display is now set correctly but my touch is way off? Quoting a user here:
But now the Touch screen is in the same position as before, which means it works in the opposite direction (left is right and up is down).


Located: http://www.runeaudio.com/forum/post19494.html?hilit=rotate%20touchscreen#p19495

How do i fix my touch points? Rotate the touch?
irishwill2008
 
Posts: 157
Joined: 26 Jul 2016, 14:49
Location: Ireland

Re: Rotate screen and touch for touchscreen (Solved)

Postby hondagx35 » 07 Sep 2017, 17:56

Hi,

lcd_rotate is for the Pi 7" tft display and should be commented in your case.

Please read this:
https://www.raspberrypi.org/forums/viewtopic.php?f=108&t=120793

Frank
User avatar
hondagx35
 
Posts: 3039
Joined: 11 Sep 2014, 22:06
Location: Germany

support RuneAudio Donate with PayPal


Return to General discussion

Who is online

Users browsing this forum: No registered users and 0 guests