Using nvidia-inst

Hi,

I am trying to follow the guide at https://discovery.endeavouros.com/nvidia/new-nvidia-driver-installer-nvidia-inst/2022/03/ to install nvidia drivers with prime on my laptop. My laptop has Intel HD 4600 and Nvidia 750M graphic cards.

I found that 390 series drivers were supported:

$ nvidia-inst --drivers
NVIDIA card id: 0fe4
Series 510: not supported
Series 470: not supported
Series 390: supported

More info: https://www.nvidia.com/en-us/drivers/unix

I used the following command to install the drivers, but I received an error:

$ nvidia-inst --prime --legacyrepo
2022-04-10 15:11:21: Note: Setting up repository [kernel-lts].
2022-04-10 15:11:21: Note: This repo provides legacy Nvidia drivers and LTS kernels.
2022-04-10 15:11:21: Note: More info: https://wiki.archlinux.org/title/Unofficial_user_repositories#kernel-lts
2022-04-10 15:11:21: Note: ==> Will also update all packages (pacman -Syu) <== !!
/usr/bin/nvidia-inst: line 366: cat /home/sharazali/.nvidia-inst.LR0T3 >> /etc/pacman.conf; pacman-key --keyserver hkps://keyserver.ubuntu.com --recv-keys 76C6E477042BFE985CC220BD9C08A255442FAFF0; pacman-key --lsign-key 76C6E477042BFE985CC220BD9C08A255442FAFF0; pacman -Syu: No such file or directory
2022-04-10 15:11:21: Error: Setting up repository [kernel-lts] failed.

I wanted to ask if I am using the right commands in this case or have I made a mistake somewhere? Here is my system information:

$ inxi -Fx
System:
  Host: Lenovo-Y510P Kernel: 5.15.33-1-lts arch: x86_64 bits: 64
    compiler: gcc v: 11.2.0 Desktop: GNOME v: 42.0 Distro: EndeavourOS
    base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 20217 v: Lenovo IdeaPad Y510P
    serial: <superuser required>
  Mobo: LENOVO model: VIQY0Y1 v: 31900004STD serial: <superuser required>
    UEFI: LENOVO v: 74CN47WW(V3.08) date: 1/30/2015
Battery:
  ID-1: BAT1 charge: 46.3 Wh (100.0%) condition: 46.3/56.4 Wh (82.1%)
    volts: 12.2 min: 10.8 model: LENOVO PABAS0241231 status: full
CPU:
  Info: quad core model: Intel Core i7-4700MQ bits: 64 type: MT MCP
    arch: Haswell rev: 3 cache: L1: 256 KiB L2: 1024 KiB L3: 6 MiB
  Speed (MHz): avg: 2257 high: 2398 min/max: 800/3400 cores: 1: 1924
    2: 2007 3: 2393 4: 2396 5: 2395 6: 2154 7: 2395 8: 2398 bogomips: 38311
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel 4th Gen Core Processor Integrated Graphics vendor: Lenovo
    driver: i915 v: kernel bus-ID: 00:02.0
  Device-2: NVIDIA GK107M [GeForce GT 750M] vendor: Lenovo driver: nouveau
    v: kernel bus-ID: 01:00.0
  Device-3: Syntek Lenovo EasyCamera type: USB driver: uvcvideo
    bus-ID: 3-1:2
  Display: x11 server: X.Org v: 1.21.1.3 with: Xwayland v: 22.1.1 driver:
    X: loaded: intel,modesetting gpu: i915 resolution: 1366x768~60Hz
  OpenGL: renderer: Mesa Intel HD Graphics 4600 (HSW GT2)
    v: 4.6 Mesa 22.0.1 direct render: Yes
Audio:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio
    vendor: Lenovo driver: snd_hda_intel v: kernel bus-ID: 00:03.0
  Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
  Device-3: NVIDIA GK107 HDMI Audio driver: snd_hda_intel v: kernel
    bus-ID: 01:00.1
  Sound Server-1: ALSA v: k5.15.33-1-lts running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.49 running: yes
Network:
  Device-1: Qualcomm Atheros QCA8171 Gigabit Ethernet vendor: Lenovo
    driver: alx v: kernel port: 3000 bus-ID: 07:00.0
  IF: enp7s0 state: up speed: 100 Mbps duplex: full mac: 28:d2:44:39:a3:d4
  Device-2: Intel Centrino Wireless-N 2230 driver: iwlwifi v: kernel
    bus-ID: 08:00.0
  IF: wlan0 state: up mac: 00:c2:c6:11:08:1e
Bluetooth:
  Device-1: Intel Centrino Bluetooth Wireless Transceiver type: USB
    driver: btusb v: 0.8 bus-ID: 3-7:5
  Report: rfkill ID: hci0 rfk-id: 3 state: down bt-service: disabled
    rfk-block: hardware: no software: yes address: see --recommends
Drives:
  Local Storage: total: 1.35 TiB used: 182.39 GiB (13.2%)
  ID-1: /dev/sda vendor: Seagate model: ST1000LM014-1EJ164 size: 931.51 GiB
  ID-2: /dev/sdb vendor: PNY model: CS900 480GB SSD size: 447.13 GiB
Partition:
  ID-1: / size: 438.75 GiB used: 182.39 GiB (41.6%) fs: ext4 dev: /dev/sdb2
  ID-2: /boot/efi size: 299.4 MiB used: 296 KiB (0.1%) fs: vfat
    dev: /dev/sdb1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 43.0 C mobo: N/A gpu: nouveau temp: 39.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 227 Uptime: 23m Memory: 15.54 GiB used: 1.61 GiB (10.3%)
  Init: systemd Compilers: gcc: 11.2.0 clang: 13.0.1 Packages: 1233
  Shell: Bash v: 5.1.16 inxi: 3.3.15

Thank you.

1 Like

Thanks for the report! :+1:
I’ll check it now.

Thanks again, also for the detailed report! :+1:

There was a bug with the code for option --legacyrepo.
New release 1.0.3-1 of nvidia-inst should fix it.

By the way, option --legacyrepo is meant to be used alone, the other options on the same command line will be simply ignored.

After the legacy repo is set up, then you can use nvidia-inst with other options.

2 Likes

yes i have used it all the time natural like that … first run with --legacyrepo to add the repo and rerun to install drivers…

Thank you for the swift response! I updated nvidia-inst and ran nvidia-inst --legacyrepo and now it worked just fine. I will try nvidia-inst --prime now and check.

1 Like

nvidia-inst --prime is also installed now. Just a quick followup question, how do I switch between intel and nvidia graphics? Using sudo set-nvidia.sh or sudo set-intel.sh did not work for me.

There are many ways you can setup your optimus machine, and one of them is prime which is meant for newer machines. Bumblebee is meant for older machines. Looks like Nvidia 390 driver does not support prime (https://wiki.archlinux.org/title/PRIME#PRIME_render_offload).
Prime should work with program prime-run, e.g.
prime-run <program-name>

You could read some articles like here, here, here, and here and see which one suits your hardware best.

Note that nvidia-inst does not support all of them.

1 Like

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