Screen stays upside down

BertB

2h

Today, I finaly had the time do load the latest image on a clean SD card. I also received the DSI cable to connect the RPI5 to the P7 version 1. Since I have this custom zynthian, I need webconf to configure it. That seemed to work great. Originally the config was a V5 with MIPI DSI 800x480 (inverted) and the wiring as Mini V2, but I changed that to what it is:

Raspberry Pi 5 Model B Rev 1.0
Audio: HifiBerry DAC+ ADC PRO
Display: Pi 7 Touchscreen Display 800x480
Wiring: MCP23017_ZynScreen
I2C: MCP23017@0x20, MCP23017@0x21
Profile: v4_stage

Except for the profile, that actually is a Custom.

After rebooting over and over again with or without (inverted) option and with the MIPI settings or the P7 settings, the screen stays upside down and also the previously made backup can load but has no effect.

When I insert the SD card I used for the RPI4 (which seems to work perfect) in the RPI5 everything seems to be fine again.

Also the screen is in the right position.

Raspberry Pi 5 Model B Rev 1.0
Audio: HifiBerry DAC+ ADC PRO
Display: Pi 7 Touchscreen Display 800x480
Wiring: MCP23017_ZynScreen
I2C: MCP23017@0x20, MCP23017@0x21
Profile: v4_stage

When you say ā€œlatestā€ you mean the Vangelis BETA image?

Regards,

Please, update and try again.

Yes.

Update makes it possible to show the boot process normal or upside down. The opening image with Vangelis and the mixer stays upside down in both normal and inverted configuration.

Raspberry Pi 5 Model B Rev 1.0
Audio: HifiBerry DAC+ ADC PRO
Display: Pi 7 Touchscreen Display 800x480
Wiring: MCP23017_ZynScreen
I2C: MCP23017@0x20, MCP23017@0x21
Profile: v4_stage

zyncoder: vangelis (371e521)
zynthian-ui: vangelis (41b3208)
zynthian-sys: vangelis (edf282b)
zynthian-data: vangelis (db3a198)
zynthian-webconf: vangelis (d719eb4)

The inverted configuration should rotate the display. One config should be rotated respect to the other one.
Please, ensure you are updated to the last (Vangelis BETA updated to the last) and try again.
If not, please try this from command line:

$DISPLAY=:0
xrandr --output DSI-1 --rotate inverted

Or perhaps you connected your display to DSI-2?

1 Like

The display wire is connected to connector J3 that also says cam/display 0. It is the one closest to POE connector.

I have written the latest beta on the SD card and done all the updates.

I am an absolute beginner with command line stuff, but in the Terminal I entered

$DISPLAY=:0

The reply is bash: :0=:0 command not found.

If I only type DISPLAY=:0 it seems to be accepted, no fault message.

After the next line with xrandr, the reply is can’t open display.

The $ at the start of that line is just the shell prompt in the example, so it gets read as part of the command. Try it as two steps in the same terminal session: export DISPLAY=:0 and then xrandr --output DSI-1 --rotate inverted. Without export, the variable is not passed on to the next command, which is why you get can’t open display. It is also worth running xrandr --listmonitors first, since that prints the exact output name and tells you whether the panel shows up as DSI-1 or DSI-2 before you try rotating it.

1 Like

Thanks for explanation:

This is the result of the actions in the terminal in the Zynthian:

root@zynthian://zynthian# DISPLAY=:0

root@zynthian://zynthian# xrandr --output DSI-1 --rotate inverted

Can’t open display

root@zynthian://zynthian# xrandr --listmonitors

Can’t open display

root@zynthian://zynthian# DISPLAY=:0

root@zynthian://zynthian# xrandr --listmonitors

Can’t open display

Some addition:

I have also made an SD card with the latest BETA of Vangelis in the same custom zynthian hardware, but with a RPI4. Whenever an update appeared, I ran it, so it is up to date.

When I swap the RPI4 for a RPI5 in the same custom zynthian hardware, it runs fine. No upside down images and no upside down mixer.

I made a mistake with the commands.

These are now the results:

root@zynthian://zynthian# export DISPLAY=:0                                     
root@zynthian://zynthian# xrandr --listmonitors                                 
Monitors: 1                                                                     
 0: +*DSI-1 800/212x480/127+0+0  DSI-1                                          
root@zynthian://zynthian# xrandr --output DSI-1 --rotate inverted               
root@zynthian://zynthian# xrandr --output DSI-1 --rotate normal     

After rotate inverted, nothing changes
After rotate normal, the siutation is normal and can be used.

Another update:

After the command xrandr --output DSI-1 --rotate normal the screen was normal again. When I choose the inverted screen in webconf, the screen is upside down again, but when I choose the non inverted screen thereafter nothing happens and the screen stays upside down, until after running the command in the terminal again.

Yet another update.

This morning, as I started the Zynthian, I saw a ā€˜normal’ boot direction on the screen, but the rest was upside down. After the xrandr operations in the terminal, everything is fine again. This also needs to be done after a reboot.