Cannot install drivers for NVIDIA GeForce GTX 765M

Hello Garuda folks,

first of all I want to apologize for my bad English, but I’m not native speaker so it is possible, that sometimes will be hard for you to understand me and vice versa. But I really believe that we can do it.

So, my problem are NVIDIA drivers on my MSI laptop GE70 2OC\2OD\2OE, and yes, I already read bunch of topics on this (either Garuda forum or others), but none of this helped me. As you can see my system was installed yesterday (because my attempts solved this, let’s say, didn’t end well :sweat_smile:).

I should probably mentioned that I have dualboot. I have two separate (no RAID) 480GB SSD disks one (/sda) with Win 10 and second (/sdc) with Garuda.

Just let you know I had KDE Dr460nized Gaming Edition installed before and for reinstall I choose KDE Dr460nized Edition (no exact reason here).

Here is my garuda-inxi output:

System:
Kernel: 6.1.1-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=7f0119f6-21c7-46a6-93c4-117266d511f9 rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.26.4 tk: Qt v: 5.15.7 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: Micro-Star product: GE70 2OC\2OD\2OE v: REV:1.0
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: Micro-Star model: MS-1757 v: REV:0.B serial: <superuser required>
UEFI: American Megatrends v: E1757IMS.711 date: 08/27/2013
Battery:
ID-1: BAT1 charge: 39.4 Wh (100.0%) condition: 39.4/48.8 Wh (80.6%)
volts: 12.5 min: 11.1 model: MSI PC-VP-BP77 type: Li-ion serial: N/A
status: full
CPU:
Info: model: Intel Core i7-4700MQ bits: 64 type: MT MCP arch: Haswell
gen: core 4 level: v3 note: check built: 2013-15 process: Intel 22nm
family: 6 model-id: 0x3C (60) stepping: 3 microcode: 0x28
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: 1124 high: 3400 min/max: 800/3400 scaling:
driver: intel_cpufreq governor: schedutil cores: 1: 3400 2: 800 3: 800
4: 800 5: 800 6: 798 7: 800 8: 800 bogomips: 38312
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 status: Unknown: No mitigations
Type: retbleed status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: conditional, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel 4th Gen Core Processor Integrated Graphics
vendor: Micro-Star MSI driver: i915 v: kernel arch: Gen-5.75
process: Intel 45nm built: 2010 ports: active: eDP-1 empty: HDMI-A-1,VGA-1
bus-ID: 00:02.0 chip-ID: 8086:0416 class-ID: 0300
Device-2: NVIDIA GK106M [GeForce GTX 765M] vendor: Micro-Star MSI
driver: nouveau v: kernel non-free: series: 470.xx+
status: legacy-active (EOL~2023/24) arch: Kepler code: GKxxx
process: TSMC 28nm built: 2012-18 pcie: gen: 1 speed: 2.5 GT/s lanes: 16
link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 10de:11e2
class-ID: 0302 temp: 38.0 C
Display: x11 server: X.Org v: 21.1.6 with: Xwayland v: 22.1.7
compositor: kwin_x11 driver: X: loaded: modesetting
alternate: fbdev,intel,nouveau,nv,vesa dri: crocus,nouveau 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: Chi Mei Opto 0x1720 built: 2011 res: 1920x1080
hz: 60 dpi: 128 gamma: 1.2 size: 382x215mm (15.04x8.46") diag: 438mm (17.3")
ratio: 16:9 modes: 1920x1080
API: OpenGL v: 4.6 Mesa 22.3.1 renderer: Mesa Intel HD Graphics 4600 (HSW
GT2) direct render: Yes
Audio:
Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio
vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus-ID: 00:03.0
chip-ID: 8086:0c0c class-ID: 0403
Device-2: Intel 8 Series/C220 Series High Definition Audio
vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
chip-ID: 8086:8c20 class-ID: 0403
Sound API: ALSA v: k6.1.1-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.63 running: yes
Network:
Device-1: Qualcomm Atheros Killer E220x Gigabit Ethernet
vendor: Micro-Star MSI driver: alx v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: d000 bus-ID: 04:00.0 chip-ID: 1969:e091 class-ID: 0200
IF: enp4s0 state: down mac: <filter>
Device-2: Realtek RTL8723AE PCIe Wireless Network Adapter
vendor: AzureWave driver: rtl8723ae v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: c000 bus-ID: 05:00.0 chip-ID: 10ec:8723 class-ID: 0280
IF: wlp5s0 state: up mac: <filter>
Bluetooth:
Device-1: IMC Networks Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 3-7:2 chip-ID: 13d3:3394 class-ID: e001 serial: <filter>
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
RAID:
Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
v: 3.0 port: f060 bus-ID: 00:1f.2 chip-ID: 8086:282a rev: N/A class-ID: 0104
Drives:
Local Storage: total: 1.78 TiB used: 8.22 GiB (0.5%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SUV500MS480G
size: 447.13 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 56RI scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital
model: WD10JPVX-22JC3T0 size: 931.51 GiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
rev: 1A01 scheme: MBR
ID-3: /dev/sdc maj-min: 8:32 vendor: Kingston model: SUV500MS480G
size: 447.13 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 56RI scheme: GPT
Partition:
ID-1: / raw-size: 446.83 GiB size: 446.83 GiB (100.00%)
used: 8.22 GiB (1.8%) fs: btrfs dev: /dev/sdc2 maj-min: 8:34
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 608 KiB (0.2%) fs: vfat dev: /dev/sdc1 maj-min: 8:33
ID-3: /home raw-size: 446.83 GiB size: 446.83 GiB (100.00%)
used: 8.22 GiB (1.8%) fs: btrfs dev: /dev/sdc2 maj-min: 8:34
ID-4: /var/log raw-size: 446.83 GiB size: 446.83 GiB (100.00%)
used: 8.22 GiB (1.8%) fs: btrfs dev: /dev/sdc2 maj-min: 8:34
ID-5: /var/tmp raw-size: 446.83 GiB size: 446.83 GiB (100.00%)
used: 8.22 GiB (1.8%) fs: btrfs dev: /dev/sdc2 maj-min: 8:34
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 11.61 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 49.0 C mobo: N/A gpu: nouveau temp: 38.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 228 Uptime: 31m wakeups: 1 Memory: 11.61 GiB
used: 2.57 GiB (22.2%) Init: systemd v: 252 default: graphical
tool: systemctl Compilers: gcc: 12.2.0 Packages: pm: pacman pkgs: 1140
libs: 297 tools: octopi,paru Shell: fish v: 3.5.1 default: Bash v: 5.1.16
running-in: konsole inxi: 3.3.24
Garuda (2.6.12-1):
System install date:     2022-12-24
Last full system update: 2022-12-25 ↻
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       Probably (Run as root to verify)
Snapshots:               Snapper
Failed units:

First I was trying install drivers via built in hardware manager, but this happend:

Starting
> Using config 'video-hybrid-intel-nvidia-390xx-dkms-bumblebee' for device: 0000:00:02.0 (0300:8086:0416) Display controller Intel Corporation 4th Gen Core Processor Integrated Graphics Controller
> Installing video-hybrid-intel-nvidia-390xx-dkms-bumblebee...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/db/pci/graphic_drivers/hybrid-intel-nvidia-390xx-dkms-bumblebee/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
:: Synchronizing package databases...
 garuda downloading...
 core downloading...
 extra downloading...
 community downloading...
 multilib downloading...
 chaotic-aur downloading...
error: target not found: nvidia-390xx-utils
error: target not found: nvidia-390xx-settings
error: target not found: opencl-nvidia-390xx
error: target not found: nvidia-390xx-dkms
error: target not found: nvidia-390xx-dkms
Error: pacman failed!
Error: script failed!

I get that it can’t find these things, but I have no idea how to solve it.

And in hardware manager I can see only this:

I also follow this “manual” before, but it didn’t help me either. I was even trying use command paru -S nvidia-390xx-dkms as mentioned here, but again, nothing happen. I manage install Optimus Manager sudo pacman -S optimus-manager optimus-manager-qt, but at this point it’s for nothing.

So now I’m stuck and have no clue what to do.

And there is another thing I’m not sure about, I came across this topic and it looks like driver 470.xx is way to go but as I mentioned before I’m not sure so I was trying 470.xx and also 390xx before system reinstall .

I’m really confused by these drivers, part of garuda-inxi:

Device-2: NVIDIA GK106M [GeForce GTX 765M] vendor: Micro-Star MSI
driver: nouveau v: kernel non-free: series: 470.xx+

what is suppose to mean? Like that 470.xx drivers are right choice, or :woman_shrugging:?

And finally one really dumb question. One of methods (for me most obvious) how to check if NVIDIA graphics works is via

System settings
About this system

right?

Now I can see there this:

Operating System: Garuda Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.1.1-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4700MQ CPU @ 2.40GHz
Memory: 11.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4600
Manufacturer: Micro-Star International Co., Ltd.
Product Name: GE70 2OC\2OD\2OE
System Version: REV:1.0

I mean until I can see as my graphics processor Mesa Intel® HD Graphics 4600 here, I know for sure that NVIDIA graphics isn’t used.

Sorry for bothering you all with this, but I tried to do many things and nothing work for me, so that’s why I seek help here.

sudo pacman -S nvidia-470xx-dkms nvidia-470xx-utils

Install 470 drivers, reboot and then post output of

nvidia-smi

You will probably see integrated graphics on Plasma even after installing drivers, this is normal.

2 Likes

Hi mrvictory,

and thank you for your help.

Here is nvidia-smi output:

Mon Dec 26 10:23:39 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.161.03   Driver Version: 470.161.03   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| 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  NVIDIA GeForce ...  Off  | 00000000:01:00.0 N/A |                  N/A |
| N/A   46C    P0    N/A /  N/A |      0MiB /  2002MiB |     N/A      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

If I understand this correctly I have now driver 470.161.03 installed, but NVIDIA graphics is Off (so I must somehow turn graphics On? :thinking:).
You know I think I have been in this point before just with another driver (390.154) and also another Linux system.

I don’t get why hardware manager suggests to install 390.xx and not 470.xx? This really confuses me.

Edit:
Well, I tried switch GPU via Optimus Manager.
My nvidia-smi output looks very similar:

Mon Dec 26 11:03:31 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.161.03   Driver Version: 470.161.03   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| 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  NVIDIA GeForce ...  Off  | 00000000:01:00.0 N/A |                  N/A |
| N/A   51C    P0    N/A /  N/A |    442MiB /  2002MiB |     N/A      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

But in About this system I now see this:

Operating System: Garuda Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.1.1-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4700MQ CPU @ 2.40GHz
Memory: 11.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 765M/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: GE70 2OC\2OD\2OE
System Version: REV:1.0

I’m not sure if graphics is really used how can I figure it out?

1 Like

Hi TNE,

thanks for your help.

My output after running this command prime-run glxinfo -B | grep "OpenGL vendor string" is:

OpenGL vendor string: NVIDIA Corporation

so I suppose, this is good and NVIDIA works.

My nvidia-smi output:

Mon Dec 26 12:21:04 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.161.03   Driver Version: 470.161.03   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| 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  NVIDIA GeForce ...  Off  | 00000000:01:00.0 N/A |                  N/A |
| N/A   52C    P0    N/A /  N/A |    497MiB /  2002MiB |     N/A      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

So when I see this

| 00000000:01:00.0 N/A |
|    497MiB /  2002MiB |

NVIDIA graphics is used and I don't have to pay attention this Off thing here

0  NVIDIA GeForce ...  Off 

Use nvtop. You installed drivers and switched to Nvidia only with optimus-manager, there is nothing else to do.

1 Like

Your graphics card is only being used if you start a program you want to use as explained in the wiki article.

What??

The OP said they used Optimıs Manager, I just retold it. I disn’t recommend it. And hey it works :person_shrugging:

Okay,

thanks for help, I probably manage do this in my first installation of Garuda linux (just with 390.xx drivers not 470.xx), but I just expected to see more clearly what graphics my laptop have so when I see this

Graphics Processor: Mesa Intel® HD Graphics 4600

in About the system I automatically assume that NVIDIA isn’t used, like, that drivers aren’t installed and system does not know about second graphics card at all.

By the way, I installed Garuda again, after trying some other distros and this time I didn’t use optimus but follow completely these steps:

  1. run command: sudo pacman -S nvidia-470xx-dkms nvidia-470xx-utils
  2. reboot
  3. run command: prime-run glxgears
  4. run command: prime-run glxinfo -B | grep "OpenGL vendor string"
    (output of this commad for me is: OpenGL vendor string: NVIDIA Corporation)
  5. run command: nvidia-smi

Output of nvidia-smi:

Wed Dec 28 15:47:24 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.161.03   Driver Version: 470.161.03   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| 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  NVIDIA GeForce ...  Off  | 00000000:01:00.0 N/A |                  N/A |
| N/A   49C    P8    N/A /  N/A |      3MiB /  2002MiB |     N/A      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

Yeah, I know, after trying install these drivers so long I just simply mix many things together and completely confused myself.
You know I am new in linux and from Windows I’m not used to deal with such things as it is all automatic. If I want play some game there (or do other graphics intensive stuff) I do not have to think about switching graphics or whatever I just work and these things happens automatically.

Not necessarily. This indicates which GPU drives your display. If you have drivers installed (and you have) you may still see integrated graphics. For example my laptop has a 3050 but About System will show “Mesa Intel UHD Graphics”.
If About system currently shows Nvidia, you don’t need to do anything. If it is Intel, use prime-run to run games with dGPU.
Install prime-run, you run this only once.

sudo pacman -S prime-run

Launch options for Steam games:

prime-run %command%

Start other games from Terminal like this:

prime-run /path/to/executable

On Windows it is automatic thanks to a looooong list of executable names stored in Nvidia driver which is used to determine if a program should use Nvidia graphics :rofl: I still remember troubleshooting Teknoparrot because it isn’t in the list :grin: So semi-automatic, I’d say.
On Linux, Vulkan will auto-pick GPU and OpenGL will use whatever that drives desktop, requiring manual intervention.

Huh,

I tried this, but in my terminal I see: error: target not found: prime-run

:thinking: :woman_shrugging:

Oh, thanks I didn’t knew this, but it makes sense I just never thought about it before.

My mistake, the package name is nvidia-prime

Ah, in this case, I have already installed this, thank you all, for your help. :slightly_smiling_face::bowing_woman: