sddm 仅显示黑屏

sddm 仅显示黑屏

我是 Arch Linux 的新手,想将 Plasma 5 桌面与 sddm 一起使用。
我可以startx毫无问题地启动等离子桌面,但是当我尝试使用 sddm 时,它只在启动时显示黑屏。

我尝试重新启动 sddm 服务,systemctl restart sddm但它仍然是黑色的。

当我运行时,sddm-greeter --test-mode --theme /usr/share/sddm/themes/breeze它显示欢迎屏幕,但我无法让它在启动时运行。

我的/etc/sddm.config看起来像这样:

[Autologin]
Relogin=false
Session=
User=

[General]
HaltCommand=
RebootCommand=

[Theme]
Current=breeze
CursorTheme=breeze_cursors

[Users]
MaximumUid=65000
MinimumUid=1000

journalctl -b --unit=sddm.service给我以下输出

Jan 13 11:04:15 dev systemd[1]: Started Simple Desktop Display Manager.
Jan 13 11:04:15 dev sddm[855]: Initializing...
Jan 13 11:04:15 dev sddm[855]: Logind interface found
Jan 13 11:04:15 dev sddm[855]: Starting...
Jan 13 11:04:15 dev sddm[855]: Adding new display on vt 1 ...
Jan 13 11:04:15 dev sddm[855]: Loading theme configuration from ""
Jan 13 11:04:15 dev sddm[855]: Display server starting...
Jan 13 11:04:15 dev sddm[855]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{af3bc692-6770-441f-9c28-
Jan 13 11:04:18 dev sddm[855]: Setting default cursor
Jan 13 11:04:18 dev sddm[855]: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
Jan 13 11:04:18 dev sddm[855]: Display server started.
Jan 13 11:04:18 dev sddm[855]: Socket server starting...
Jan 13 11:04:18 dev sddm[855]: Socket server started.
Jan 13 11:04:18 dev sddm[855]: Loading theme configuration from ""
Jan 13 11:04:18 dev sddm[855]: Greeter starting...
Jan 13 11:04:18 dev sddm[855]: Adding cookie to "/var/run/sddm/{af3bc692-6770-441f-9c28-2eb05f1d0ede}"
Jan 13 11:04:18 dev sddm-helper[869]: [PAM] Starting...
Jan 13 11:04:18 dev sddm-helper[869]: [PAM] Authenticating...
Jan 13 11:04:18 dev sddm-helper[869]: [PAM] returning.
Jan 13 11:04:18 dev sddm-helper[869]: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
Jan 13 11:04:18 dev sddm[855]: Greeter session started successfully
Jan 13 11:04:18 dev sddm[855]: Message received from greeter: Connect

答案1

我不知道为什么 Elmo Todurov 写了评论而不是答案,但这确实是我唯一可行的解​​决方案,因此也是一个答案。

编辑文件:/usr/share/sddm/scripts/Xsetup

添加以下行:

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

相关内容