Nvidia driver is not working

I manually installed the video-nvidia driver through the Hardware Configuration window.
my graphic card is Nvidia Geforce GTX 960M and I installed the default video-linux, open-source driver, in installing manjaro linux stage.

here are the outputs of some informational commands:

$ sudo mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-nvidia            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI
$ sudo lspci -knn
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:191b] (rev 06)
        Subsystem: Lenovo Device [17aa:3802]
        Kernel driver in use: i915
        Kernel modules: i915
01:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 960M] [10de:139b] (rev a2)
        Subsystem: Lenovo Device [17aa:3802]
        Kernel modules: nouveau, nvidia_drm, nvidia

so apparently the nvidia driver is not in use.

what should I do?

Hi @srezas, and welcome!

You’ll have to decide whether you want to use thee open-source or the proprietary drivers. The open-source drivers are not from Nvidia and supports more devices than the proprietary drivers, at thee coast of performance, so which one you choose will :100: depend on you.

I, myself, have a GTX 960. albeit not the mobile one but the desktop one, and I can confirm that it works just fine with the latest drivers.

Also worth noting, that AFAIK you can’t have both installed at the same time. So the question is, which one would you like to install?

More reading:

Thanks @Mirdarthos
So you mean I have to uninstall the video-linux driver in order to set video-nvidia driver as default?

I don’t know about uninstall, but I do think so. I use the proprietary driver, always have, so have no experience with the open-source driver.

But first you’ll have to install the proprietary one. Open a terminal and run:

sudo mhwd -auto pci nonfree 0300

Then uninstall video-linux:

mhwd --remove pci video-linux

And reboot if there were no errors.

AFAIK that should be all.

IF you encounter any errors, boot with a live ISO and report back.

It didn’t help. It installed video-hybrid-intel-nvidia-prime and then I removed video-linux.
But still, my applications can’t detect any graphic card.

$ sudo lspci -knn
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:191b] (rev 06)
        Subsystem: Lenovo Device [17aa:3802]
        Kernel driver in use: i915
        Kernel modules: i915
01:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 960M] [10de:139b] (rev a2)
        Subsystem: Lenovo Device [17aa:3802]
        Kernel modules: nouveau, nvidia_drm, nvidia
$ sudo 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


Warning: No installed USB configs!

nvidia xserver screenshot: https://imgur.com/a/DRcc4vc
manjaro settings manager screenshot: https://imgur.com/a/wkioA6v

Please see here then about providing the required information:

Edit:

But, from this:

It looks like the free driver is interfering with the proprietary one. I was obviously wrong saying you don’t need to remove it. Remove it with:

mhwd --remove pci video-linux
1 Like

I already removed video-linux with mhwd --remove pci video-linux and rebooted my system.
actually the post that you have quoted is for after the removing video-linux and installing the proprietary driver and rebooting!

Edit:
Also I saw the links that you provided. Please tell me if there is any command that you want me to execute and show you the results

Please provide the output for:

inxi --admin --verbosity=7 --filter --width
System:
  Kernel: 5.10.93-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
    root=UUID=bfd89388-ad3a-4e08-9bbe-8efc38b57c48 rw quiet apparmor=1
    security=apparmor resume=UUID=6fe7a39b-941b-4166-a0d4-e7ae4184cab6
    udev.log_priority=3
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm 4.16.1
    vt: 7 dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 80NV v: Lenovo ideapad Y700-15ISK
    serial: <superuser required> Chassis: type: 10 v: Lenovo ideapad Y700-15ISK
    serial: <superuser required>
  Mobo: LENOVO model: Allsparks 5A v: NO DPK serial: <superuser required>
    UEFI: LENOVO v: CDCN54WW date: 06/13/2017
Battery:
  ID-1: BAT0 charge: 43.8 Wh (99.1%) condition: 44.2/60.0 Wh (73.7%)
    volts: 16.6 min: 14.8 model: SMP L14M4P23 type: Li-ion serial: <filter>
    status: Charging
