View previous topic :: View next topic |
Author |
Message |
Checko55 n00b
Joined: 02 Feb 2014 Posts: 28
|
Posted: Thu Aug 03, 2023 12:03 pm Post subject: SDDM GUI not starting after switch from Nouveau to NVIDIA |
|
|
Hi guys,
I just switched from Nouveau drivers to NVIDIA drivers.
Since that I can't start SDDM and can only start KDE as a user from the console with "startx".
sddm.log is pretty empty regarding any failures.
I am not sure if I have to set any permissions or similar after the switch to NVIDIA drivers.
thankful for any hint
regards
Checko |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
|
Back to top |
|
|
Checko55 n00b
Joined: 02 Feb 2014 Posts: 28
|
Posted: Thu Aug 03, 2023 3:28 pm Post subject: |
|
|
No, only the NVIDIA Card. |
|
Back to top |
|
|
mrbassie l33t
Joined: 31 May 2013 Posts: 781 Location: over here
|
Posted: Thu Aug 03, 2023 4:34 pm Post subject: |
|
|
Have you tried what's in the sddm page in the wiki?
Do you have an xorg.conf? |
|
Back to top |
|
|
Checko55 n00b
Joined: 02 Feb 2014 Posts: 28
|
Posted: Thu Aug 03, 2023 5:50 pm Post subject: |
|
|
I have followed all the steps from sddm and even switched to lightdm with same behaviour.
I have a Xorg.conf file created with nvidia-xconfig
still only possible to start via startx as a user
regards |
|
Back to top |
|
|
nvaert1986 Tux's lil' helper
Joined: 05 May 2019 Posts: 120
|
Posted: Fri Aug 04, 2023 9:27 am Post subject: |
|
|
Normally you don't need an X.org configuration file and it should work out of the box. Try renaming that file and see what it does.
What you can try as well (as the DRM module needs to be enabled) is adding: nvidia_drm.modeset=1 in /etc/default/grub and run grub-mkconfig -o /boot/grub/grub.cfg and reboot |
|
Back to top |
|
|
Checko55 n00b
Joined: 02 Feb 2014 Posts: 28
|
Posted: Fri Aug 04, 2023 4:55 pm Post subject: |
|
|
hello again!
I deleted the xorg.conf file and couldn't start with startx anymore. no gui start as well
After running nvidia-xconfig again the xorg.conf was back again and I could start via startx.
no messages from lightdm after reboot in the logs
drm is loaded at boot time, but I added it at module.autoload since I have no grub running |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 304
|
Posted: Fri Aug 04, 2023 5:15 pm Post subject: |
|
|
Can you confirm that the nouveau (nv) driver is blacklisted/disabled and not loading? It might help if we could see your kernel config and the output of lsmod. |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2581 Location: Here and Away Again
|
Posted: Fri Aug 04, 2023 8:04 pm Post subject: |
|
|
I'm not using nvidia-drivers any longer on my main machine, but I believe it might still need a minimal 'xorg.conf' such as the following:
Code: | Section "Device"
Identifier "nvidia"
Driver "nvidia"
EndSection |
See also: https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers#The_X_server
But yes, I'd also suggest trying without the config that is generated with 'nvidia-xconfig', since it adds a lot more than needed. _________________ Kindest of regardses. |
|
Back to top |
|
|
Checko55 n00b
Joined: 02 Feb 2014 Posts: 28
|
Posted: Sat Aug 05, 2023 8:42 am Post subject: |
|
|
rab0171610 wrote: | Can you confirm that the nouveau (nv) driver is blacklisted/disabled and not loading? It might help if we could see your kernel config and the output of lsmod. |
nouveau is blacklisted and not loaded
here is lsmod and kernel-config
Kernel
https://pastebin.com/x4fMyGDx
lsmod
https://pastebin.com/H7QRvSac |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 304
|
Posted: Sat Aug 05, 2023 9:54 am Post subject: |
|
|
On my system:
Code: | lsmod | grep nvidia
nvidia_uvm 2240512 4
nvidia_drm 65536 102
nvidia_modeset 1265664 17 nvidia_drm
nvidia 55803904 1603 nvidia_uvm,nvidia_modeset
video 65536 1 nvidia_modeset
backlight 20480 2 video,nvidia_modeset
drm_kms_helper 204800 1 nvidia_drm
|
I run SDDM under X but Plasma runs under Wayland. It has been a long time since I set things up, but if I remember correctly, SDDM does not work for me without CONFIG_DRM=y
in the kernel config. Maybe review this section:
https://wiki.gentoo.org/wiki/SDDM#SDDM_service_starts_but_yields_a_black_screen |
|
Back to top |
|
|
Checko55 n00b
Joined: 02 Feb 2014 Posts: 28
|
Posted: Sun Aug 06, 2023 5:13 am Post subject: |
|
|
Hi,
that was it.
The KMS Helper in the kernel was missing.
I changed that and recompiled.
Everything back to normal now.
Thanks for your help!
regards
Checko |
|
Back to top |
|
|
|