feat: RDtop RustDesk headless fallback for Intel iGPU
- Adds VIRTUAL1 as permanent primary output via modesetting driver - HDMI1 set as clone (--same-as) of VIRTUAL1 - hdmi-fallback.sh script monitors drm connector status - systemd user unit auto-creates VIRTUAL1 and switches on hotplug loss - Xorg fallback guarantees 1920x1080 framebuffer without HDMI - Includes xserver-xorg-video-dummy as backup driver
This commit is contained in:
13
config/systemd/hdmi-fallback.service
Normal file
13
config/systemd/hdmi-fallback.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=HDMI to VIRTUAL1 Fallback Monitor
|
||||
After=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=%h/.local/bin/hdmi-fallback.sh
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
Environment="DISPLAY=:0"
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
22
config/x11/90-fallback.conf
Normal file
22
config/x11/90-fallback.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
# Fallback Xorg config: guarantee a framebuffer even without HDMI
|
||||
Section "Device"
|
||||
Identifier "AutoDevice"
|
||||
Driver "modesetting"
|
||||
EndSection
|
||||
|
||||
Section "Monitor"
|
||||
Identifier "AutoMonitor"
|
||||
Option "DPMS" "false"
|
||||
EndSection
|
||||
|
||||
Section "Screen"
|
||||
Identifier "AutoScreen"
|
||||
Device "AutoDevice"
|
||||
Monitor "AutoMonitor"
|
||||
DefaultDepth 24
|
||||
SubSection "Display"
|
||||
Depth 24
|
||||
Virtual 1920 1080
|
||||
Modes "1920x1080"
|
||||
EndSubSection
|
||||
EndSection
|
||||
Reference in New Issue
Block a user