Can't install Nvidia driver

I can’t install Nvidia driver. when i use nvidia-smi, the output

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

I use mhwd -li, the output

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


i skimmed the other posts,find inxi -Fazy output

inxi -Fazy                                                                                                                                                 9 ✘ 
System:
  Kernel: 5.15.71-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=97270df8-756a-4d12-8d51-df7e7bf1804d rw quiet
    udev.log_priority=3
  Desktop: KDE Plasma v: 5.25.5 tk: Qt v: 5.15.6 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 20H5A01ACD v: ThinkPad E570
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20H5A01ACD v: SDK0K09938 WIN
    serial: <superuser required> UEFI: LENOVO v: R0DET33W (1.09 )
    date: 10/13/2016
Battery:
  ID-1: BAT0 charge: 21.2 Wh (100.0%) condition: 21.2/32.0 Wh (66.3%)
    volts: 17.0 min: 15.4 model: SANYO 01AV414 type: Li-ion serial: <filter>
    status: not charging
CPU:
  Info: model: Intel Core i5-7200U bits: 64 type: MT MCP arch: Amber/Kaby Lake
    note: check gen: core 7 level: v3 note: check built: 2017
    process: Intel 14nm family: 6 model-id: 0x8E (142) stepping: 9
    microcode: 0xF0
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 661 high: 700 min/max: 400/3100 scaling:
    driver: intel_pstate governor: powersave cores: 1: 689 2: 700 3: 655 4: 600
    bogomips: 21607
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  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: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: IBRS
  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: IBRS, IBPB: conditional, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel HD Graphics 620 vendor: Lenovo driver: i915 v: kernel
    arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports: active: eDP-1
    empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:5916
    class-ID: 0300
  Device-2: NVIDIA GM107M [GeForce GTX 950M] vendor: Lenovo driver: N/A
    alternate: nouveau, nvidia_drm, nvidia non-free: 515.xx+ status: current (as
    of 2022-10) arch: Maxwell code: GMxxx process: TSMC 28nm built: 2014-19
    pcie: gen: 3 speed: 8 GT/s lanes: 4 link-max: lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:139a class-ID: 0302
  Device-3: Realtek Integrated Camera type: USB driver: uvcvideo
    bus-ID: 1-7:3 chip-ID: 0bda:58db class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: modesetting alternate: fbdev,vesa dri: iris gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: BOE Display 0x06b5 built: 2016 res: 1920x1080
    hz: 60 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: 1920x1080
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 22.1.7
    direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3
    chip-ID: 8086:9d71 class-ID: 0403
  Sound API: ALSA v: k5.15.71-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.58 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: c000 bus-ID: 04:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp4s0 state: down mac: <filter>
  Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
    vendor: Lenovo driver: ath10k_pci v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 bus-ID: 05:00.0 chip-ID: 168c:0042 class-ID: 0280
  IF: wlp5s0 state: up mac: <filter>
Bluetooth:
  Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 1-6:2
    chip-ID: 0cf3:e500 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
Drives:
  Local Storage: total: 585 GiB used: 11.71 GiB (2.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Toshiba model: MQ01ACF050
    size: 465.76 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: 2E scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Lenovo model: SSD SL700 M.2 128G
    size: 119.24 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 61.2 scheme: GPT
Partition:
  ID-1: / raw-size: 118.95 GiB size: 116.52 GiB (97.96%) used: 11.71 GiB
    (10.0%) fs: ext4 dev: /dev/sdb2 maj-min: 8:18
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 312 KiB
    (0.1%) fs: vfat dev: /dev/sdb1 maj-min: 8:17
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 48.0 C pch: 47.0 C mobo: N/A
  Fan Speeds (RPM): fan-1: 0
Info:
  Processes: 194 Uptime: 4m wakeups: 1 Memory: 15.53 GiB used: 1.81 GiB
  (11.7%) Init: systemd v: 251 default: graphical tool: systemctl Compilers:
  gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman pkgs: 1208 libs: 318
  tools: pamac pm: flatpak pkgs: 0 Shell: Zsh v: 5.9 default: Bash v: 5.1.16
  running-in: konsole inxi: 3.3.22

the Gtx950M driver is N/A. I don’t know how to do, who can help me ?Thanks.

It looks like you already have nvidia prime drivers installed. To make a program use the nvidia card you need to launch it with the prime-run command

1 Like

But why nvidia-smi no output?

No there isn’t

1 Like

Because it is launched on the normal GPU. This is expected behavior. Try:

prime-run nvidia-smi
2 Likes

ok,it success。Thank you.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.