Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1400  / 2 Years ago, sun, may 22, 2022, 9:03:08

The display on my Ubuntu Core, latest version (18), on a Raspberry Pi 3 is upside down. The display is connected via the ribbon cable on the Pi, not via HDMI.


I first tried via the system snap config (restarted the system each time).


snap set pi-config.display-rotate=2
snap set pi-config.lcd-rotate=2 (does not work, unsupported system option)

I tried values 1, 2, and 3. Setting pi-config.display-rotate=1 and rebooting shows a white display but the Pi doesn't boot, a power reset was needed to get it booted.


I also tried via the config.txt (writable partition: system-data/boot/config.txt). Took the SD card out, edited the file on another computer and restarted the Pi each time (tried values 0, 1, 2, and 3).


display_rotate=2
lcd_rotate=2

The screen doesn't budge. It never changes the rotation. Editing the boot.txt on Retropi (same hardware) did work correctly. Is there a special way to rotate the screen on Ubuntu Core?


Just so I understand this correctly: the "Core" logo and text (where it shows the login via SSH instructions) is upside down. I have no Wayland or X11 running. Maybe I misunderstand this and the screen is only supposed to turn in a graphical environment?


More From » screen

 Answers
4

I finally got it to work the correct way, not the workaround described in my other answer.



  1. There are 2 display connectors on the Raspberry Pi board: the HDMI and display ports. The HDMI is the one with the HDMI plug (easy enough), the display one is where you connect the ribbon cable. I am using the ribbon cable. Changing the HDMI settings doesn't change a thing, I needed the lcd_rotate setting which is the one rotating the display, not the HDMI screen! :facepalm:


lcd_rotate=2 # rotates the screen connected to the display port
display_hdmi_rotate=2 # rotates the screen connected to the HDMI port
display_lcd_rotate=2 # no idea what screen this applies to


  1. The second mistake was to edit the wrong config.txt file. I was editing a config.txt in the writable/system-data/boot or writable/system-data/boot/uboot directories but that's NOT where Ubuntu Core looks. The config.txt file is located in the other partition on the SD card, in the root of the system-boot partition!


[#2372] Tuesday, May 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ibuteking

Total Points: 35
Total Questions: 128
Total Answers: 138

Location: Indonesia
Member since Thu, Oct 1, 2020
4 Years ago
ibuteking questions
Sat, Sep 10, 22, 08:44, 2 Years ago
Fri, May 12, 23, 10:10, 1 Year ago
Tue, May 23, 23, 13:38, 1 Year ago
;