can not open "NVIDIA x server setting", how know it work

opensuse 15.3 leap, cinnamon 4.6.7 environment (nemo file manager)
i follow this tutorial

https://en.opensuse.org/SDB:NVIDIA_drivers

thats what iget when run

sudo lspci | grep VGA

and

sudo hwinfo --gfxcard | grep Model

naive2021@localhost:~> sudo lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 620M/630M/635M/640M LE] (rev a1)
naive2021@localhost:~> sudo hwinfo --gfxcard | grep Model
  Model: "nVidia GF108M [GeForce GT 620M/630M/635M/640M LE]"
  Model: "Intel 3rd Gen Core processor Graphics Controller"

so i install x11-video-nvidiaG05 and nvidia-glG05 by using yast, i believe until now i go in correct way.

i feeling there’s problem when can not open “NVIDIA X server setting” in start menu. and can not any way to see NVIDIA card setting. how test if it work correct and how reach it’s setting?

thanks in advance

Hi
AFAIK that card is only supported by G04 series, not G05… If you switch (and reboot), what is the output from;


xrandr --listproviders

the output is

No protocol specified
Providers: number : 1
Provider 0: id: 0x46; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 3; outputs: 4; associated providers: 0; name: modesetting
    output LVDS-1
    output VGA-1
    output HDMI-1
    output DP-1

also the “NVIDIA X server setting” is open but ask for root permission, attached screenshot for popup windows when click “NVIDIA X server setting” from start menu.

forum refuse direct attach image, so the message is " you do not appear to be using the NVIDIA x driver. please edit your x configuration file (just run ‘nvidia-xconfig’ as root), and restart the x server.

when try run this command

 sudo nvidia-xconfig 

the reult is

 Using X configuration file: "/etc/X11/xorg.conf".
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf' 

thanks in advanced

Hi
Is nomodeset used in the grub boot options? Likewise, if you have an /etc/X11/xorg.conf file it’s not needed…

did you mean if nomodeset used in grub so there’s no need for /etc/X11/xorg.conf. did i understand correct?
it first time ear about “nomodeset”, but when i search find to add it i need run this command

sudo nano /etc/default/grub

to edit grub file, so i run this command to see if “nomodeset” add to grub or not. depend on what i see nomodeset did not used in the grup. also i add the result of command in case am understand wrong.

GRUB_DISTRIBUTOR=
GRUB_DEFAULT=saved
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=3
GRUB_CMDLINE_LINUX_DEFAULT="splash=silent resume=/dev/disk/by-uuid/8591fdc4-950                                                                                         >
GRUB_CMDLINE_LINUX="" 

also when run this command

cat /etc/X11/xorg.conf

the result is

 # nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 390.144  (dvs-builder@U64-P10-09)  Wed Jun  2 22:56:57 UTC 2021


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from data in "/etc/sysconfig/mouse"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "IMPS/2"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "yes"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


Hi
Ok, no nomodeset :slight_smile: So can you move that xorg.conf file out of the directory (or rename so it won’t be used) it should not be required.

Can you also check the nvidia driver is loaded;


/sbin/lspci -nnk | egrep -A3 "VGA|Display|3D"

The reboot and see if the card shows up in the xrandr output.

1- i go to /etc/X11 directory, it continue

(xdm, xim.d, xinit, xorg.conf.d, xorg_pci_ids) folders + (xim, Xmodmap.remote, xorg.conf.install, xorg.conf.backup, xorg.conf.nvidia-xconfig-original, xorg.conf, Xmodmap, Xresources) files. 

so i

change xorg.conf to xorg.conf.backup1

2- before and after change i run your code


/sbin/lspci -nnk | egrep -A3 "VGA|Display|3D"

it give me same results

 
before
> /sbin/lspci -nnk | egrep -A3 "VGA|Display|3D"
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
    Subsystem: Lenovo Device [17aa:3977]
    Kernel driver in use: i915
    Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108M [GeForce GT 620M/630M/635M/640M LE] [10de:0de9] (rev a1)
    Subsystem: Lenovo Device [17aa:3902]
    Kernel modules: nouveau
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 05)

after

