719*_*016 10 gnome display external-monitor
我使用 gnome-display-properties 来配置我在家和办公室连接到笔记本电脑的外部屏幕。Gnome-display-properties 巧妙地记住哪个屏幕是哪个,并在插入屏幕时自动设置显示。
例如,在 gnome-display-properties 中,显示器显示为“Monitor: Samsung Electric Company 24''”,我想知道这些信息是从哪里提取的?
这些信息保存在哪里?
Ric*_*sen 12
添加到 htorque 的答案并将 JohanSJA 的评论转换为答案:
这些信息保存在哪里?
在~/.config/monitors.xml.
该信息来自显示器的EDID。要检查,您可以安装该包read-edid并运行
sudo get-edid | parse-edid
Run Code Online (Sandbox Code Playgroud)
这应该输出一些信息,包括我们之前在 xorg.conf 文件中的监视器部分,例如:
Section "Monitor"
# Block type: 2:0 3:ff
# Block type: 2:0 3:fc
Identifier "DELL U2311H"
VendorName "DEL"
ModelName "DELL U2311H"
# Block type: 2:0 3:ff
# Block type: 2:0 3:fc
# Block type: 2:0 3:fd
HorizSync 30-83
VertRefresh 56-76
# Max dot clock (video bandwidth) 170 MHz
# DPMS capabilities: Active off:yes Suspend:yes Standby:yes
Mode "1920x1080" # vfreq 60.000Hz, hfreq 67.500kHz
DotClock 148.500000
HTimings 1920 2008 2052 2200
VTimings 1080 1084 1089 1125
Flags "+HSync" "+VSync"
EndMode
# Block type: 2:0 3:ff
# Block type: 2:0 3:fc
# Block type: 2:0 3:fd
EndSection
Run Code Online (Sandbox Code Playgroud)
请注意三个字母的 VendorName。