phw*_*phw 4 linux laptop multiple-monitors xorg
我的笔记本电脑的显示器不再工作,因此我连接了外部显示器。
在启动时,GDM 仍能识别笔记本电脑的主屏幕并在其上显示其登录窗口。然后我看不到。
我可以通过xrandr --output LVDS1 --off
登录后运行来禁用笔记本电脑的屏幕。我尝试将此命令放入~\.xinitrc
并放入 a ./40-xrandr.sh
in /etc/X11/xinit/xinitrc.d
。
两者都没有效果。我曾希望它至少会在登录时关闭笔记本电脑的屏幕。
如何在GDM 启动之前禁用笔记本电脑的屏幕?
小智 7
这使得 linux 完全忽略 LVDS 输出。这样它就不会被所有登录管理器使用,也不会出现在显示配置对话框中。
创建一个文件/usr/share/X11/xorg.conf.d/50-disable-lvds.conf
并在那里写入:
Section "Monitor"
Identifier "lvds monitor"
Option "ignore" "true"
EndSection
Section "Device"
Identifier "onboard"
Option "Monitor-LVDS1" "lvds monitor"
EndSection
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
23030 次 |
最近记录: |