current: X session won't start with nvidia driver and kernel 5.4.7
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
current: X session won't start with nvidia driver and kernel 5.4.7
Hi there,
I installed the nvidia kernel driver on my box with Slackware current (kernel 5.4.7) manually, i.e. using the .run file. I installed the legacy 390.132 version from https://www.nvidia.com/Download/driv...x/153832/en-us because I have a GeForce 750M, which is considered legacy. During the installation I didn't get any errors and I allowed nvidia-xconfig to create an xorg.conf file.
When i run startx I get this error:
[ 149.549] (EE) No devices detected.
[ 149.549] (EE)
Fatal server error:
[ 149.549] (EE) no screens found(
I have attached boch /var/log/Xorg.0.log and /etc/X11/xorg.conf
Perhaps, the 340.108 driver that was released on 23 December 2019? It also supports the 700M series.
Thanks. I installed 340.108 and I got the same error. The only suspicious thing I see in /var/log/nvidia-installer.log is
Code:
-> Error.
-> Unable to build the Unified Memory kernel module.
-> The Unified Memory kernel module failed to build. Driver installation will pr
oceed without this module.
I attach the new /var/log/Xorg.0.log and /etc/X11/xorg.conf, and I pasted /var/log/nvidia-installer.log for NVIDIA-Linux-x86_64-340.108.run in https://justpaste.it/2p7gt
I'm still on kernel 4.19.y so I haven't tested this running kernel 5.4.y.
I'm using the nvidia-legacy340-kernel.SlackBuild modified like this by ponce then the above patch shouldn't be needed:
Quote:
55 (cd kernel || exit 1
56 make SYSSRC=$KERNELPATH module || exit 1
57 cd uvm
58 sed -i "s|-O2$|-O2 -Wno-error=incompatible-pointer-types|" Makefile
59 make SYSSRC=$KERNELPATH module || exit 1
60 )
Please note that nVidia 340.xxx driver doesn't work with libglvnd (requires 390.xxx or later).
Mats
Last edited by mats_b_tegner; 01-14-2020 at 04:14 PM.
thank you for your reply and sorry for the delayed reply.
I have posted this problem on the nvidia form to see if someone can help me with that.
Do I have to remove libglvnd or the 340.xxx driver will simply not use it?
Thanks.
Yes, I had to remove/blacklist libglvnd and blacklist/recompile mesa without libglvnd support since the 340.xxx driver series doesn't support libglvnd. Otherwise, the X-server will crash on startup.
Last edited by mats_b_tegner; 01-19-2020 at 05:31 PM.
Based on this, I reinstalled the nvidia 390.132 driver but this time I didn't run nvidia-xconfing. startx successfully starts the graphics environment but without using the nvidia driver (nvida-settings shows that the driver is not being used).
Based on info from the Arch wiki and /usr/doc/NVIDIA_GLX-1.0 I created a xorg.conf file manually and now I am getting and error related to prime synchronisation not being available. That bug has been reported but not yet fixed, although someone posted a patch that reportedly works for nvidia 440.44 and not 390.132. I will see if I can do a similar patch myself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.