How to install nvidia graphic driver on asus vivobook max x541nc

**How to install nvidia graphic driver on asus vivobook max x541nc?

**
Hello i’m new OpenSUSE user and i have a question about installing nvidia graphic driver on asus vivobook max x541nc.
i used Manjaro, Arch, and Ubuntu based linux distributions before and on Manjraro and Arch, i had the problem when i install nvidia graphic driver my pc won’t boot, but on
Ubuntu based Distibutions i was able to go to Driver Manager and just install it from there and it works prfectly.
Thats why i need your help to install nvidia driver on OpenSUSE because i dont want to do anything on my own and mess up my Linux Installation.
on Ubuntu based distros after installing nvidia graphic driver, when i open nvidia x settings i have two options nvidia high performance mode and Intel power saving mode.
When i was on Manjaro my friend has told me that i should install optimus drivers because my laptop might be using optimus tehnology but that didnt work i also have to mention that
when i had Windows 10 installed it did automatically detected drivers and installed both Intel and Nvidia so i really don’t know what to do and how to install drivers on OpenSUSE.

Hi, welcome to these forums
Let’s first make sure you indeed have an Optimus configuration. Please show


sudo lspci


viktor@localhost:~> sudo lspci
[sudo] password for root: 
00:00.0 Host bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Host Bridge (rev 0b)
00:00.1 Signal processing controller: Intel Corporation Device 5a8c (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 500 (rev 0b)
00:0e.0 Audio device: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster (rev 0b)
00:0f.0 Communication controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Trusted Execution Engine (rev 0b)
00:12.0 SATA controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SATA AHCI Controller (rev 0b)
00:13.0 PCI bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port A #1 (rev fb)
00:13.1 PCI bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port A #2 (rev fb)
00:14.0 PCI bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port B #1 (rev fb)
00:15.0 USB controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series USB xHCI (rev 0b)
00:16.0 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #1 (rev 0b)
00:17.0 Signal processing controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #5 (rev 0b)
00:1f.0 ISA bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Low Pin Count Interface (rev 0b)
00:1f.1 SMBus: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SMBus Controller (rev 0b)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 07)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
03:00.0 3D controller: NVIDIA Corporation GK107M [GeForce 810M] (rev a1)
03:00.1 Audio device: NVIDIA Corporation GK107 HDMI Audio Controller (rev a1)



i also made also made a post on reddit if that info is sueful
https://www.reddit.com/r/openSUSE/comments/eq6385/how_to_install_nvidia_graphic_driver_on_asus/

Hi and welcome to the openSUSE Forums.
Your laptop seems similar to one I’m using and it is indeed likely that it has an Optimus architecture;(EDIT: your last post while I was typing confirms that).
You should be able to install and use openSUSE out of the box without any Nvidia driver; you can use DRI_PRIME to engage the Nvidia chip through the Nouveau driver installed as default.
Just open a terminal and issue a command like (for instance):

DRI_PRIME=1 glxinfo

to engage the Nvidia chip and

DRI_PRIME=0 glxinfo

to see the same with the Intel integrated graphics.
If that doesn’t suit you, you have two choices depending on what you really need to do via the Nvidia graphics:

I want to play some games on my nvidia gpu, but it uses intel gpu, fps is around 40, on ubuntu based distros i was able to get around 120 with Nvidia gpu
so i want to do same on OpenSUSE because i’m going to use SUSE as my daily driver.

i remember when i did “suddo zypper dup” having to accept this
idk does this means something but it might be useful info to know.


In order to install 'Mesa-dri-nouveau', you must agree to terms of the following
 license agreement:

WARNING: Nouveau DRI/3D driver selected.

This driver is considered experimental and is known to have issues with
applications that use certain 3D acceleration features of modern
NVIDIA hardware.

Symptoms include application crashes or lockups & crashes of your system's
graphical environment. Older Hardware and less demanding applications may work
just fine and do benefit from the Hardware acceleration features this driver
offers over software emulation.

Use of this driver is especially not recommended for use with the KDE Desktop
Environment or Qt-based Applications.

The hardware vendor potentially offers alternative drivers.

