RPI Portrait Tochscreen with display_rotate=3 (270°)

Hello togehther

I try to turn my RPI 7" Touchscreen to Portrait mode because listst of music etc are better readable.

But i have som Problems:

Rotate of 180° are no Problem -> edit -> sudo nano /boot/config.txt -> add -> -> lcd_rotate=2 -> everything ok
Rotate of 270° are no Problem -> edit -> sudo nano /boot/config.txt -> add -> -> lcd_rotate=3 or 1 -> doesnt work

I try to follow this thread -> https://www.raspberrypi.org/forums/viewtopic.php?f=108&t=120793

But in Volumio everything is a little bit different i think.

Somebody could help me to success?

Thank you very much
Andi

ok one step more …

for 270° rotation i have to edit a file

sudo nano /boot/config.txt and ad display_rotate=3
this turns the picture on the screen but not the Input from the Touchscreen

for this i have to install xinput

sudo apt-get update sudo apt-get install xinput

for the Touchscreen rotation i have to input the Transformation Matrix

from ssh Terminal:

sudo DISPLAY=:0 xinput --set-prop 'FT5406 memory based driver' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1

from pi:

sudo xinput --set-prop 'FT5406 memory based driver' 'Coordinate Transformation Matrix' 0 -1 1 1 0 0 0 0 1

So every Thing works but

!!! But after this commands ( i think install of xinput) and a restart i loos the sound on my hdmi Output to to the amplifier. There is no more sound. And Monitor of my pi leaves blank!!! I Think the Picture Output gos to the amplifier

Please could you point me in the right direction. I love the portrait mode with the touchscreen. the scroll is much better then in landscape mode.

Thank you

Has anyone found a working solution for rotating the Raspberry Pi Official 7" touchscreen to portrait display?

Hi, in 2018 i have the same question for portrait display with the official raspberry touchscreen and volumio. I tried everything we can find elsewhere for this, but with no success.

I can only have the portrait display but touch responses are still for landscape… (lcd-rotate=1).
The solution with display-rotate=1 and xinput doesn’t work for me (raspberrypi.org/forums/view … 0#p1084567) : first of all, when i try to list my displays (with ssh : DISPLAY=:0 xinput --list), i have the error message “Unable to connect to X server”. And even it worked, i don’t know where i could put the autostart script since the file "home/pi/.config/lxsession.LXDE-pi/autostart " doesn’t exist in volumio…

Any idea ? :unamused: :bulb:

I really like and need the portrait display wich is more clear and efficient for my use.

Thank you for your help.