00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
    Subsystem: Lenovo Device [17aa:3977]
    Kernel driver in use: i915
    Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108M [GeForce GT 620M/630M/635M/640M LE] [10de:0de9] (rev a1)
    Subsystem: Lenovo Device [17aa:3902]
    Kernel modules: nouveau
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 05)


3- i do not know how check the nvidia driver is loaded, but when search find this command

lsmod | grep nvidia 
it did not show any result, try it with and without sudo

is there’s any chance the user permission (group connect to this problem). when open yast, user and group administration (there’s one user, my account), when chose edit it and go to details tab (find i “my account” only part from users group(default group), but did not belong to any other group (addional groups). i aleardy create another therd as i can not use open as root from Context Menu, doesn’t work (nemo file manager) in another partion in fourm.

Hi
So you installed the rpms?


zypper se -si nvidia

Did you reboot?

Also did the initrd rebuild and blacklist the nouveau driver?

1- to remove G05 series and install G04 series, i open yast software management then search for NVIDIA and start remove G05 series driver elements. yast give me broken alert when try remove some elements (dependency alert, as i try remove one element in time). one from those elements yast say it will remove it and all G05 series and then will replace them by G04 series driver. so i hit enter and yast do every thing.

2- yes i reboot after every installation.

3-

your code zypper se -si nvidia result is 
zypper se -si nvidia
Loading repository data...
Reading installed packages...

S  | Name                      | Type    | Version                       | Arch   | Repository
---+---------------------------+---------+-------------------------------+--------+------------------------
i+ | kernel-firmware-nvidia    | package | 20210208-2.4                  | noarch | Main Repository
i+ | nvidia-computeG04         | package | 390.144-lp153.25.1            | x86_64 | nVidia Graphics Drivers
i  | nvidia-gfxG04-kmp-default | package | 390.144_k5.3.18_57-lp153.25.1 | x86_64 | nVidia Graphics Drivers
i  | nvidia-glG04              | package | 390.144-lp153.25.1            | x86_64 | nVidia Graphics Drivers
i  | x11-video-nvidiaG04       | package | 390.144-lp153.25.1            | x86_64 | nVidia Graphics Drivers


4- also first time hear about “nouveau”, do not know how check if “initrd rebuild”.

but when search inside yast software manager find next package installed
libdrm_nouveau2

libvdpau_nouveau

xf86-video-nouveau

in same time find "Mesa-dri-nouveau" package flagged with taboo never install (by other words it not installed)


5- in yast software manager find those package “not installed”, i believe they can solve the problem. what your opinion, did i need to install them or one of them?


| nvidia-gfxG04-kmp-preempt - NVIDIA graphics driver kernel module for GeForce 400 series and newer
|
|


 This package provides the closed-source NVIDIA graphics driver kernel module for GeForce 400 series and newer GPUs.



 | libXNVCtrl0 - NVidia Control Library
|
|


 Library for configuring the NVIDIA Linux graphics driver. It operates by communicating with the NVIDIA X driver, querying and updating state as appropriate. This communication is done with the NV-CONTROL X extension.



 | libXNVCtrl - NVidia Control Library
|
|


 Library for configuring the NVIDIA Linux graphics driver. It operates by communicating with the NVIDIA X driver, querying and updating state as appropriate. This communication is done with the NV-CONTROL X extension.



 | ffnvcodec-devel - FFmpeg version of NVIDIA codec API headers
|
|


 This package contains the headers required for FFmpeg to interface with NVIDIA codec APIs.



| bumblebee - NVidia Optimus support for GNU/Linux aimed at stability
|
|


 Bumblebee daemon is a rewrite of the original Bumblebee service, providing an elegant and stable means of managing Optimus hybrid graphics chipsets. A primary goal of this project is to not only enable use of the discrete GPU for rendering, but also to enable smart power management of the dGPU when it's not in use.



 | nvdock - Tray icon for launching NVIDIA Settings
|

|


 Little NVIDIA tray icon. Hover over it and it will tell you your GPU temperature if your card is into that kind of thing. A double click will launch the NVIDIA settings control panel, and right click will bring up a nifty menu with a few options. Also on the menu it will show the NVIDIA driver version, which is surely to come in handy at least one time in your life. 
 
| xf86-video-nv - NVIDIA video driver for the Xorg X server
|

|


nv is an Xorg driver for NVIDIA video cards.
The driver supports 2D acceleration and provides support for the following framebuffer depths: 8, 15, 16 (except Riva128) and 24. All visual types are supported for depth 8, TrueColor and DirectColor visuals are supported for the other depths with the exception of the Riva128 which only supports TrueColor in the higher depths. 

Hi
You have the correct drivers installed, can you show the output from;


/sbin/lspci -nnk | egrep -A3 "VGA|Display|3D"
uname -a

 /sbin/lspci -nnk | egrep -A3 "VGA|Display|3D"
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
    Subsystem: Lenovo Device [17aa:3977]
    Kernel driver in use: i915
    Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108M [GeForce GT 620M/630M/635M/640M LE] [10de:0de9] (rev a1)
    Subsystem: Lenovo Device [17aa:3902]
    Kernel modules: nouveau
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 05)


