Messed up prime installation, no Nvidia driver active

I think I have messed up my graphics drivers and need help. Does anyone of you know a solution?

I seem to have an orphan (?) bumblebee installation that breaks prime and my Nvidia driver. Or is it something else?

When I re-install via:

mhwd -f -i pci video-hybrid-intel-nvidia-prime

Everything works fine.

But prime-run doesn’t work, and the Nvidia driver is shown as “N/A”.

Output to mhwd -li is:

> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2020.11.30               false            PCI
     video-modesetting            2020.01.13                true            PCI
           video-linux            2018.05.04                true            PCI

Warning: No installed USB configs!

Output to inxi -Fazy is:

System:
  Kernel: 5.10.7-3-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=56a980d9-4378-40af-8e32-d0c7df8b6d97 rw quiet apparmor=1 
  security=apparmor resume=UUID=b914514e-cfba-4360-8c09-99ed20c052cd 
  udev.log_priority=3 
  Desktop: KDE Plasma 5.20.5 tk: Qt 5.15.2 wm: kwin_x11 dm: SDDM 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: ASUSTeK product: ZenBook UX333FN_UX333FN v: 1.0 
  serial: <filter> 
  Mobo: ASUSTeK model: UX333FN v: 1.0 serial: <filter> 
  UEFI: American Megatrends v: UX333FN.308 date: 07/23/2019 
Battery:
  ID-1: BAT0 charge: 42.9 Wh condition: 42.9/50.1 Wh (86%) volts: 11.9/11.9 
  model: ASUSTeK ASUS Battery type: Li-ion serial: N/A status: Not charging 
  cycles: 52 
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard K540/K545 
  serial: <filter> charge: 100% (should be ignored) rechargeable: yes 
  status: Discharging 
CPU:
  Info: Quad Core model: Intel Core i7-8565U bits: 64 type: MT MCP 
  arch: Kaby Lake note: check family: 6 model-id: 8E (142) stepping: B (11) 
  microcode: DE L2 cache: 8 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 32012 
  Speed: 800 MHz min/max: 400/4600 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 
  4: 800 5: 800 6: 800 7: 800 8: 800 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf status: Not affected 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:3ea0 
  Device-2: NVIDIA GP108M [GeForce MX150] driver: N/A 
  alternate: nouveau, nvidia_drm, nvidia bus ID: 02:00.0 chip ID: 10de:1d12 
  Device-3: IMC Networks USB2.0 HD IR UVC WebCam type: USB driver: uvcvideo 
  bus ID: 1-5:7 chip ID: 13d3:56cb serial: <filter> 
  Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: 
  loaded: modesetting unloaded: intel alternate: fbdev,vesa display ID: :0 
  screens: 1 
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.7x15.0") 
  s-diag: 777mm (30.6") 
  Monitor-1: HDMI-1 res: 2560x1440 hz: 60 dpi: 118 
  size: 553x311mm (21.8x12.2") diag: 634mm (25") 
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2) v: 4.6 Mesa 20.3.3 
  direct render: Yes 
Audio:
  Device-1: Intel Cannon Point-LP High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci 
  bus ID: 00:1f.3 chip ID: 8086:9dc8 
  Device-2: Licensed by Sony Entertainment America Wireless Stereo Headset 
  type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-1.2:4 
  chip ID: 12ba:0034 
  Sound Server: ALSA v: k5.10.7-3-MANJARO 
Network:
  Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi v: kernel 
  port: 4000 bus ID: 00:14.3 chip ID: 8086:9df0 
  IF: wlo1 state: up mac: <filter> 
  Device-2: Licensed by Sony Entertainment America Wireless Stereo Headset 
  type: USB driver: hid-generic,snd-usb-audio,usbhid bus ID: 1-1.2:4 
  chip ID: 12ba:0034 
