Unable to rotate Chromium Screen in Autostart

Creating a bug report/issue

[yes] I have searched the existing open and closed issues

Required Information

  • DietPi version
    G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=12
    G_DIETPI_VERSION_RC=1
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’

  • Distro version
    bookworm 0

  • Kernel version
    Linux DietPi 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux

  • Architecture
    arm64

  • SBC model
    RPi 4 Model B (aarch64)

  • Power supply used: 5V custom supply (checked 5V and high current)

Additional Information (if applicable)

Steps to reproduce

  1. Set screen rotation to 90 in display settings (dietpi-config)
  2. set chromium to autolaunch

Expected behaviour

  • Chromium rotate 90 degrees

Actual behaviour

  • Console rotates 90d but Chromium doesn’t

Extra details

Going deeper I have found in one of those links the command xrandr -d :0 -o left -s 1280x800 so will look at how I can automate that command as it seems to work but doesn’t stay resident after boot

So I have been following this issue on GitHub Configure screen resolution/orientation in Kiosk mode. · Issue #7263 · MichaIng/DietPi · GitHub which is the exact problem I have. My work around has been to have the xrandr command run from a cron job and delay it for 60 seconds until everything is loaded

Hello smartoad

Try this

sudo nano /etc/X11/xorg.conf.d/99-rotate_screen.conf

Put this line in the file , save and reboot

Section "Monitor"
        Identifier "Monitor0"
        Option "Rotate" "left"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device "Card0"
        Monitor "Monitor0"
EndSection

Work with 7"9 waveshare touchscreen

Tell us if it works for you

Hi Totof,

Thanks for the tip, tried but unfortunately didn’t work I’m afraid :frowning: Just to check, the file used with the nano command was a fresh file and had nothign else in it?

Hi
Yes it’s a empty file, you must fill it with the line, save and reboot

Perhaps modifying some part like card1 instead card0