uname -a
Linux localhost.localdomain 5.3.18-59.27-preempt #1 SMP PREEMPT Tue Oct 5 10:00:40 UTC 2021 (7df2404) x86_64 x86_64 x86_64 GNU/Linux


just try think with you, depend on first command “nouveau” take control over NVIDIA card. when i search in yast using “nouveau word” find three packages installed

(  libdrm_nouveau2, libvdpau_nouveau, xf86-video-nouveau)  

there’s any chance remove them will solve the problem.

Hi
Just remove the x86 nouveau one, also at the command line, can you rebuild the initrd as root user via;


mkinitrd

Reboot and see how that goes.

1- i remove “xf86-video-nouveau”, using yast.
2- open the terminal, write “su” hit enter then enter my password to be root. then run the command “mkinitrd”.
3- ctrl+d to out from root, then run “sudo reboot” to reboot.
4- after reboot run your command “/sbin/lspci -nnk | egrep -A3 “VGA|Display|3D””, give same result.

00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
    Subsystem: Lenovo Device [17aa:3977]
    Kernel driver in use: i915
    Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108M [GeForce GT 620M/630M/635M/640M LE] [10de:0de9] (rev a1)
    Subsystem: Lenovo Device [17aa:3902]
    Kernel modules: nouveau
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 05)


from i understand we need disable “nouveau”. so i search and find next way (it did not work), but maybe give some hint. it was for ubuntu so i edit command to match opensuse




  1. remove all nvidia packages ,skip this if your system is fresh installed 

  sudo zypper remove nvidia* 
  1. install some packages for build kernel:

  use yast again 
  1. now block and disable nouveau kernel driver:
  sudo nano /etc/modprobe.d/blacklist.conf 


  Insert follow lines to the blacklist.conf:
  blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
  save and exit.
  


  1. Disable the Kernel nouveau by typing the following commands(nouveau-kms.conf may not exist,it is ok):
  echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf 
  1. build the new kernel by:
  sudo update-initramfs -u 
  1. reboot 



did i need addnext package to blacklist.conf and block them also
libvdpau_nouveau
libdrm_nouveau2

Hi
No the other two packages are fine, your lspci output show the nouveau module is present (and blacklisted) likewise since it shows kernel modules, but not kernel drivers in use for the nvidia device (see the intel output) then for whatever reason the nvidia module is not loaded.

See the output from my Leap 15.3 setup (only running as a server, multi-user.target…)


lspci -nnk | egrep -A3 "VGA|Display|3D"00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller [8086:0152] (rev 09)
    Subsystem: Intel Corporation Device [8086:2035]
    Kernel driver in use: i915
    Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK208B [GeForce GT 710] [10de:128b] (rev a1)
    Subsystem: ZOTAC International (MCO) Ltd. Device [19da:6326]
    Kernel driver in use: nouveau
    Kernel modules: nouveau

I haven’t bothered with drivers, nor do I use the rpms, I prefer the hard way with the run file…

Can you check for an Xorg log file in either /var/log/Xorg.0.log or ~/.local/share/xorg/Xorg.0.log and inspect this file for nvidia issues.

find it in /var/log/Xorg.0.log, and i will send it.
what is hard way with the run file, is there’s any video article or documents show how do it. so i can try it, maybe work.