Drives:
  Local Storage: total: 238.47 GiB used: 177.3 GiB (74.3%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital 
  model: PC SN520 SDAPNUW-256G-1002 size: 238.47 GiB block size: 
  physical: 512 B logical: 512 B speed: 15.8 Gb/s lanes: 2 serial: <filter> 
  rev: 20110000 temp: 45.9 C 
Partition:
  ID-1: / raw size: 221.14 GiB size: 216.67 GiB (97.98%) 
  used: 177.3 GiB (81.8%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 
  ID-2: /boot/efi raw size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 280 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 17.03 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/nvme0n1p3 maj-min: 259:3 
Sensors:
  System Temperatures: cpu: 53.0 C mobo: N/A 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 221 Uptime: 12m wakeups: 3 Memory: 15.45 GiB 
  used: 3.09 GiB (20.0%) Init: systemd v: 247 target: graphical.target 
  Compilers: gcc: 10.2.0 clang: 11.0.1 Packages: apt: 0 pacman: 1473 lib: 445 
  rpm: 0 flatpak: 0 Shell: Bash v: 5.1.0 running in: konsole inxi: 3.2.02 

What can I do to solve the problem? Thank you so much for any suggestions!

According to the nVidia Product page the GeForce MX150 is not compatible with the driver you installed, which you can see here:

NVIDIA GP108M [GeForce MX150] driver: N/A 

so you’ll have to get rid of the 460 and install one of the 390 series that still supports your card::

video-hybrid-intel-nvidia-390xx-bumblebee            2020.11.30               false            PCI
video-nvidia-390xx            2020.11.30               false            PCI

:sob:

Thank you so much for helping me, Fabby!

The strange thing is, when I enter by hand:

modprobe nvidia

And afterwards inxi -G, then the driver seems to be loaded:

Graphics:  Device-1: Intel UHD Graphics 620 driver: i915 v: kernel 
           Device-2: NVIDIA GP108M [GeForce MX150] driver: nvidia v: 460.32.03 
           Device-3: IMC Networks USB2.0 HD IR UVC WebCam type: USB driver: uvcvideo 
           Display: x11 server: X.Org 1.20.10 driver: loaded: modesetting unloaded: intel resolution: 2560x1440~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2) v: 4.6 Mesa 20.3.3

And it seems to be version 460.32.03. Up to version 460.39 is supporting my GeForce MX150, according to this page:

https://www.nvidia.com/Download/driverResults.aspx/170134/en-us

But if you say, it won’t work with this, I’ll go back to the 390 series. I just wonder … I bought my notebook September 2019, it doesn’t seem that old to me.

Even with the driver loaded, trying to start nvidia-settings says:

(nvidia-settings:105746): Gtk-WARNING **: 17:51:02.700: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used any
more. It will be removed in a future version

ERROR: Unable to load info from any available system

And when I try prime-run steam, I get

Running Steam on manjarolinux 20.2.1 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Steam client's requirements are satisfied
/home/titus/.local/share/Steam/ubuntu12_32/steam
[2021-02-09 17:52:31] Startup - updater built Feb  8 2021 05:16:36
Installing breakpad exception handler for appid(steam)/version(1612763122)
SteamUpdateUI: An X Error occurred
X Error of failed request:  BadValue (integer parameter out of range for operation)

Thank you very much for your time and effort! It is so great not to be left alone with the problem.

My bad! (And why I include my sources, so you can verify) :+1:

What’s the output of prime-run nvidia-smi and lsmod | grep nvidia

:question:

There is still hope then? That’s great!

Before I do sudo modprobe nvidia after reboot, both commands don’t work (the first gives out: NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.)

After the modprobe command, prime-run nvidia-smi gives out:

Wed Feb 10 10:01:41 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.39       Driver Version: 460.39       CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce MX150       Off  | 00000000:02:00.0 Off |                  N/A |
| N/A   34C    P0    N/A /  N/A |      0MiB /  2002MiB |      2%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

And lsmod | grep nvidia tells me:

nvidia 34144256 0

(“nvidia” is printed in red color.)

Thank you a lot for your time and help!

That’s weird that you have to do a modprobe.

Do you have anything blacklisted? (I.E. What are the contents of /etc/modprobe.d/)

:thinking:

In /etc/modprobe.d/ there is mhwd-bbswitch.conf containing

##
## Generated by mhwd - Manjaro Hardware Detection
##
 
options bbswitch load_state=0 unload_state=0

and there is mhwd-gpu.conf containing

##
## Generated by mhwd - Manjaro Hardware Detection
##
 
blacklist nouveau
blacklist ttm
blacklist drm_kms_helper
blacklist drm
options nvidia "NVreg_DynamicPowerManagement=0x02"

and there is mhwd-nvidia.conf containing

##
## Generated by mhwd - Manjaro Hardware Detection
##
 
 
blacklist nouveau
blacklist nvidia
blacklist nvidia-modeset
blacklist nvidia-uvm
blacklist ttm
blacklist drm_kms_helper
blacklist drm

A lot of blacklisting … :wink:

Is anything of this harmful? Blacklist nvidia in mhwd-nvidia.conf is strange, isn’t it?

Yup: Remove the blacklists for nVidia in mhwd-nvidia.conf and reboot and try again.

:+1:

Strange. I removed all three blacklist-commands for nvidia, mhwd-nvidia.conf now reads:

##
## Generated by mhwd - Manjaro Hardware Detection
##
      
blacklist nouveau
blacklist ttm
blacklist drm_kms_helper
blacklist drm

Still, the driver is not loaded (“N/A” in inxi -G), until I do modprobe nvidia.

I cannot do prime-run nvidia-smi before I did that. Afterwards it now reads:

Wed Feb 10 13:43:28 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 460.39       Driver Version: 460.39       CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce MX150       Off  | 00000000:02:00.0 Off |                  N/A |
| N/A   50C    P0    N/A /  N/A |      0MiB /  2002MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

It might be nothing, but I noticed since the reboot the ventilation of my notebook is on a high level (already before I did modprobe nvidia), as if it would be heavily working, even though I don’t do much. And in prime-run nvidia-smi it now says 50C, while before it were 34C.

Did I delete too much, should I put blacklist nvidia-modeset and blacklist nvidia-uvm back in?

On the contrary: apparently on my system:

lsmod | grep drm
nvidia_drm             69632  14
nvidia_modeset       1232896  35 nvidia_drm
drm_kms_helper        274432  1 nvidia_drm
cec                    69632  1 drm_kms_helper
drm                   569344  17 drm_kms_helper,nvidia_drm
agpgart                53248  1 drm
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper

so remove the blacklist for drm_kms_helper and drm as well and try again.

:crossed_fingers:

That didn’t do anything bad, but didn’t do anything good either. My mhwd-nvidia.conf now looks like this:

blacklist nouveau
blacklist ttm

The driver still isn’t loaded, until I do modprobe nvidia by hand. I would gladly do that every time I boot up, if only prime-run would work! But it doesn’t, even after his modprobe command.

On my system, lsmod | grep drm now looks like this.

lsmod | grep drm
drm_kms_helper        274432  1 i915
cec                    69632  2 drm_kms_helper,i915
drm                   569344  14 drm_kms_helper,i915
agpgart                53248  2 intel_gtt,drm
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper

It’s a difficult case, right?

Should I try to remove the following from my mhwd-gpu.conf?

blacklist drm_kms_helper
blacklist drm

I’ll do that and report back. Thank you so much for your patience, Fabby!

Regrettably, that didn’t help. I also deleted from mhwd-gpu.conf the line

options nvidia "NVreg_DynamicPowerManagement=0x02"

But it didn’t help the driver to be loaded. (I thought it might be from a different version of the driver and somehow hinder the new version to load properly.)

Now that it isn’t blacklisted anymore, could it be that the nvidia driver needs to be added somewhere? I wish I knew more about all this … Thank you for fighting through the thicket together with me.

OK, I’m officially all out of bright ideas now!

:sob:

@philm what was messed up here?? :alien:

Some others have issue with lastest nvidia and 5.10.x kernel. Regards

1 Like

Since we dropped the support of old Nvidia drivers, it seems it got worse. At some point we might need to drop also 390, which will leave us with only the latest Nvidia drivers in rolling. So we have to see on how that will go.

seems there was some issues with extramodules. pushed now a new kernel:

https://lists.manjaro.org/pipermail/manjaro-packages/Week-of-Mon-20210208/036022.html
https://lists.manjaro.org/pipermail/manjaro-packages/Week-of-Mon-20210208/036023.html

For me, the kernel update wasn’t the solution. But I love Manjaro and I thank you for making it better and better!

A big thank you also to Fabby, thanks for trying so hard and all your solution ideas! All the best to you.

Titus