Pravin.GIPL
Posts: 1
Joined: Thu Oct 10, 2019 7:13 am

I cant rotate my raspberry pi 3b 10.1 inch screen and touch together

Thu Oct 10, 2019 7:17 am

I have tried using the config.txt

in the end of the text i typed

display_rotate=2
lcd_rotate=2

both i tried i can rotate the screen but my touch is going crazy in opposite direction.

can anyone help me!!!!!

fruitoftheloom
Posts: 27225
Joined: Tue Mar 25, 2014 12:40 pm

Re: I cant rotate my raspberry pi 3b 10.1 inch screen and touch together

Thu Oct 10, 2019 11:22 am

Pravin.GIPL wrote:
Thu Oct 10, 2019 7:17 am
I have tried using the config.txt

in the end of the text i typed

display_rotate=2
lcd_rotate=2

both i tried i can rotate the screen but my touch is going crazy in opposite direction.

can anyone help me!!!!!

You appear to have not included any information about your Screen or Raspberry Pi Model or Operating System !
Take what I advise as advice not the utopian holy grail, and it is gratis !!

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 13274
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: I cant rotate my raspberry pi 3b 10.1 inch screen and touch together

Thu Oct 10, 2019 12:12 pm

display_rotate=2 will affect all displays (display only)
lcd_rotate=2 will affect only the DSI display, and compensate for the touchscreen as that goes via the firmware.

There is no 10.1" screen sold by Raspberry Pi, therefore the logical conclusion is that yours is connected via USB or similar. If so then you need to use xinput, the same as on any other Linux system. A simple search for xinput either on the forums here, or more generally through your preferred search engine, should yield results.
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Ernst
Posts: 1381
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: I cant rotate my raspberry pi 3b 10.1 inch screen and touch together

Thu Oct 10, 2019 2:15 pm

Pravin.GIPL wrote:
Thu Oct 10, 2019 7:17 am
I have tried using the config.txt

in the end of the text i typed

display_rotate=2
lcd_rotate=2

both i tried i can rotate the screen but my touch is going crazy in opposite direction.

can anyone help me!!!!!
Some notes that I made some time ago:

install evdev:

Code: Select all

sudo apt-get install xserver-xorg-input-evdev
sudo mv /usr/share/X11/xorg.conf.d/10-evdev.conf /usr/share/X11/xorg.conf.d/45-evdev.conf
Add the following line at the end of /boot/config.txt

Code: Select all

display_rotate=2
edit /usr/share/X11/xorg.conf.d/45-evdev.conf .
Add the following lines in the section “InputClass” for TouchScreen, before “EndSection”, in the file “/usr/share/X11/xorg.conf/45-evdev-conf”
Option “InvertX” “true”
Option “InvertY” “true”
resulting in:

Code: Select all

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "InvertX" "true"
        Option "InvertY" "true"
EndSection

Code: Select all

sudo reboot
The road to insanity is paved with static ip addresses

Doubledge
Posts: 1
Joined: Sat Feb 15, 2020 2:17 pm

Re: I cant rotate my raspberry pi 3b 10.1 inch screen and touch together

Sat Feb 15, 2020 2:25 pm

Sorry to revive this thread but I’ve been trying to accomplish this swap of the touchscreen axis on a Dell 24” touchscreen following these directions and many others on a new RPi 4b. After hours of effort I’ve utterly failed every time. This is my first RPi and I’m just lost at this point. Any help is appreciated.

I followed these directions and edited the /usr/share/X11/xorg.conf.d/10-evdev.conf
I rebooted and saw no change.

Return to “General discussion”