Hello everyone,
I'm experiencing difficulties rotating my display on my Raspberry Pi 5 setup, and I'm currently using the vc4-kms-v3d driver. Below is a summary of my situation and the steps I've already taken.
Setup Details:
Hardware: Original touchscreen connected via the original cable to the disp1 slot on the RP5.
OS: Raspberry Pi OS without a desktop environment.
Graphics Driver: vc4-kms-v3d.
The Problem:
I managed to rotate the console display by adding the fbcon=rotate:1 parameter to /boot/firmware/cmdline.txt, which rotates the text console successfully.However, when I launch an X session using xinit to run Chromium in kiosk mode, the display remains unrotated. Running xrandr --query returns the error: "Can't open display" This error occurs even when trying the command as a regular user or as the kiosk user.
Steps Already Tried:
Console Rotation:
Applied fbcon=rotate:1 in /boot/firmware/cmdline.txt for the console, which worked as expected.
X Session Rotation:
Attempted to run xrandr --query within the X session but received the "Can't open display" error.
Confirmed that I’m not running a full desktop environment and that the X server is started via xinit with Chromium running in kiosk mode.
Removed any legacy rotation parameters like display_rotate or lcd_rotate from /boot/firmware/config.txt.
Driver Verification:
Confirmed that I'm using the vc4-kms-v3d driver.
Questions:
How can I properly rotate the X session display (particularly for kiosk mode with Chromium) when using the vc4-kms-v3d driver on Raspberry Pi OS without a desktop environment?
Are there any recommended workarounds or configurations specific to the vc4-kms-v3d driver that could enable rotation of the X session display?
Any guidance or suggestions would be greatly appreciated.
Thanks in advance for your support!
I'm experiencing difficulties rotating my display on my Raspberry Pi 5 setup, and I'm currently using the vc4-kms-v3d driver. Below is a summary of my situation and the steps I've already taken.
Setup Details:
Hardware: Original touchscreen connected via the original cable to the disp1 slot on the RP5.
OS: Raspberry Pi OS without a desktop environment.
Graphics Driver: vc4-kms-v3d.
The Problem:
I managed to rotate the console display by adding the fbcon=rotate:1 parameter to /boot/firmware/cmdline.txt, which rotates the text console successfully.However, when I launch an X session using xinit to run Chromium in kiosk mode, the display remains unrotated. Running xrandr --query returns the error: "Can't open display" This error occurs even when trying the command as a regular user or as the kiosk user.
Steps Already Tried:
Console Rotation:
Applied fbcon=rotate:1 in /boot/firmware/cmdline.txt for the console, which worked as expected.
X Session Rotation:
Attempted to run xrandr --query within the X session but received the "Can't open display" error.
Confirmed that I’m not running a full desktop environment and that the X server is started via xinit with Chromium running in kiosk mode.
Removed any legacy rotation parameters like display_rotate or lcd_rotate from /boot/firmware/config.txt.
Driver Verification:
Confirmed that I'm using the vc4-kms-v3d driver.
Questions:
How can I properly rotate the X session display (particularly for kiosk mode with Chromium) when using the vc4-kms-v3d driver on Raspberry Pi OS without a desktop environment?
Are there any recommended workarounds or configurations specific to the vc4-kms-v3d driver that could enable rotation of the X session display?
Any guidance or suggestions would be greatly appreciated.
Thanks in advance for your support!
Statistics: Posted by Gavro — Tue Apr 01, 2025 1:28 pm — Replies 0 — Views 14