Please click "Accept" if you accept the risks that may come with the
installation of this driver. Choose "Cancel"  to prevent installation
of the driver and use software emulation instead.



Not sure about the latest Ubuntu, but a couple of years ago comparable results were available installing SUSE Prime on the same HW.
Please be aware that on Tumbleweed:

  • you need to logout and login again to change the GPU in use when using SUSE Prime (the same was true with Ubuntu if I recall correctly, though);
  • Tumbleweed is a rolling distro with quite frequent kernel updates and this might cause occasional hiccups with Nvidia drivers not updated at the same time.
    So if you are prepared to giving up gaming occasionally, Tumbleweed and SUSE Prime may be a viable solution.
    I would not recommend TW on a “game station” unless you are prepared to tweak your system a few times a year…

[ul]
[li]i got this reddit help from VortexAcherontic[/li]
on reddit but it didnt worked, i did “prime-select nvidia” in terminal it told me to reboot to apply changes and i did. then i did “prime-select” nvidia again to make sure it works and output is shown on this picture: https://i.imgur.com/1cweJYA.png and i tought it works, but when i fire up Minecraft for example it still uses Intel gpu as shown on this picture: https://i.imgur.com/U8Cpp0A.png

  1. Enable the NVidia repository (if not already)

[LIST]
[li]YaST[/li]

[li]Software Repositoreis[/li]

[li]Add[/li]

[li]Community-Repositories[/li]

[li]NVIDIA repository[/li]
[/ul]

[li]Install or Remove software[/li]

[li]install suse-prime (or suse-prime-bbswitch if you want to use power management on your GPU so that it is turned off if it is not used)[/li]

[li]Reboot[/li]
[/LIST]
After this you should be able to switch GPUs by typing either:

prime-select nvidia


or

prime-select intel


There is a KDE widget to toggle GPUs via UI but that one didn’t worked for me right in the past so I avoid it.

Hi
Did you install the nvidia driver? Can you show the output from the following;


uname -a
/sbin/modinfo nvidia |grep filename
/sbin/lspci -nnk | egrep -A3 "VGA|Display|3D"

If your system is up to date (20200116) and running the 5.4.10-1-default, hopefully the nvidia driver is working as it’s only built for the old kernel…

viktor@localhost:~> uname -a
Linux localhost.localdomain 5.4.10-1-default #1 SMP Thu Jan 9 15:45:45 UTC 2020 (556a6fe) x86_64 x86_64 x86_64 GNU/Linux

viktor@localhost:~> /sbin/modinfo nvidia |grep filename
modinfo: ERROR: Module nvidia not found.

viktor@localhost:~> /sbin/lspci -nnk | egrep -A3 "VGA|Display|3D"
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 500 [8086:5a85] (rev 0b)
    Subsystem: ASUSTeK Computer Inc. Device [1043:16a0]
    Kernel driver in use: i915
    Kernel modules: i915
--
03:00.0 3D controller [0302]: NVIDIA Corporation GK107M [GeForce 810M] [10de:0fee] (rev ff)
    Kernel modules: nouveau
03:00.1 Audio device [0403]: NVIDIA Corporation GK107 HDMI Audio Controller [10de:0e1b] (rev ff)
    Kernel driver in use: snd_hda_intel



Hi
So you haven’t installed the nvidia drivers and still using nouveau, I would suggest waiting until the nvidia drivers are updated to match your running kernel…

See here (kmp knumber should match the kernel you have installed);
http://http.download.nvidia.com/opensuse/tumbleweed/x86_64/

Or you can install what you have and see if it rebuilds… I always install the hard way, for me it seems easier…

Your card 810M is only supported on the 04 drivers 390.xx series, at some point you will have fun with that driver on Tumbleweed as the kernel changes, patches might be needed, but that will be down the road…

ok so i download drivers and install from here? http://http.download.nvidia.com/opensuse/tumbleweed/x86_64/

what driver i need to download and how do i know that its updated to match my kernel version?

ask how to get nouveau to use nvidea card instead of intel idk is it possible
cuz im very confused now im also stll learning OpenSUSE.

Hi
No, you add the repository :wink:

Read here: SDB:NVIDIA drivers - openSUSE Wiki