really thanks for your efforts

Sorry to interfere. Wouldn’t this be the reason?

uname -a Linux localhost.localdomain 5.3.18-59.27-**preempt** #1 SMP PREEMPT Tue Oct 5 10:00:40 UTC 2021 (7df2404) x86_64 x86_64 x86_64 GNU/Linux
zypper se -si nvidia
Loading repository data...
Reading installed packages...

S | Name | Type | Version | Arch | Repository
—±--------------------------±--------±------------------------------±-------±-----------------------
i+ | kernel-firmware-nvidia | package | 20210208-2.4 | noarch | Main Repository
i+ | nvidia-computeG04 | package | 390.144-lp153.25.1 | x86_64 | nVidia Graphics Drivers
i | nvidia-gfxG04-kmp-default | package | 390.144_k5.3.18_57-lp153.25.1 | x86_64 | nVidia Graphics Drivers
i | nvidia-glG04 | package | 390.144-lp153.25.1 | x86_64 | nVidia Graphics Drivers
i | x11-video-nvidiaG04 | package | 390.144-lp153.25.1 | x86_64 | nVidia Graphics Drivers

Kernel is preempt while nvidia module is default. There’s several threads about the preempt kernel being pulled unrequestedly.
IMHO it might make sense to change the kernel back to default - or at least change the nvidia module to nvidia-gfxG04-kmp-preempt. Wouldn’t it?

Hi
Dang missed that, yes for sure the issue…

@malcolmlewis

manys thanks for you both.

i use yast to uninstall the "nvidia-gfxG04-kmp-**default" **and then install "nvidia-gfxG04-kmp-**preempt**". then run sudo mkinitrd and after finish i reboot.

and that’s the results after reboot

/sbin/lspci -nnk | egrep -A3 "VGA|Display|3D"
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
    Subsystem: Lenovo Device [17aa:3977]
    Kernel driver in use: i915
    Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108M [GeForce GT 620M/630M/635M/640M LE] [10de:0de9] (rev a1)
    Subsystem: Lenovo Device [17aa:3902]
    Kernel driver in use: nvidia
    Kernel modules: nouveau, nvidia_drm, nvidia
________________________________________________________________________________________________________

 ~> zypper se -si nvidia
Loading repository data...
Reading installed packages...

S  | Name                      | Type    | Version                       | Arch   | Repository
---+---------------------------+---------+-------------------------------+--------+------------------------
i+ | kernel-firmware-nvidia    | package | 20210208-2.4                  | noarch | Main Repository
i  | nvidia-computeG04         | package | 390.144-lp153.25.1            | x86_64 | nVidia Graphics Drivers
i+ | nvidia-gfxG04-kmp-preempt | package | 390.144_k5.3.18_57-lp153.25.1 | x86_64 | nVidia Graphics Drivers
i  | nvidia-glG04              | package | 390.144-lp153.25.1            | x86_64 | nVidia Graphics Drivers
i+ | x11-video-nvidiaG04       | package | 390.144-lp153.25.1            | x86_64 | nVidia Graphics Drivers

________________________________________________________________________________________________________________

 ~> uname -a
Linux localhost.localdomain 5.3.18-59.27-preempt #1 SMP PREEMPT Tue Oct 5 10:00:40 UTC 2021 (7df2404) x86_64 x86_64 x86_64 GNU/Linux


1- depend on what i understand that what we need it: Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia

2- but still when try open nvidia x server setting from start menu give me message say

you do not appear be using the nividia x driver. please edit your x configeration file(just run 'nvidia-xconfig' as root). and restart the x server.


3- when i go to terminal i run


sudo nvidia-xconfig
[sudo] password for root: 

WARNING: Unable to locate/open X configuration file.

Package xorg-server was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-server.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xorg-server' found
New X configuration file written to '/etc/X11/xorg.conf'

 ~> sudo nvidia-xconfig

Using X configuration file: "/etc/X11/xorg.conf".
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'
 

note: how can i restart the x server? also after install open suse i run "sudo zypper patch, sudo zypper verify (i know it for dependency), sudo zypper ref && sudo zypper up (refresh and update). is any command of them who upgrade or change the kernal?