From 1658a5308164e752f7e87c8bcd3368a78f924037 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 1 Dec 2024 19:38:10 -0500 Subject: [PATCH] Hopefully use connected screen to display video if available, fall back to dummy driver if not found. --- .../etc/X11/xorg.conf.d/10-headless.conf | 40 ++++++++++++------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/pi4/files/etc/X11/xorg.conf.d/10-headless.conf b/pi4/files/etc/X11/xorg.conf.d/10-headless.conf index e79d435..fe2434e 100644 --- a/pi4/files/etc/X11/xorg.conf.d/10-headless.conf +++ b/pi4/files/etc/X11/xorg.conf.d/10-headless.conf @@ -1,20 +1,32 @@ +Section "ServerLayout" + Identifier "Layout0" + Screen 0 "Screen0" +EndSection + Section "Monitor" - Identifier "dummy_monitor" - HorizSync 28.0-80.0 - VertRefresh 48.0-75.0 - Modeline "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 + Identifier "Monitor0" + Option "DPMS" "true" + HorizSync 28.0-80.0 + VertRefresh 48.0-75.0 + Modeline "1920x1080" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 EndSection - + Section "Device" - Identifier "dummy_card" - VideoRam 256000 - Driver "dummy" + Identifier "Card0" + # Try standard driver + Driver "modesetting" + # Fallback to dummy + Option "FallbackDriver" "dummy" + VideoRam 256000 EndSection - + Section "Screen" - Identifier "dummy_screen" - Device "dummy_card" - Monitor "dummy_monitor" - SubSection "Display" - EndSubSection + Identifier "Screen0" + Device "Card0" + Monitor "Monitor0" + DefaultDepth 24 + SubSection "Display" + Depth 24 + Modes "1920x1080" + EndSubSection EndSection