Nvidia-installer-dmks with 390xx

Hi!

My first post here. I have an (I guess) old lapop with an hibrid system:

00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107M [GeForce GTX 660M] [10de:0fd4] (rev ff) (prog-if ff)

I’m trying to get bumblebee or opptimus or something like that working (I get that in the past with an Antergos installation). If I try the nvidia-installer-check command it give me this:

Your graphics card (id: 0fd4) is supported by the nvidia-390xx-dkms driver.
To install a driver for this card:
  * Use the --force option with nvidia-installer-dkms.
  * Then, BEFORE rebooting, install nvidia-390xx-dkms from the AUR.
    For example:
      yay -S nvidia-390xx-dkms

So I proceed with sudo nvidia-installer-dkms -bf with this output:

INFO:root:Removing /tmp/nvidia-installer_r.log file...
INFO:root:EndeavourOS Nvidia Installer v3.3.11
2021-12-01 17:49:06 [INFO]: EndeavourOS Nvidia Installer v3.3.11
INFO:root:All logs will be stored in /tmp/nvidia-installer_r.log
2021-12-01 17:49:06 [INFO]: All logs will be stored in /tmp/nvidia-installer_r.log
INFO:root:Updating Nvidia graphics cards database...
2021-12-01 17:49:06 [INFO]: Updating Nvidia graphics cards database...
Database is already up-to-date.
INFO:root:Installing bumblebee driver...
2021-12-01 17:49:10 [INFO]: Installing bumblebee driver...
INFO:root:Removing conflicting packages...
2021-12-01 17:49:10 [INFO]: Removing conflicting packages...
INFO:root:Downloading and installing driver packages, please wait as this may take a few minutes...
2021-12-01 17:49:10 [INFO]: Downloading and installing driver packages, please wait as this may take a few minutes...
INFO:root:Adding user agustinjb to bumblebee group...
2021-12-01 17:50:48 [INFO]: Adding user agustinjb to bumblebee group...
INFO:root:gpasswd -a agustinjb bumblebee
2021-12-01 17:50:48 [INFO]: gpasswd -a agustinjb bumblebee
INFO:root:Adding user agustinjb to video group...
2021-12-01 17:50:48 [INFO]: Adding user agustinjb to video group...
INFO:root:gpasswd -a agustinjb video
2021-12-01 17:50:48 [INFO]: gpasswd -a agustinjb video
INFO:root:Enabling bumblebeed.service service...
2021-12-01 17:50:48 [INFO]: Enabling bumblebeed.service service...
INFO:root:systemctl enable bumblebeed.service
2021-12-01 17:50:48 [INFO]: systemctl enable bumblebeed.service
INFO:root:Patching /usr/share/applications/nvidia-settings.desktop...
2021-12-01 17:50:48 [INFO]: Patching /usr/share/applications/nvidia-settings.desktop...
INFO:root:Removing /etc/X11/xorg.conf.d/20-nvidia.conf file...
2021-12-01 17:50:48 [INFO]: Removing /etc/X11/xorg.conf.d/20-nvidia.conf file...
INFO:root:/etc/X11/xorg.conf.d/20-nvidia.conf not found. That's ok.
2021-12-01 17:50:48 [INFO]: /etc/X11/xorg.conf.d/20-nvidia.conf not found. That's ok.
INFO:root:Installation finished. You need to reboot now!
2021-12-01 17:50:48 [INFO]: Installation finished. You need to reboot now!

But then if I try yay -S nvidia-390xx-dkms it will say me that is a conflict between nvidia-390xx-utils and nvidia-utils and it won’t be installed beacuse nvidia-utils is necessary for nvidia-dkms. So…I don’t know how to proceed. I’ve been trying some different things with no result.

Any help with this? Any hint?

Thanks in advance!

@ricklinux is gonna be your go to for help on this. when he arrives on the scene, he’ll help you out, he just LOVES nvidia troubleshooting :wink:

Also, welcome to the forums!

2 Likes

You didn’t reboot before installing it?

Edit: What is the output currently?

inxi -Ga
1 Like

That was fast! :grinning:

