INTEL/NVIDIA dual GPU : no nvidia-driver

Lots of try and post/wiki reading but nothing goes good

Got flickering with mesa driver on stellarium (should be fixed by mesa 21.3.4 but not fully) so try to use nvidia graphic and seems there is no driver installed.

$ inxi -G
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] driver: N/A
  Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
  Display: x11 server: X.Org driver: loaded: modesetting
    resolution: 1920x1080~60Hz
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
    v: 4.6 Mesa 21.3.4
$ prime-run glxinfo
name of display: :0.0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  50
  Current serial number in output stream:  51
$ glxinfo | grep -i opengl
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.3.4
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.3.4
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.3.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
$ mhwd -li
> Installed PCI configs:
                  NAME               VERSION          FREEDRIVER           TYPE
     video-modesetting            2020.01.13                true            PCI
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI

Don’t try to install closed source nvidia driver because don’t seem to work with dual card ? and don’t find the way to rollback the installation if it’s going bad (work PC).

try to reinstall by gui video-hybrid-intel-nvidia-prime but

> Removing video-hybrid-intel-nvidia-prime...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/local/pci/video-hybrid-intel-nvidia-prime/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing libxnvctrl breaks dependency 'libxnvctrl' required by psensor
Error: pacman failed!
Error: script failed!
$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

$ lsb_release -a
LSB Version:	n/a
Distributor ID:	ManjaroLinux
Description:	Manjaro Linux
Release:	21.2.2
Codename:	Qonos

$ uname -a
Linux laptop 5.10.93-1-MANJARO #1 SMP PREEMPT Thu Jan 20 09:46:07 UTC 2022 x86_64 GNU/Linux

Laptop Dell XPS 9750

The manjaro wiki doens’t help, either arch wiki : too much options and don’t know which to follow.
Try to override Xorg Device section with nvidia driver (or modesetting) but unable to load driver and always the same error in glxinfo.

Thanks for help

Hi @wadouk, and welcome!

Please provide the output for:

mhwd --list

you can install the proprietary NVIDIA driver by using the Manjaro Hardware Detection (MHWD) utility. To do so, enter the following command into your terminal:

sudo mhwd -a pci nonfree 0300

:point_up_2: That’ll only work if you don’t want to use the Intel graphics along with the nvidia one. AFAIK anyway. Wat with only having nvidia and all. And that a desktop, not a laptop.

I had very similar issues with my XPS 9570, see my thread.
I just managed to solve them by

  1. Update and boot into the latest kernel 5.16.2-1
  2. Remove video-linux graphics driver
sudo mhwd -r pci video-linux
  1. Update BIOS as in [1]
  2. Remove the unsupported kernel version (had 5.13 before, without this the next step did not work)
  3. Reinstall the graphics drivers using mhwd:
sudo mhwd -r pci video-hybrid-intel-nvidia-prime
sudo mhwd -a pci nonfree 0300

Everything runs fine again. I do not know whether all of the steps were necessary.