问题描述
系统有Display 1 和 Display2 两块显示器。Display 1 为主要显示屏,Display 2 为副屏。
安装Ubuntu 22.054 LTS 后,默认登录界面于Display 2。由于副屏幕为便携外接显示器,每次启动或重启都需手动按下屏幕的电源开关方可看到登录界面。
在 Settings-> Displays 里设置 Primary Display后,重启后登录界面仍然于副屏显示。
解决方法
Ubuntu多显示器下强制设置登录界面于默认显示器1
-
在
Settings => Displays
中调整显示器顺序,登录界面将于主显示器上显示 -
将 monitors.xml file 拷贝到以下目录.
sudo cp ~/.config/monitors.xml ~gdm/.config/monitors.xml
-
更改拷贝后文件的权限.
sudo chown gdm:gdm ~gdm/.config/monitors.xml
-
在
/etc/gdm3/custom.conf
文件中反注释以下文本
WaylandEnable=false
以上解决办法来自
ajMatus