问题:
使用gdm登录管理器,且没有wayland和xorg选项,登录后显示是x11.
解决方法:
与这个问题相关的应该有两个配置文件
- /etc/gdm/custom.conf
- /usr/lib/udev/rules.d/61-gdm.rules
这两个配置文件是关于gdm登录选项的。
第一个文件大概长这样:
# GDM configuration storage
[daemon]
# Uncomment the line below to force the login screen to use Xorg
# WaylandEnable=false
[security]
[xdmcp]
[chooser]
[debug]
# Uncomment the line below to turn on debugging
#Enable=true
其中WaylandEnable=false表示关闭wayland,如果这句话前面有”#“,即被注释掉,就表示启用,请确保它是被注释的状态。
另一个文件长这样:
# disable Wayland on Hi1710 chipsets
ATTR{
vendor}=="0x19e5", ATTR{
device}=="0x1711", GOTO="gdm_disable_wayland"
# disable Wayland if modesetting is disabled
KERNEL!="card[0-9]*", GOTO="gdm_nomodeset_end"
SUBSYSTEM!="drm", GOTO="gdm_nomodeset_end"
# but keep it enabled for simple framebuffer drivers
DRIVERS=="simple-framebuffer", GOTO="gdm_nomodeset_end"
IMPORT{
cmdline}="nomodeset", GOTO="gdm_disable_wayland"
LABEL="gdm_nomodeset_end"
# Disable wayland when nvidia modeset is disabled or when drivers are a lower
# version than 470, in any case always prefer Xorg
KERNEL!="nvidia_drm", GOTO="gdm_nvidia_drm_end"
SUBSYSTEM!="module", GOTO="gdm_nvidia_drm_end"
ACTION!="add", GOTO="gdm_nvidia_drm_end"