Yes I’ve reboted before installing it. This is the ouput you’re asking for:

Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: CLEVO/KAPOK
  driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0166 class-ID: 0300
  Device-2: NVIDIA GK107M [GeForce GTX 660M] driver: N/A
  alternate: nouveau, nvidia_drm, nvidia bus-ID: 01:00.0 chip-ID: 10de:0fd4
  class-ID: 0300
  Device-3: Acer BisonCam NB Pro type: USB driver: uvcvideo bus-ID: 2-1.6:3
  chip-ID: 5986:0401 class-ID: 0e02
  Display: x11 server: X.Org 1.21.1.1 driver: loaded: modesetting
  display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
  s-diag: 582mm (22.9")
  Monitor-1: LVDS-1 res: 1920x1080 hz: 60 dpi: 128
  size: 381x214mm (15.0x8.4") diag: 437mm (17.2")
  Message: Unable to show advanced data. Required tool glxinfo missing.
1 Like

Okay …it shows no driver installed for Nvidia.

Edit: you didn’t reboot? Why?

I think you are supposed to install it by

sudo nvidia-390xx-dkms --force

Then don’t reboot but install

yay -S nvidia-390xx-dkms -b

I’ve tried both ways in fact. Rebooting and not. The message of nvidia-installer-check actually say to NOT reboot between nvidia-installer-dkms -bf and yay -S nvidia-390xx-dkms but it doesn’t matter how I try, nvidia-390xx-dkms always says the same and won’t install.

I think you are misspelling your last commands, do you?. sudo nvidia-390xx-dkms --force?? That does nothing. Also I think yay -S nvidia-390xx-dkms -b have no sense

If you run this and your card is supported then you should be able to install it.

nvidia-installer-check

Then you run

sudo nvidia-installer-dkms -b

See if that works?

I think I said in the first post. I’ll post command and output:

nvidia-installer-check
Your graphics card (id: 0fd4) is supported by the nvidia-390xx-dkms driver.
To install a driver for this card:
  * Use the --force option with nvidia-installer-dkms.
  * Then, BEFORE rebooting, install nvidia-390xx-dkms from the AUR.
    For example:
      yay -S nvidia-390xx-dkms

Then:

sudo nvidia-installer-dkms -b
INFO:root:Removing /tmp/nvidia-installer_r.log file...
INFO:root:EndeavourOS Nvidia Installer v3.3.11
2021-12-01 19:20:51 [INFO]: EndeavourOS Nvidia Installer v3.3.11
INFO:root:All logs will be stored in /tmp/nvidia-installer_r.log
2021-12-01 19:20:51 [INFO]: All logs will be stored in /tmp/nvidia-installer_r.log
INFO:root:Updating Nvidia graphics cards database...
2021-12-01 19:20:51 [INFO]: Updating Nvidia graphics cards database...
Database is already up-to-date.
INFO:root:Installing bumblebee driver...
2021-12-01 19:20:54 [INFO]: Installing bumblebee driver...
INFO:root:Removing conflicting packages...
2021-12-01 19:20:54 [INFO]: Removing conflicting packages...
INFO:root:Downloading and installing driver packages, please wait as this may take a few minutes...
2021-12-01 19:20:54 [INFO]: Downloading and installing driver packages, please wait as this may take a few minutes...
INFO:root:Adding user agustinjb to bumblebee group...
2021-12-01 19:22:29 [INFO]: Adding user agustinjb to bumblebee group...
INFO:root:gpasswd -a agustinjb bumblebee
2021-12-01 19:22:29 [INFO]: gpasswd -a agustinjb bumblebee
INFO:root:Adding user agustinjb to video group...
2021-12-01 19:22:29 [INFO]: Adding user agustinjb to video group...
INFO:root:gpasswd -a agustinjb video
2021-12-01 19:22:29 [INFO]: gpasswd -a agustinjb video
INFO:root:Enabling bumblebeed.service service...
2021-12-01 19:22:29 [INFO]: Enabling bumblebeed.service service...
INFO:root:systemctl enable bumblebeed.service
2021-12-01 19:22:29 [INFO]: systemctl enable bumblebeed.service
INFO:root:Patching /usr/share/applications/nvidia-settings.desktop...
2021-12-01 19:22:30 [INFO]: Patching /usr/share/applications/nvidia-settings.desktop...
INFO:root:Removing /etc/X11/xorg.conf.d/20-nvidia.conf file...
2021-12-01 19:22:30 [INFO]: Removing /etc/X11/xorg.conf.d/20-nvidia.conf file...
INFO:root:/etc/X11/xorg.conf.d/20-nvidia.conf not found. That's ok.
2021-12-01 19:22:30 [INFO]: /etc/X11/xorg.conf.d/20-nvidia.conf not found. That's ok.
INFO:root:Installation finished. You need to reboot now!
2021-12-01 19:22:30 [INFO]: Installation finished. You need to reboot now!

Everything seems OK, then BEFORE reboot, I try:

yay -S nvidia-390xx-dkms

And get (sorry it’s in spanish):

[...]
==> Las fuentes están listas.
 -> nvidia-390xx-utils-390.144-3 ya se ha creado -- omitiendo la compilación
cargando los paquetes...
resolviendo dependencias...
buscando conflictos entre paquetes...
:: nvidia-390xx-utils y nvidia-utils están en conflicto (nvidia-libgl). ¿Quitar nvidia-utils? [s/N] s
error: no se pudo preparar la operación (no se pudieron satisfacer las dependencias)
:: quitando nvidia-utils se rompe la dependencia con «nvidia-utils=495.44», necesaria para el paquete nvidia-dkms
 -> exit status 1

Then, should I reboot? inxi -Ga still says it’s no driver for nvidia

I’ll have to defer this to @manuel as i’m not sure why the installer gives this message about the newer nvidia-utils drivers.

Edit: Or maybe @jonathon knows since it’s the 390XX packages in the AUR.

2 Likes

You have to replace all nvidia packages with their nvidia-390xx equivalent.

2 Likes

You should remove the conflicting package (because it supports only nvidia 495 series) and then try install nvidia-390xx-dkms (and use only nvidia 390 series packages).

1 Like

The op must have tried to install nvidia originally then and there are some nvidia packages installed? Hence why the nvidia-utils conflict?

Yes. that’s why those instructions.

The instructions are a little confusing. So they should have installed with nvidia-390xx-dkms first not nvidia-installer-dkms -bf as this tries to install the latest drivers correct?

Edit: Is this correct or i still have it wrong?

We are planning to make a new better version of the nvidia installer app.
It will be released when it is ready. :sweat_smile:

5 Likes

Ok, so…let’s see if I understand it right…

First I’ve unninstalled this:

nvidia-dkms nvidia-settings nvidia-utils lib32-nvidia-utils

And now I have this installed:

nvidia-390xx-dkms nvidia-390xx-settings nvidia-390xx-utils lib32-nvidia-390xx-utils

Now what?? I’m not sure about the next step…

1 Like

the thread all together looks screwed a bit to me…

the first attempt to follow instructions from nvidia-installer-dkms was the right way… only that the command top install 390xx versions of the needed packages was not solving dependencies:

yay -S nvidia-390xx-dkms

it should be yay -S nvidia-390xx-utils nvidia-390xx-dkms

should work with bumblebee…

I am not sure what is your current state of using nvidia-installer-dkms script… if bumblebee is still installed you should be fine if not you will need to redo the bumblebee install with the script and replace latest drivers with the 390xx versions again.

The nvidia-installer-dkms script do not support legacy drivers currently… so using it for legacy drivers is only a workaround … the trick is to install and setup p.e. bumblebee automatic with the latest drivers and packages for nvidia and replace only the driver packages after this with needed legacy drivers. and after this reboot not before…

2 Likes

I understand the problem about the script but I think it’s something still missing. Right now I have executed tthe script and then all the 390xx packages substituting the normal ones. Then I’ve rebooted, and inxi -Ga now is this:

Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: CLEVO/KAPOK
  driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0166 class-ID: 0300
  Device-2: NVIDIA GK107M [GeForce GTX 660M] vendor: CLEVO/KAPOK
  driver: nvidia v: 390.144 alternate: nouveau,nvidia_drm bus-ID: 01:00.0
  chip-ID: 10de:0fd4 class-ID: 0300
  Device-3: Acer BisonCam NB Pro type: USB driver: uvcvideo bus-ID: 2-1.6:3
  chip-ID: 5986:0401 class-ID: 0e02
  Display: x11 server: X.Org 1.21.1.1 driver: loaded: nvidia
  note: n/a (using device driver) failed: nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
  s-diag: 582mm (22.9")
  Monitor-1: LVDS-1 res: 1920x1080 hz: 60 dpi: 128
  size: 381x214mm (15.0x8.4") diag: 437mm (17.2")
  Message: Unable to show advanced data. Required tool glxinfo missing.

If I try for example optirun --status:

Bumblebee status: Error (3.2.1): [XORG] (EE) NVIDIA: Use the -ignoreABI option to override this check.

Maybe I have to override some of the things that the script does to redirect to the 390 driver or something like that?

This card is supported by the 470xx drivers, doesn’t need any overrides, and better supports things like Wayland.

Go back, remove the 390xx packages and install 470xx instead:

sudo pacman -R nvidia-390xx-dkms nvidia-390xx-settings nvidia-390xx-utils lib32-nvidia-390xx-utils
sudo pacman -S nvidia-470xx-dkms nvidia-470xx-settings lib32-nvidia-470xx-utils

That should be all you need to do - don’t bother with Optimus Manager or whatever, PRIME render offload works natively without any configuration.

2 Likes