我的电脑连接到电视,我想在连接时禁用笔记本电脑显示器。
要查看所有连接的监视器,我运行此命令tail /sys/class/drm/*/status
并得到:
==> /sys/class/drm/card0-DP-1/status <==
disconnected
==> /sys/class/drm/card0-LVDS-1/status <==
connected
==> /sys/class/drm/card0-VGA-1/status <==
connected
现在当我跑步时xrandr --output LVDS-1 --off
所有屏幕都变黑,我什至找不到打开它们的命令,所以我只是重新启动。
我只想将笔记本电脑显示器清空。
之后我也会将其添加到引导中。但这应该不是问题。
有什么建议么?
ps - 当它们打开时,我会得到一个重复的设置。
我有一个xorg.conf
文件
'Section "Device"
Identifier "Device0"
Driver "modesetting"
VendorName "INTEL Corporation"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "VGA-1"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "[email protected]" "1920x1080@24p" "1920x1080@60p"
EndSubSection
EndSection
Section "Monitor"
Identifier "VGA-1"
HorizSync 14.0 - 70.0
VertRefresh 24.0 - 62.0
# Option "DPMS" "true"
Modeline "1920x1080@24p" 74.230 1920 2560 2604 2752 1080 1084 1089 1125 +hsync +vsync
Modeline "1920x1080@50p" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
Modeline "[email protected]" 148.352 1920 1960 2016 2200 1080 1082 1088 1125 +hsync +vsync
Modeline "1920x1080@60p" 148.500 1920 2008 2056 2200 1080 1084 1089 1125 +hsync +vsync
EndSection
Section "Extensions"
# fixes tearing
Option "Composite" "Disable"
EndSection