You want the x11-video-nvidiaG04 drivers

oh thank you, i installed nvidia driver
now how do i swotch to it
i also have some error when booting it takes me to command line instead of display manager and when i try to run startx i get error and when i run startx again it actually work and i’m able to use the computer.
sorry if i’m annoying this is the error log from /home/viktor/.local/share/xorg/Xorg.1.log


   165.466] 
X.Org X Server 1.20.6
X Protocol Version 11, Revision 0
   165.466] Build Operating System: openSUSE SUSE LINUX
   165.466] Current Operating System: Linux localhost.localdomain 5.4.10-1-default #1 SMP Thu Jan 9 15:45:45 UTC 2020 (556a6fe) x86_64
   165.466] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.4.10-1-default root=UUID=b1225a82-fa3d-42c6-bd2e-ff16987de897 splash=silent resume=/dev/disk/by-id/ata-KINGSTON_SUV500120G_50026B7682131F67-part3 mitigations=auto quiet
   165.467] Build Date: 29 November 2019  12:00:00PM
   165.467]  
   165.467] Current version of pixman: 0.36.0
   165.467]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
   165.467] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
   165.473] (==) Log file: "/home/viktor/.local/share/xorg/Xorg.1.log", Time: Sat Jan 18 20:08:26 2020
   165.474] (==) Using config directory: "/etc/X11/xorg.conf.d"
   165.474] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
   165.474] (==) ServerLayout "layout"
   165.474] (**) |-->Screen "intel" (0)
   165.474] (**) |   |-->Monitor "<default monitor>"
   165.475] (**) |   |-->Device "intel"
   165.475] (==) No monitor specified for screen "intel".
    Using a default monitor configuration.
   165.475] (==) Automatically adding devices
   165.475] (==) Automatically enabling devices
   165.475] (==) Automatically adding GPU devices
   165.475] (==) Max clients allowed: 256, resource mask: 0x1fffff
   165.475] (WW) The directory "/usr/share/fonts/misc/sgi" does not exist.
   165.475]     Entry deleted from font path.
   165.475] (==) FontPath set to:
    /usr/share/fonts/misc:unscaled,
    /usr/share/fonts/Type1/,
    /usr/share/fonts/100dpi:unscaled,
    /usr/share/fonts/75dpi:unscaled,
    /usr/share/fonts/ghostscript/,
    /usr/share/fonts/cyrillic:unscaled,
    /usr/share/fonts/truetype/,
    built-ins
   165.475] (==) ModulePath set to "/usr/lib64/xorg/modules"
   165.475] (WW) Ignoring unrecognized extension "XFree86-DGA"
   165.475] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
   165.475] (II) Loader magic: 0x55be7ffc9d00
   165.475] (II) Module ABI versions:
   165.475]     X.Org ANSI C Emulation: 0.4
   165.475]     X.Org Video Driver: 24.0
   165.475]     X.Org XInput driver : 24.1
   165.475]     X.Org Server Extension : 10.0
   165.477] (++) using VT number 2

   165.491] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_32
   165.492] (II) xfree86: Adding drm device (/dev/dri/card0)
   165.496] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 11 paused 0
   165.503] (--) PCI:*(0@0:2:0) 8086:5a85:1043:16a0 rev 11, Mem @ 0xa4000000/16777216, 0x80000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
   165.503] (--) PCI: (3@0:0:0) 10de:0fee:1043:137e rev 161, Mem @ 0xa2000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x0000c000/128, BIOS @ 0x????????/524288
   165.503] (II) LoadModule: "glx"
   165.503] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
   165.504] (II) Module glx: vendor="X.Org Foundation"
   165.505]     compiled for 1.20.6, module version = 1.0.0
   165.505]     ABI class: X.Org Server Extension, version 10.0
   165.505] (II) LoadModule: "modesetting"
   165.505] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
   165.505] (II) Module modesetting: vendor="X.Org Foundation"
   165.505]     compiled for 1.20.6, module version = 1.20.6
   165.505]     Module class: X.Org Video Driver
   165.505]     ABI class: X.Org Video Driver, version 24.0
   165.505] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
   165.505] (EE) 