Memory:
  RAM: total: 15.46 GiB used: 4.18 GiB (27.0%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i7-6700HQ bits: 64 type: MT MCP arch: Skylake-S
    family: 6 model-id: 0x5E (94) stepping: 3 microcode: 0xEA
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 1362 high: 2100 min/max: 800/3500 scaling:
    driver: intel_pstate governor: powersave cores: 1: 916 2: 900 3: 1135
    4: 1700 5: 1254 6: 908 7: 1984 8: 2100 bogomips: 41621
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon
    art avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid
    cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb erms est f16c
    flush_l1d fma fpu fsgsbase fxsr hle ht hwp hwp_act_window hwp_epp
    hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm mca
    mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat
    pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts
    rdrand rdseed rdtscp rep_good rtm sdbg sep smap smep ss ssbd sse sse2
    sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tsc tsc_adjust tsc_deadline_timer
    vme x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf mitigation: PTE Inversion
  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 mitigation: Microcode
  Type: tsx_async_abort mitigation: Clear CPU buffers; SMT vulnerable
Graphics:
  Device-1: Intel HD Graphics 530 vendor: Lenovo driver: i915 v: kernel
    bus-ID: 00:02.0 chip-ID: 8086:191b class-ID: 0300
  Device-2: NVIDIA GM107M [GeForce GTX 960M] vendor: Lenovo driver: N/A
    alternate: nouveau, nvidia_drm, nvidia bus-ID: 01:00.0 chip-ID: 10de:139b
    class-ID: 0302
  Device-3: Acer Lenovo EasyCamera type: USB driver: uvcvideo bus-ID: 1-6:3
    chip-ID: 5986:0672 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org 1.21.1.3 compositor: xfwm4 v: 4.16.1 driver:
    loaded: modesetting alternate: fbdev,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: eDP-1 res: 1920x1080 hz: 60 dpi: 142
    size: 344x193mm (13.5x7.6") diag: 394mm (15.5")
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a170
    class-ID: 0403
  Sound Server-1: ALSA v: k5.10.93-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.43 running: yes
Network:
  Device-1: Intel Dual Band Wireless-AC 3165 Plus Bluetooth driver: iwlwifi
    v: kernel bus-ID: 08:00.0 chip-ID: 8086:3166 class-ID: 0280
  IF: wlp8s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel port: 3000 bus-ID: 09:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: enp9s0 state: down mac: <filter>
  IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A
  IP v4: <filter> type: noprefixroute scope: global broadcast: <filter>
  IP v6: <filter> virtual: stable-privacy scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
    bus-ID: 1-11:4 chip-ID: 8087:0a2a class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 1.03 TiB used: 504.97 GiB (48.1%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVLW128HEGR-000L2 size: 119.24 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 1L1QCXB7 temp: 30.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM035-1RK172
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 5400 serial: <filter> rev: LCM2 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 114.74 GiB size: 112.38 GiB (97.94%)
    used: 23.21 GiB (20.6%) fs: ext4 dev: /dev/nvme0n1p3 maj-min: 259:3
    label: N/A uuid: bfd89388-ad3a-4e08-9bbe-8efc38b57c48
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
    label: NO_LABEL uuid: 2FCA-C215
  ID-3: /home raw-size: 931.51 GiB size: 915.81 GiB (98.31%)
    used: 481.76 GiB (52.6%) fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: N/A
    uuid: 8036b8b0-1a8f-4260-afba-5452ef061c6c
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 4 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p2 maj-min: 259:2 label: N/A
    uuid: 6fe7a39b-941b-4166-a0d4-e7ae4184cab6
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-3:2 info: MosArt 2.4G Keyboard Mouse type: Keyboard,Mouse
    driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 12 Mb/s
    power: 100mA chip-ID: 062a:4182 class-ID: 0301
  Device-2: 1-6:3 info: Acer Lenovo EasyCamera type: Video driver: uvcvideo
    interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 5986:0672
    class-ID: 0e02 serial: <filter>
  Device-3: 1-11:4 info: Intel Bluetooth wireless interface type: Bluetooth
    driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA
    chip-ID: 8087:0a2a class-ID: e001
  Hub-2: 2-0:1 info: Super-speed hub ports: 8 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 36.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 270 Uptime: 29m wakeups: 1 Init: systemd v: 250 tool: systemctl
  Compilers: gcc: 11.1.0 clang: 13.0.0 Packages: pacman: 1312 lib: 347
  flatpak: 0 Shell: Zsh v: 5.8 running-in: tmux: inxi: 3.3.12

Hmmm,

And please provide the output of:

mhwd --list

And

mhwd --listinstalled
$ mhwd --list
> 0000:09:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2016.04.20                true            PCI


> 0000:01:00.0 (0302:10de:139b) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2021.12.18               false            PCI
          video-nvidia            2021.12.18               false            PCI
    video-nvidia-470xx            2021.12.18               false            PCI
    video-nvidia-390xx            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI


> 0000:00:02.0 (0300:8086:191b) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

$ mhwd --listinstalled
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
     video-modesetting            2020.01.13                true            PCI
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI


Warning: No installed USB configs!

Edit: sorry I used xclip to copy the output at first

@Mirdarthos are you still here?

Not true. You can have both installed, but not both loaded and in use at the same time. Nvidia needs to be loaded explicitly anyway, and if nvidia must be loaded, nouveau has to be blocked.

Well ok… you have an older card… did you try the 470xx driver?
So video-hybrid-intel-nvidia-470xx-prime insttead of video-hybrid-intel-nvidia-prime ?

1 Like

Good to know! Thanks!

I installed the recommended driver using sudo mhwd -auto pci nonfree 0300 command.
At the point of starting this thread, I had installed the video-nvidia driver too and it didn’t work out.

How did you determined that the card is old? just for knowledge

Because it is a 960M, it is old. That’s a fact, and latest Nvidia driver dropped most of the old card support (but still should support 960M card).

510xx still supports your card: Appendix A. Supported NVIDIA GPU Products

Mh… normally you could run the card with:

prime-run glxinfo | grep "OpenGL renderer"
prime-run vulkaninfo

Does this work?

prime-run glxinfo | grep "OpenGL renderer"
/usr/bin/prime-run: line 2: glxinfo: command not found
$ prime-run vulkaninfo
/usr/bin/prime-run: line 2: vulkaninfo: command not found

install mesa-utils and vulkan-tools so you will have the required commands.

1 Like