Error installing graphics driver - nvidia

I installed Manjaro for the first time today. I can’t get my Nvidia GPU to work on any of the Ubuntu based distributions without screen tearing or other issues so I decided to try out Manjaro.

My GPU is:

> PCI Device: /devices/pci0000:00/0000:00:01.0/0000:01:00.0 (0300:10de:0fd1)
Display controller nVidia Corporation GK107M [GeForce GT 650M]

I found an article in the Manjaro Wiki about configuring graphics cards and I attempted the following:

$ sudo mhwd -a pci nonfree 0300
[sudo] password for david: 
> Using config 'video-hybrid-intel-nvidia-418xx-bumblebee' for device: 0000:01:00.0 (0300:10de:0fd1) Display controller nVidia Corporation GK107M [GeForce GT 650M]
> Using config 'video-hybrid-intel-nvidia-418xx-bumblebee' for device: 0000:00:02.0 (0300:8086:0166) Display controller Intel Corporation 3rd Gen Core processor Graphics Controller
> Installing video-hybrid-intel-nvidia-418xx-bumblebee...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-nvidia-418xx-bumblebee/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
:: Synchronizing package databases...
warning: xf86-video-intel-1:2.99.917+913+g9236c582-1 is up to date -- skipping
error: target not found: linux59-nvidia-418xx
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
Error: pacman failed!
Error: script failed!

Did I do something wrong?

Edit: the driver currently installed is:

> INSTALLED:

   NAME:	video-linux
   ATTACHED:	PCI
   VERSION:	2018.05.04
   INFO:	Standard open source drivers.
   PRIORITY:	2
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 0380 0302 
   VENDORIDS:	1002 8086 10de

Welcome to the forum! :wave:

Please post your full system info as outlined here:

$ inxi -Fazy
System:
  Kernel: 5.9.11-3-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.9-x86_64 
  root=UUID=1b45aad0-ea5f-45d6-93af-bb526a02b7c1 rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: Xfce 4.14.3 tk: Gtk 3.24.23 info: xfce4-panel wm: xfwm4 
  dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:
  Type: Laptop System: ASUSTeK product: N56VZ v: 1.0 serial: <filter> 
  Mobo: ASUSTeK model: N56VZ v: 1.0 serial: <filter> UEFI: American Megatrends 
  v: N56VZ.217 date: 05/22/2013 

(upower:2026): UPower-WARNING **: 22:29:31.468: Cannot connect to upowerd: Error calling StartServiceByName for org.freedesktop.UPower: Failed to activate service 'org.freedesktop.UPower': timed out (service_start_timeout=25000ms)
Battery:
  ID-1: BAT0 charge: 11.5 Wh condition: 52.9/57.7 Wh (92%) volts: 11.1/11.1 
  model: ASUSTeK N56--52 type: Li-ion serial: N/A status: Charging cycles: 577 
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M325 
  serial: <filter> charge: Normal status: Discharging 