Fatal server error:
   165.505] (EE) xf86OpenConsole: Cannot open virtual console 2 (Permission denied)
   165.505] (EE) 
   165.505] (EE) 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
   165.507] (EE) Please also check the log file at "/home/viktor/.local/share/xorg/Xorg.1.log" for additional information.
   165.507] (EE) 
   165.507] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
   165.507] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
   165.546] (EE) Server terminated with error (1). Closing log file.

Hi
Can you show the lspci and modinto output again?


viktor@localhost:~> /sbin/modinfo nvidia |grep filename
filename:       /lib/modules/5.4.10-1-default/updates/nvidia.ko

viktor@localhost:~>  /sbin/lspci -nnk | egrep -A3 "VGA|Display|3D"
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 500 [8086:5a85] (rev 0b)
    Subsystem: ASUSTeK Computer Inc. Device [1043:16a0]
    Kernel driver in use: i915
    Kernel modules: i915
--
03:00.0 3D controller [0302]: NVIDIA Corporation GK107M [GeForce 810M] [10de:0fee] (rev ff)
    Kernel modules: nouveau, nvidia_drm, nvidia
03:00.1 Audio device [0403]: NVIDIA Corporation GK107 HDMI Audio Controller [10de:0e1b] (rev ff)
    Kernel driver in use: snd_hda_intel

viktor@localhost:~> uname -a
Linux localhost.localdomain 5.4.10-1-default #1 SMP Thu Jan 9 15:45:45 UTC 2020 (556a6fe) x86_64 x86_64 x86_64 GNU/Linux

Hi
So you installed the driver, but it’s not activating… maybe user OrsoBruno can offer advice…

Can you check there is a file in /etc/modprobe.d with nvidia in the name, if so, switch to root user and run the command mkinitrd and reboot.

i have some error when booting it takes me to command line instead of display manager and when i try to run startx i get error and when i run startx again it actually work and i’m able to use the computer.
sorry if i’m annoying this is the error log from

/home/viktor/.local/share/xorg/Xorg.1.log

i also have trouble when i want to open any app gui with sudo command

viktor@localhost:~> sudo mousepad /home/viktor/.local/share/xorg/Xorg.1.log
[sudo] password for root: 
Unable to init server: Could not connect: Connection refused
Cannot open display: 

log from

/home/viktor/.local/share/xorg/Xorg.1.log

how did i get it? i did open it with nano and saved it to the desktop using ctrl+x.

its long so i had to post it on paste.gg: https://paste.gg/p/anonymous/63203a11857c4f6292f6c68dbc159b7d/files/61b37747164a4a7b98de53bf01ba24cd/raw

and also how do i contact OrsoBruno you told me about or if someone know how to switch to nvidia driver, because i did checked in game and it still show intel integrated gpu.

Thank you.

i did checked a

/etc/modprobe.d

and there was a couple of files with nvidia in name
and i did run

mkinitrd

and rebooted.

That log reports the proprietary driver was not used. You can see that from the many lines that say modeset(, which would say nvidia( if it was in use. It didn’t fail to load the nvidia driver. It didn’t even try.

The modesetting DDX in use as a newer technology is preferred to the nouveau DDX and to the intel DDX, and the upstream default, which explains its use. Both the Intel and the NVidia GPUs can use that same DDX. How that interplays with Optimus or Prime I can’t say, as I have no such hardware.

I don’t see anything in the log to explain why the greeter doesn’t appear. What I do know is there is a history of reports of trouble with NVidia’s proprietary drivers used in conjunction with the Plymouth software installed by openSUSE by default. Your next best move might be to try disabling Plymouth. This can be tested by including a kernel command line parameter via the E key at the Grub menu, appended at the end of the line that begins with linu. It will be either noplymouth, plymouth=0 or plymouth.enable=0. I don’t know which, or if all or some pair are equivalent, since I always keep Plymouth uninstalled (and thus can’t experiment), which is what you can do if disabling it works. Alternatively, permanent disabling is done by including whichever parameter worked on the GRUB_CMDLINE_LINUX_DEFAULT= line and regenerating grub.cfg, most easily done using YaST2 Bootloader.