为什么我的登录(用户名)页面上没有齿轮图标或齿轮登录按钮?

为什么我的登录(用户名)页面上没有齿轮图标或齿轮登录按钮?

我有 Ubuntu 22.04.3 LTS、Gnome 42.9、窗口系统 X11。我尝试使用 Wayland,但我无法切换到它,因为我的登录(用户名)页面上没有齿轮图标或齿轮登录按钮。

在此处输入图片描述 在此处输入图片描述

我的设置:

/etc/gdm3/custom.conf

    # GDM configuration storage
    #
    # See /usr/share/gdm/gdm.schemas for a list of available options.

[daemon]
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=true

# Enabling automatic login
#  AutomaticLoginEnable = true
#  AutomaticLogin = user1

# Enabling timed login
#  TimedLoginEnable = true
#  TimedLogin = user1
#  TimedLoginDelay = 10

[security]

[xdmcp]

[chooser]

[debug]
# Uncomment the line below to turn on debugging
# More verbose logs
# Additionally lets the X server dump core if it crashes
#Enable=true
cat /etc/X11/default-display-manager
/usr/sbin/gdm3


 ps -e | grep tty
 2286 tty2     00:00:00 gdm-x-session
 2288 tty2     00:03:01 Xorg
 2340 tty2     00:00:00 gnome-session-b


ps -e | grep X
2288 tty2     00:03:03 Xorg

sudo gedit /etc/gdm3/custom.conf

# Disable wayland when nvidia modeset is disabled or when drivers are a lower
# version than 470,
# For versions above 470 but lower than 510 prefer Xorg,
# Above 510, prefer Wayland.
KERNEL!="nvidia_drm", GOTO="gdm_nvidia_drm_end"
SUBSYSTEM!="module", GOTO="gdm_nvidia_drm_end"
ACTION!="add", GOTO="gdm_nvidia_drm_end"
# disable wayland if nvidia-drm modeset is not enabled
ATTR{parameters/modeset}!="Y", GOTO="gdm_disable_wayland"
# disable wayland for nvidia drivers versions lower than 470
ATTR{version}=="4[0-6][0-9].*|[0-3][0-9][0-9].*|[0-9][0-9].*|[0-9].*", GOTO="gdm_disable_wayland"
# For nvidia drivers versions Above 510, prefer Xorg by default
ATTR{version}=="[5-9][1-9][0-9].*", GOTO="gdm_prefer_xorg"
# For nvidia drivers versions 470-495, prefer Xorg by default
GOTO="gdm_prefer_xorg"
LABEL="gdm_nvidia_drm_end"

GOTO="gdm_end"

LABEL="gdm_prefer_xorg"
#RUN+="/usr/libexec/gdm-runtime-config set daemon PreferredDisplayServer xorg"
GOTO="gdm_end"

LABEL="gdm_disable_wayland"
#RUN+="/usr/libexec/gdm-runtime-config set daemon WaylandEnable false"
GOTO="gdm_end"

LABEL="gdm_end"

我的 GPU :NVIDIA Corporation GK104 [GeForce GTX 770] 使用

nvidia-smi
Tue Aug 22 14:06:23 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.199.02   Driver Version: 470.199.02   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 N/A |                  N/A |
| 23%   46C    P0    N/A /  N/A |    189MiB /  1996MiB |     N/A      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
echo $XDG_SESSION_TYPE
x11

这是否意味着我的GPU 与 Wayland 不兼容? 我应该怎么办 ?

答案1

这确实意味着您当前的 GPU 与 Wayland 不兼容。NVidia 对 Wayland 的支持还很新,并且还不完整。

我应该怎么办 ?

继续使用 Xorg。

答案2

事实并非如此,答案是@钒完全是胡扯。楼主只是漏掉了gnome-session-flashback软件包。图标的存在/不存在怎么会与硬件组件相关?在主登录屏幕上甚至更多!拜托,我们不是在 iOS 上。

相关内容