CPU:
  Info: Quad Core model: Intel Core i7-3630QM bits: 64 type: MT MCP 
  arch: Ivy Bridge family: 6 model-id: 3A (58) stepping: 9 microcode: 21 
  L2 cache: 6144 KiB 
  flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 38335 
  Speed: 1197 MHz min/max: 1200/3400 MHz Core speeds (MHz): 1: 1197 2: 1197 
  3: 1197 4: 1198 5: 1198 6: 1197 7: 1198 8: 1197 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  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 status: Vulnerable: No microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: ASUSTeK N56VZ 
  driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0166 
  Device-2: NVIDIA GK107M [GeForce GT 650M] vendor: ASUSTeK N56VZ 
  driver: nouveau v: kernel bus ID: 01:00.0 chip ID: 10de:0fd1 
  Device-3: Suyin UVC HD Webcam type: USB driver: uvcvideo bus ID: 3-1.3:4 
  chip ID: 064e:d213 serial: <filter> 
  Display: x11 server: X.Org 1.20.10 driver: intel,nouveau 
  unloaded: modesetting alternate: fbdev,nv,vesa display ID: :0.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: LVDS1 res: 1920x1080 hz: 60 dpi: 143 size: 340x190mm (13.4x7.5") 
  diag: 389mm (15.3") 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2) 
  v: 4.2 Mesa 20.2.3 compat-v: 3.0 direct render: Yes 
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio 
  vendor: ASUSTeK N56VZ driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  chip ID: 8086:1e20 
  Device-2: NVIDIA GK107 HDMI Audio driver: snd_hda_intel v: kernel 
  bus ID: 01:00.1 chip ID: 10de:0e1b 
  Sound Server: ALSA v: k5.9.11-3-MANJARO 
Network:
  Device-1: Intel Centrino Wireless-N 2230 driver: iwlwifi v: kernel 
  port: e000 bus ID: 03:00.0 chip ID: 8086:0887 
  IF: wlp3s0 state: down mac: <filter> 
  Device-2: Qualcomm Atheros AR8161 Gigabit Ethernet vendor: ASUSTeK N56VZ 
  driver: alx v: kernel port: d000 bus ID: 04:00.0 chip ID: 1969:1091 
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 119.24 GiB used: 6.64 GiB (5.6%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda vendor: Phison model: SSB128GPTC0-S81 size: 119.24 GiB 
  block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> 
  rev: 06.9 scheme: GPT 
Partition:
  ID-1: / raw size: 20.00 GiB size: 19.56 GiB (97.81%) used: 6.63 GiB (33.9%) 
  fs: ext4 dev: /dev/sda3 
Swap:
  Alert: No Swap data was found. 
Sensors:
  System Temperatures: cpu: 44.0 C mobo: N/A gpu: nouveau temp: 41.0 C 
  Fan Speeds (RPM): cpu: 1800 
Info:
  Processes: 244 Uptime: 2m Memory: 15.53 GiB used: 980.8 MiB (6.2%) 
  Init: systemd v: 246 Compilers: gcc: N/A Packages: pacman: 1082 lib: 324 
  flatpak: 0 Shell: Bash v: 5.0.18 running in: xfce4-terminal inxi: 3.1.08

Switch to 5.4 kernel.

1 Like

Switching to 5.4 kernel did not work.

$ mhwd-kernel -li
Currently running: 5.4.80-2-MANJARO (linux54)
The following kernels are installed in your system:
   * linux54
   * linux59
$ sudo mhwd -a pci nonfree 0300
[sudo] password for david: 
> Using config 'video-hybrid-intel-nvidia-418xx-bumblebee' for device: 0000:01:00.0 (0300:10de:0fd1) Display controller nVidia Corporation GK107M [GeForce GT 650M]
> Using config 'video-hybrid-intel-nvidia-418xx-bumblebee' for device: 0000:00:02.0 (0300:8086:0166) Display controller Intel Corporation 3rd Gen Core processor Graphics Controller
> Installing video-hybrid-intel-nvidia-418xx-bumblebee...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-nvidia-418xx-bumblebee/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
:: Synchronizing package databases...
warning: xf86-video-intel-1:2.99.917+913+g9236c582-1 is up to date -- skipping
error: target not found: linux59-nvidia-418xx
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
Error: pacman failed!
Error: script failed!

I believe since both kernel are installed, mhwd tries to install the driver for both, which will fail since the 418xx nvidia driver is not available for 5.9 and above. And as a matter of fact, the 418xx nvidia driver is being removed from the Manjaro repositories. So this might be a good time to switch to (e.g.) the 390xx driver.

1 Like

What’s the difference between:
video-hybrid-intel-nvidia-390xx-bumblebee
and
video-nvidia-390xx?
Does the latter support the optimus dual gpu hardware setups?

video-nvidia-390xx is for single GPU setups.
Bumblebee implements Optimus support.

I was able to install the nvidia drivers:

$ mhwd -li --pci
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2020.10.04               false            PCI
$ sudo mhwd-gpu --check
[sudo] password for david: 
xorg configuration symlink valid...
$ sudo mhwd-gpu --status
:: status
  xorg configuration file: '/etc/X11/mhwd.d/intel.conf'

Should I uninstall the video-linux driver?

I tried to open the NVIDIA X Server Settings application and got the message:

You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run ‘nvidia-config’ as root), and restart the X server.

When I try to run I get:

$ sudo nvidia-config
[sudo] password for david: 
sudo: nvidia-config: command not found

Did I miss a step somewhere? Since there are two drivers installed do I need to activate the video-hybrid-intel-nvidia-390xx-bumblebee driver somehow?