Rotate screen @ editing (the missing?!) config.txt

I have connected the standard 7 inch Raspbery display to the pi on which I run HA.

The output on the display is upside down.

This can be adjusted with a line “lcd = 2” (rotate screen) in config.txt.

When I SSH to the pi I don’t see config.txt.

I have read complicated stories on the Internet about Docker and containers. Is this indeed the route to a solution, or is there an easier way to edit config.txt?

Easiest way - take the card out and put it in a windows or Linux pc. Edit config.txt in the fat partittion.

1 Like

Should be available within the /boot/ directory.

Try

# ls -l /boot/config.txt

And modify with your favorite text editor

# vi /boot/config.txt

Yeah, this works - thank you very much :wink:

1 Like

Maybe someone has the same problem with a raspi3/4 with ldc oder hdmi display.

The solution has changed a little bit…

for my rpi 3 this works:
display_hdmi_rotate=0,1,2,3 for the hdmi output
display_lcd_rotate=0,1,2,3 for the ribbon cable

for raspi 4 the solution is a bit different… see manual:

[How to Rotate the Screen of the Raspberry Pi - Pi My Life Up]

1 Like