Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SDDM GUI not starting after switch from Nouveau to NVIDIA
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Checko55
n00b
n00b


Joined: 02 Feb 2014
Posts: 28

PostPosted: Thu Aug 03, 2023 12:03 pm    Post subject: SDDM GUI not starting after switch from Nouveau to NVIDIA Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Thu Aug 03, 2023 12:25 pm    Post subject: Reply with quote

Do you also have intel graphics driver on your system?
Plz see
https://wiki.gentoo.org/wiki/NVIDIA/Optimus#Simple_Desktop_Display_Manager_.28SDDM.29
_________________
:)
Back to top
View user's profile Send private message
Checko55
n00b
n00b


Joined: 02 Feb 2014
Posts: 28

PostPosted: Thu Aug 03, 2023 3:28 pm    Post subject: Reply with quote

No, only the NVIDIA Card.
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 781
Location: over here

PostPosted: Thu Aug 03, 2023 4:34 pm    Post subject: Reply with quote

Have you tried what's in the sddm page in the wiki?

Do you have an xorg.conf?
Back to top
View user's profile Send private message
Checko55
n00b
n00b


Joined: 02 Feb 2014
Posts: 28

PostPosted: Thu Aug 03, 2023 5:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
nvaert1986
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2019
Posts: 120

PostPosted: Fri Aug 04, 2023 9:27 am    Post subject: Reply with quote

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
View user's profile Send private message
Checko55
n00b
n00b


Joined: 02 Feb 2014
Posts: 28

PostPosted: Fri Aug 04, 2023 4:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 304

PostPosted: Fri Aug 04, 2023 5:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2581
Location: Here and Away Again

PostPosted: Fri Aug 04, 2023 8:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Checko55
n00b
n00b


Joined: 02 Feb 2014
Posts: 28

PostPosted: Sat Aug 05, 2023 8:42 am    Post subject: Reply with quote

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
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 304

PostPosted: Sat Aug 05, 2023 9:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Checko55
n00b
n00b


Joined: 02 Feb 2014
Posts: 28

PostPosted: Sun Aug 06, 2023 5:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum