How to install NVIDIA driver? (nvidia-settings doesnt open)

Hello everyone, Manjaro newbie here.
I used Linux Mint for 6 months now I want to switch to Manjaro but I have a problem;

I tried to install the Nvidia driver but couldn't manage to open nvidia-settings.
It says about an error in the configuration file. I tried somethings but failed.
So I decided to learn the correct way, I need your help.
I re-installed the Manjaro. I wanted to start from a clear page.

What is the best way to install Nvidia drivers?

inxi -F

System:    Host: PC Kernel: 5.6.15-1-MANJARO x86_64 bits: 64 Desktop: KDE Plasma 5.18.5 Distro: Manjaro Linux 
Machine:   Type: Laptop System: Micro-Star product: GE60 0NC\0ND v: REV:1.0 serial: <root required> 
           Mobo: Micro-Star model: MS-16GA v: REV:1.0 serial: <root required> UEFI: American Megatrends v: E16GAIMS.514 
           date: 03/12/2013 
CPU:       Topology: Quad Core model: Intel Core i7-3630QM bits: 64 type: MT MCP L2 cache: 6144 KiB 
           Speed: 2391 MHz min/max: 1200/2400 MHz Core speeds (MHz): 1: 2100 2: 2395 3: 2391 4: 2395 5: 2270 6: 2395 
           7: 2196 8: 2326 
Graphics:  Device-1: Intel 3rd Gen Core processor Graphics driver: i915 v: kernel 
           Device-2: NVIDIA GK107M [GeForce GTX 660M] driver: nouveau v: kernel 
           Display: x11 server: X.Org 1.20.8 driver: intel,nouveau unloaded: modesetting tty: N/A 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2) v: 4.2 Mesa 20.0.7 
Audio:     Device-1: Intel 7 Series/C216 Family High Definition Audio driver: snd_hda_intel 
           Sound Server: ALSA v: k5.6.15-1-MANJARO 
Network:   Device-1: Qualcomm Atheros Killer E220x Gigabit Ethernet driver: alx 
           IF: enp3s0 state: down mac: 54:21:b2:c1:2f:45 
           Device-2: Intel Centrino Wireless-N 135 driver: iwlwifi 
           IF: wlp5s0 state: up mac: 2f:c3:21:2e:f1:62 
Drives:    Local Storage: total: 817.88 GiB used: 9.04 GiB (1.1%) 
           ID-1: /dev/sda vendor: Western Digital model: WD7500BPKT-22PK4T0 size: 698.64 GiB 
           ID-2: /dev/sdb vendor: SanDisk model: SD5SF2128G size: 119.24 GiB 
Partition: ID-1: / size: 50.86 GiB used: 9.04 GiB (17.8%) fs: ext4 dev: /dev/sdb3 
Sensors:   System Temperatures: cpu: 57.0 C mobo: N/A gpu: nouveau temp: 57 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 237 Uptime: 42m Memory: 7.67 GiB used: 2.39 GiB (31.2%) Shell: bash inxi: 3.0.37

output of mhwd

> 0000:01:00.0 (0300:10de:0fd4) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-418xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-340xx-bumblebee            2019.10.25               false            PCI
    video-nvidia-418xx            2019.10.25               false            PCI
    video-nvidia-390xx            2019.10.25               false            PCI
    video-nvidia-340xx            2019.10.25               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:00:02.0 (0300:8086:0166) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-418xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-340xx-bumblebee            2019.10.25               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

Hello,

this are the known options. chose one that suits your workflow better


For your case, the Optimus-Switch i think will be best.

Thanks for the reply.

It looks right. As I remember, linux mint uses optimus-switch too because I had to reboot to switch between intel-nvidia.

But I don't know how to install it.
How can I install optimus-switch?

by the way, mhwd -li output:

Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!

Device-1: Intel 3rd Gen Core processor Graphics driver: i915 v: kernel
Device-2: NVIDIA GK107M [GeForce GTX 660M] driver: nouveau v: kernel

Follow:

sudo mhwd -f -r pci video-linux
sudo mhwd -f -i pci video-hybrid-intel-nvidia-390xx-bumblebee

Add self to bumblebee group:

sudo gpasswd -a $USER bumblebee

REBOOT.

Last thing:
if you want properly launch NV Settings Manager:

Create new file in your text editor AS NORMAL USER

~/.local/share/applications/nvidia-settings.desktop
place in code

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=NVIDIA X Server Settings
Comment=Configure NVIDIA X Server Settings
Exec=optirun -b none nvidia-settings -c :8
Icon=/usr/share/doc/nvidia/nvidia-settings.png
Categories=Settings;HardwareSettings;

Rebuild cache:

update-desktop-database ~/.local/share/applications

Launch NVIDIA Settings from App Menu Launcher as usal.

1 Like

Thanks for the reply but I don't want to install bumblebee because of:

bumblebee (render offload)

-- performance not great (some overhad)
*(from arch wiki below: "Bumblebee not only has significant performance issues[1]

I think optimus-switch is better for me.
If you agree with this, can you help me to install this?

Your devices does not support this (prime offload).
But if you want PRIME legacy >

Oh you're right, there isn't any prime driver in the list.
So, Should I install bumblebee instead?

Or, I can install video-nvidia-390xx for fulltime?
Switching isn't much important because I use my laptop with cable, not it's battery.

Which one is painless for me,

  • video-nvidia-390xx
    or
  • video-hybrid-intel-nvidia-390xx-bumblebee ?
    (I can install 418xx if it is better)

output of mhwd:

> 0000:01:00.0 (0300:10de:0fd4) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-418xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-340xx-bumblebee            2019.10.25               false            PCI
    video-nvidia-418xx            2019.10.25               false            PCI
    video-nvidia-390xx            2019.10.25               false            PCI
    video-nvidia-340xx            2019.10.25               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:00:02.0 (0300:8086:0166) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-418xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-340xx-bumblebee            2019.10.25               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


I wrote properly guide for Your device in first reply. Follow it.

Thank you so much sir.
It was perfect tutorial.

I will edit this message when try it in a game, I'm downloading right now.

https://support.steampowered.com/kb_article.php?ref=6316-GJKC-7437

.I read the article, tried "primusrun glxspheres" but output is:
bash: primusrun: command not found

I think it isn't available for me.

Tried a game (Dont Starve Together), fps is enough (59.7) but there are so much screen tearing :confused:

I think I installed but it isn't using in rightnow.
As I said:
"Or, I can install video-nvidia-390xx for fulltime?
Switching isn't much important because I use my laptop with cable, not it's battery."

Install primus package for that.

-facepalm-
sorry.

Installed and tried:

[user@PC ~]$ primusrun glxspheres
/usr/bin/primusrun: line 43: exec: glxspheres: not found

Then tried second one:

[user@PC ~]$ primusrun steam
Running Steam on manjarolinux 20.0.3 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Steam client's requirements are satisfied
/home/user/.local/share/Steam/ubuntu12_32/steam
[2020-06-11 17:39:41] Startup - updater built Jun  4 2020 05:50:42
Installing breakpad exception handler for appid(steam)/version(1591251555)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
Installing breakpad exception handler for appid(steam)/version(1591251555)
[2020-06-11 17:39:41] Checking for update on startup
[2020-06-11 17:39:41] Checking for available updates...
[2020-06-11 17:39:41] Downloading manifest: client-download.steampowered.com/client/steam_client_ubuntu12
Installing breakpad exception handler for appid(steam)/version(1591251555)
[2020-06-11 17:39:42] Download skipped: /client/steam_client_ubuntu12 version 1591251555, installed version 1591251555
[2020-06-11 17:39:42] Nothing to do
[2020-06-11 17:39:42] Verifying installation...
[2020-06-11 17:39:42] Performing checksum verification of executable files
[2020-06-11 17:39:42] Verification complete
Failed to load steamui.so - dlerror(): /usr/lib32/primus/libGL.so.1: undefined symbol: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEjjPKcj, version GLIBCXX_3.4.21
[2020-06-11 17:39:45] Shutdown
Installing breakpad exception handler for appid(steam)/version(1591251555)
Installing breakpad exception handler for appid(steam)/version(1591251555)

And finally, tried edit the game's launch options with " primusrun %command%"
Game started with Nvidia driver (because my laptop's turbo led was on)

But still there is so much screen tearing.
I don't know why :confused:

Cause now is

glxspheres64

from virtualgl package.

Oh, my facepalm v2..
Now I understood what it does.

[user@PC ~]$ primusrun glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
GLX FB config ID of window: 0x10d (8/8/8/0)
Visual ID of window: 0xe2
Context is Direct
OpenGL Renderer: GeForce GTX 660M/PCIe/SSE2
61.713576 frames/sec - 68.872351 Mpixels/sec
60.019322 frames/sec - 66.981564 Mpixels/sec
60.190473 frames/sec - 67.172568 Mpixels/sec
59.957767 frames/sec - 66.912868 Mpixels/sec
60.042329 frames/sec - 67.007239 Mpixels/sec

Thank you so much sir.
The last thing, can I do something for tearing in games?
It is bothering even fps is enough.
I didn't remember any tearing in Linux Mint (I will test mint and will edit this post)

edit: Yes, controlled, it is smooth. I saw PRIME Profile tab in mint's nvidia-settings. I don't know how to integrate it to manjaro

@jonathon could you assist?

Sorry if I'm taking your time but I realized something:

[user@PC ~]$ glxspheres64 
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
GLX FB config ID of window: 0x79 (8/8/8/0)
Visual ID of window: 0xe2
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2)
60.660635 frames/sec - 67.697268 Mpixels/sec
59.940164 frames/sec - 66.893223 Mpixels/sec
59.967495 frames/sec - 66.923724 Mpixels/sec
59.967895 frames/sec - 66.924171 Mpixels/sec
59.944433 frames/sec - 66.897987 Mpixels/sec
^C

[user@PC ~]$ primusrun glxspheres64 
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
GLX FB config ID of window: 0x10d (8/8/8/0)
Visual ID of window: 0xe2
Context is Direct
OpenGL Renderer: GeForce GTX 660M/PCIe/SSE2
61.724211 frames/sec - 68.884220 Mpixels/sec
59.981552 frames/sec - 66.939412 Mpixels/sec
59.966652 frames/sec - 66.922783 Mpixels/sec
59.970053 frames/sec - 66.926579 Mpixels/sec
59.946004 frames/sec - 66.899740 Mpixels/sec
^C

[user@PC ~]$ optirun glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
GLX FB config ID of window: 0x10d (8/8/8/0)
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GTX 660M/PCIe/SSE2
149.760183 frames/sec - 167.132365 Mpixels/sec
154.275170 frames/sec - 172.171089 Mpixels/sec
154.931184 frames/sec - 172.903202 Mpixels/sec
157.947769 frames/sec - 176.269710 Mpixels/sec
157.889177 frames/sec - 176.204321 Mpixels/sec
^C[ 1397.980799] [WARN]Received Interrupt signal.

"primusrun glxspheres64"
is same with normal "glxspheres64".
But optirun is different

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

Forum kindly sponsored by