Nvidia drivers not working

I’m not an expert. I do a lot of nvidia installs that are non hybrid on desktops and they have installation issues also. The problem is i don’t have the hardware to try things plus i think that not all manufacturers hybrid systems work the same way. I still think with your system that you need to get it working on intel first and then use one of the many methods of switching graphics or set it to use one or the other only. I’m not sure if you checked your Bios to see if one or the other can be turned off. If you are able to turn off the intel and use the nvidia only then try that. Other then that just keep trying to find information from a source that has gotten similar equipment working. I wish i could make it work for you. The last link i gave should help as well as the video posted earlier.

Edit: I’m just happy to see you not give up because that is worthy and how one learns. It’s not always the result we want but the endeavour is worth it.

Xorg log:

You should have file
/usr/lib/nvidia/xorg/libglxserver_nvidia.so
Have you installed package nvidia-utils?

My system IS working with Intel, and no problem with that! driver i915. Sorry if that wasn’t clear.

I did check and there is no such option or alike.

:grin:
thanks! I’m not giving up yet!

I do have nvidia-utils installed (I think it was probably installed by nvidia-installer-dkms)
and this are the contents of:

/usr/lib/nvidia/xorg

lrwxrwxrwx 1 root root       29 mar 19 02:23 libglxserver_nvidia.so -> libglxserver_nvidia.so.460.67
lrwxrwxrwx 1 root root       29 mar 19 02:23 libglxserver_nvidia.so.1 -> libglxserver_nvidia.so.460.67
-rwxr-xr-x 1 root root 12680840 mar 19 02:23 libglxserver_nvidia.so.460.67

If the Intel is working have you tried installing the Optimus manager?

That is exactly what I am doing right now. In fact, I am searching for"Arch nvidia prime vs bumblebee vs optimus manager vs nvidia-xrun", as I have all those options and don’t know which one to choose.
https://wiki.archlinux.org/index.php/NVIDIA_Optimus#Use_switchable_graphics
There is even an additional project not featured in the Arch Wiki:

I really don’t mind if swtching between iGPU and dGPU needs reboot, I just would like to have a reliable system in which nVidia performance is as best as possible and intel performance is as energy saving as possible.
Is optimus-manager the way to go?

Try optimus manager first as it is the easiest as far as I’m concerned. What desktop are you on? The Instructions are in the wiki for them.

Are you sure there is no option to turn off the dedicated GPU? Or the integrated GPU? :wink:

Yes, I am totally completely positive that there is no option in the BIOS for anything like that.

I am on i3wm with lightdm

Okay that explains a lot. I’m not that familiar with I3. I would bet that if you were on one of the other desktops it would be easier. :slightly_smiling_face:

I might consider going back to KDE just to try, but I love so much I3wm. Hard to go back, it is really more efficient IMHO.

I will follow this guide

I love kde and i’m looking at I3 on KDE as some others have done.

That guide is good but i have done it with bypassing installing bumblebee. Not sure that is needed but try it via this guide as it doesn’t hurt anything. You are installing it and then you disable the service but maybe it configures everything properly without any manual intervention or hassle.

1 Like

Maybe not. I think I’ll better follow OptimusManager official readme

1 Like

I just switched to I3 on KDE and it’s awesome. Log into either one. My advantage is i have an AMD system with RX 590 Graphics card and a Ryzen 7 3800X.

Gentlemen: the day has come!
Short answer: I was never able to run pure Nvidia graphics without Optimus Manager. After installing optimus manager, I managed to make it work. At the bottom of this post I paste the final working Xorg conf file that optimus manager generated for me.

The steps I took were:

  1. Delete all GPU related conf files in both /usr/share/X11/xorg.conf.d and /etc/X11/xorg.conf.d
  2. yay nvidia-lts, because I am using linux-lts kernel (although maybe this step was not needed)
  3. yay optimus-manager
  4. reboot
  5. sudo prime-offload
  6. sudo optimus-manager --switch nvidia

Now I am (at last!) running on my nVidia dGPU. Next time, I will try to get an AMD with open source drivers.
I do have some issues though, I think I will solve tinkering with Arandr, and other issues like no backlight and no tray icons, but I will let you guys rest and bother somebody else (or maybe you again) in another forum post.

In case somebody is interested, here is the working xorg conf file:

/etc/X11/xorg.conf.d/10-optimus-manager.conf
	ModulePath "/usr/lib/nvidia"
	ModulePath "/usr/lib32/nvidia"
	ModulePath "/usr/lib32/nvidia/xorg/modules"
	ModulePath "/usr/lib32/xorg/modules"
	ModulePath "/usr/lib64/nvidia/xorg/modules"
	ModulePath "/usr/lib64/nvidia/xorg"
	ModulePath "/usr/lib64/xorg/modules"
EndSection

Section "ServerLayout"
	Identifier "layout"
	Screen 0 "nvidia"
	Inactive "integrated"
EndSection

Section "Device"
	Identifier "nvidia"
	Driver "nvidia"
	BusID "PCI:8:0:0"
	Option "Coolbits" "28"
EndSection

Section "Screen"
	Identifier "nvidia"
	Device "nvidia"
	Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
	Identifier "integrated"
	Driver "modesetting"
	BusID "PCI:0:2:0"
EndSection

Section "Screen"
	Identifier "integrated"
	Device "integrated"
EndSection

EDIT: I want to thank @manuel, @joekamprad, @Mikro and specially @ricklinux for giving their time and effort on solving this issue. I think the lesson learned here is: If you are having trouble running Nvidia driver alone on an hybrid laptop, try doing it with optimus manager. Looking forward to keep in this Endeavour.

3 Likes

Awesome … I knew it would work! :smile:

Great work! :+1:

1 Like

So does this mean you are strictly on I3 and able to switch graphics now?