[RPi5] Rotate HDMI Output

  • Hi all,

    Wanted to check if anyone have been able to figure out how to rotate HDMI output on the Raspberry Pi 5?

    Been trying edits of both config.txt and cmdline.txt without much results...

    Using LibreELEC 12.2

    Edited once, last by Soundie (August 27, 2025 at 4:31 PM).

  • Indeed; i was looking for a 90' rotation.

    I've set up some screens in the reception at my office with slideshows that use a 90' rotation.

    Until recently i've used a small pc to push the slideshow using the Legacy Libreelec installation that supports xrandr, but have replaced the 0' ones with raspberrys

  • You might want to try installing kodi21 from RPiOS which supports wayland, and much like Xorg on the PC, allows the compositor (outside of Kodi's knowledge) to rotate the screen.

    Note that this will use EGL for composition, rather than DRM which is a less efficient path. It should be fine for 1080p60, but will struggle with 4K video.

    But you can give it a try quite easily, to see if it meets your requirements. Use the preferenced/screen configuration tool (from the desktop) to set the display rotation, then launch kodi (the desktop version, not the fullscreen version). You can switch the desktop kodi to use fullscreen when running.

  • RPiOS and an image viewer for slideshows? Or a slideshow screensaver? Don't know if for that you should use Kodi...

    Pretty simple stuff actually.
    I made a script that autostarts a slideshow when kodi starts. It can use pictures/videos from a local folder or an SMB/FTP share too.

    Very stable solution - one of them has been running for 3 years continously in october :)

  • You might want to try installing kodi21 from RPiOS which supports wayland, and much like Xorg on the PC, allows the compositor (outside of Kodi's knowledge) to rotate the screen.

    Note that this will use EGL for composition, rather than DRM which is a less efficient path. It should be fine for 1080p60, but will struggle with 4K video.

    But you can give it a try quite easily, to see if it meets your requirements. Use the preferenced/screen configuration tool (from the desktop) to set the display rotation, then launch kodi (the desktop version, not the fullscreen version). You can switch the desktop kodi to use fullscreen when running.

    To sum up; Popcornmix' solution with running kodi from rotated RPiOS (without LE then) is a verified working solution for this problem. :thumbup: