按照以下指示Linux 上的无头家用 Steam 流服务器 - 如何,我试图“欺骗”Xorg,使其认为显示器在启动时已插入。
我通过以下方式获取标准 1080p 显示器的 EDID 配置:
$ grep "EDID sections" -A 17 /var/log/Xorg.0.log | cut -c31- | tail -n 16 | sudo tee /etc/X11/pseudomonitor.edid.conf
$ cat /etc/X11/pseudomonitor.edid.conf
00ffffffffffff00410c36c0f33d0000
2014010380341d782eeed5a555489b26
125054bf4b00d1c0b300818001010101
010101010101023a801871382d40582c
450009252100001e000000ff00415535
31303332303135383539000000fc0050
68696c69707320323434450a000000fd
00384c1e5311000a2020202020200177
020324f151020304101f131112222120
05060714151623090707830100006503
0c001000023a801871382d40582c4500
09252100001e8c0ad08a20e02d10103e
9600092521000018011d007251d01e20
6e28550009252100001e8c0ad0902040
31200c40550009252100001800000000
000000000000000000000000000000a3
我将此添加到xorg.conf
:
Section "Device"
Identifier "AMDGPU"
Driver "amdgpu"
Option "ConnectedMonitor" "HDMI-1-1"
Option "CustomEDID" "HDMI-1-1:/etc/X11/pseudomonitor.edid.conf"
EndSection
但显然此选项不适用于 amdgpu 驱动程序:
$ cat /var/log/Xorg.0.log | grep EDID
[ 9991.377] (II) AMDGPU(0): EDID for output DisplayPort-3
[ 9991.377] (II) AMDGPU(0): EDID for output DisplayPort-4
[ 9991.377] (II) AMDGPU(0): EDID for output DisplayPort-5
[ 9991.377] (II) AMDGPU(0): EDID for output HDMI-A-3
[ 9991.377] (II) AMDGPU(0): EDID for output DVI-D-0
[ 9991.380] (WW) AMDGPU(0): Option "CustomEDID" is not used
知道 AMDGPU 驱动程序是否可以实现类似的功能吗?