Issue with Nvidia drivers

I have GTX 550 Ti video card and a Ryzen 5 5600X CPU.
When I installed tumbleweed everything is working fine. I am working on a 1080p monitor.

I then installed nvidia drivers following https://en.opensuse.org/SDB:NVIDIA_drivers
I installed

x11-video-nvidiaG04, nvidia-glG05

as instructed.

After installing when I restart, I do not see the standard login screen. Instead I get the text based login.
After entering my credentials

startx

gives me an error and

 sudo startx 

starts the graphical session for me.
But instead of the 1080p resolution it starts 1280*720 with 16:9 and there is no option to change it.

I am able to use snapper to revert back to a snapshot before installing nvidia drivers and the problem goes away. So, I am guessing there is some issue with the nvidia drivers.

Here is my Xorg.0.log


[LEFT]    97.422] 
X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
    97.432] Build Operating System: openSUSE SUSE LINUX
    97.435] Current Operating System: Linux localhost.localdomain 5.14.1-1-default #1 SMP Sat Sep 4 08:22:51 UTC 2021 (67af907) x86_64
    97.435] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.14.1-1-default root=UUID=25c11210-fd16-444f-8a4e-c30c8a732002 splash=silent mitigations=auto quiet
    97.445] Build Date: 30 July 2021  12:00:00AM
    97.448]  
    97.451] Current version of pixman: 0.40.0
    97.458]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    97.458] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    97.471] (==) Log file: "/home/shom/.local/share/xorg/Xorg.0.log", Time: Mon Sep 13 03:51:13 2021
    97.475] (==) Using config directory: "/etc/X11/xorg.conf.d"
    97.478] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    97.478] (==) No Layout section.  Using the first Screen section.
    97.478] (==) No screen section available. Using defaults.
    97.478] (**) |-->Screen "Default Screen Section" (0)
    97.478] (**) |   |-->Monitor "<default monitor>"
    97.478] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
    97.478] (==) Automatically adding devices
    97.478] (==) Automatically enabling devices
    97.478] (==) Automatically adding GPU devices
    97.478] (==) Max clients allowed: 256, resource mask: 0x1fffff
    97.478] (WW) The directory "/usr/share/fonts/misc/sgi" does not exist.
    97.478]     Entry deleted from font path.
    97.478] (==) 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
    97.478] (==) ModulePath set to "/usr/lib64/xorg/modules"
    97.478] (WW) Ignoring unrecognized extension "XFree86-DGA"
    97.478] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
    97.478] (II) Loader magic: 0x563ac5a31a00
    97.478] (II) Module ABI versions:
    97.478]     X.Org ANSI C Emulation: 0.4
    97.478]     X.Org Video Driver: 24.1
    97.478]     X.Org XInput driver : 24.1
    97.478]     X.Org Server Extension : 10.0
    97.478] (++) using VT number 1

    97.479] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
    97.481] (--) PCI:*(45@0:0:0) 10de:1244:3842:2059 rev 161, Mem @ 0xfa000000/33554432, 0xe0000000/134217728, 0xe8000000/67108864, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
    97.481] (II) LoadModule: "glx"
    97.481] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
    97.489] (II) Module glx: vendor="X.Org Foundation"
    97.489]     compiled for 1.20.13, module version = 1.0.0
    97.489]     ABI class: X.Org Server Extension, version 10.0
    97.489] (II) Scanning /usr/share/X11/xorg_pci_ids directory for additional PCI ID's supported by the drivers
    97.489] (==) Matched nvidia as autoconfigured driver 0
    97.489] (==) Matched nouveau as autoconfigured driver 1
    97.489] (==) Matched nv as autoconfigured driver 2
    97.489] (==) Matched modesetting as autoconfigured driver 3
    97.489] (==) Matched fbdev as autoconfigured driver 4
    97.489] (==) Matched vesa as autoconfigured driver 5
    97.489] (==) Assigned the driver to the xf86ConfigLayout
    97.489] (II) LoadModule: "nvidia"
    97.489] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
    97.489] (II) Module nvidia: vendor="NVIDIA Corporation"
    97.489]     compiled for 4.0.2, module version = 1.0.0
    97.489]     Module class: X.Org Video Driver
    97.489] (II) LoadModule: "nouveau"
    97.489] (WW) Warning, couldn't open module nouveau
    97.489] (EE) Failed to load module "nouveau" (module does not exist, 0)
    97.489] (II) LoadModule: "nv"
    97.489] (WW) Warning, couldn't open module nv
    97.489] (EE) Failed to load module "nv" (module does not exist, 0)
    97.489] (II) LoadModule: "modesetting"
    97.489] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
    97.489] (II) Module modesetting: vendor="X.Org Foundation"
    97.489]     compiled for 1.20.13, module version = 1.20.13
    97.489]     Module class: X.Org Video Driver
    97.489]     ABI class: X.Org Video Driver, version 24.1
    97.489] (II) LoadModule: "fbdev"
    97.489] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
    97.489] (II) Module fbdev: vendor="X.Org Foundation"
    97.489]     compiled for 1.20.11, module version = 0.5.0
    97.489]     Module class: X.Org Video Driver
    97.489]     ABI class: X.Org Video Driver, version 24.1
    97.489] (II) LoadModule: "vesa"
    97.489] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
    97.489] (II) Module vesa: vendor="X.Org Foundation"
    97.489]     compiled for 1.20.11, module version = 2.5.0
    97.489]     Module class: X.Org Video Driver
    97.489]     ABI class: X.Org Video Driver, version 24.1
    97.489] (II) NVIDIA dlloader X Driver  390.144  Wed Jun  2 23:05:01 UTC 2021
    97.489] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
    97.489] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
    97.489] (II) FBDEV: driver for framebuffer: fbdev
    97.489] (II) VESA: driver for VESA chipsets: vesa
    97.489] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
    97.489] (II) Loading sub module "fb"
    97.489] (II) LoadModule: "fb"
    97.490] (II) Loading /usr/lib64/xorg/modules/libfb.so
    97.490] (II) Module fb: vendor="X.Org Foundation"
    97.490]     compiled for 1.20.13, module version = 1.0.0
    97.490]     ABI class: X.Org ANSI C Emulation, version 0.4
    97.490] (II) Loading sub module "wfb"
    97.490] (II) LoadModule: "wfb"
    97.490] (II) Loading /usr/lib64/xorg/modules/libwfb.so
    97.490] (II) Module wfb: vendor="X.Org Foundation"
    97.490]     compiled for 1.20.13, module version = 1.0.0
    97.490]     ABI class: X.Org ANSI C Emulation, version 0.4
    97.490] (II) Loading sub module "ramdac"
    97.490] (II) LoadModule: "ramdac"
    97.490] (II) Module "ramdac" already built-in
    97.493] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
    97.493] (EE) NVIDIA:     system's kernel log for additional error messages and
    97.493] (EE) NVIDIA:     consult the NVIDIA README for details.
    97.493] (EE) open /dev/dri/card0: No such file or directory
    97.493] (WW) Falling back to old probe method for modesetting
    97.493] (EE) open /dev/dri/card0: No such file or directory
    97.493] (II) Loading sub module "fbdevhw"
    97.493] (II) LoadModule: "fbdevhw"
    97.493] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
    97.493] (II) Module fbdevhw: vendor="X.Org Foundation"
    97.493]     compiled for 1.20.13, module version = 0.0.2
    97.493]     ABI class: X.Org Video Driver, version 24.1
    97.493] (EE) Unable to find a valid framebuffer device
    97.493] (WW) Falling back to old probe method for fbdev
    97.493] (II) Loading sub module "fbdevhw"
    97.493] (II) LoadModule: "fbdevhw"
    97.493] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
    97.493] (II) Module fbdevhw: vendor="X.Org Foundation"
    97.493]     compiled for 1.20.13, module version = 0.0.2
    97.493]     ABI class: X.Org Video Driver, version 24.1
    97.493] (EE) open /dev/fb0: Permission denied
    97.493] vesa: Refusing to run on UEFI
    97.493] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
    97.493] (EE) Screen 0 deleted because of no matching config section.
    97.493] (II) UnloadModule: "modesetting"
    97.493] (EE) Screen 0 deleted because of no matching config section.
    97.493] (II) UnloadModule: "fbdev"
    97.493] (II) UnloadSubModule: "fbdevhw"
    97.493] (EE) Device(s) detected, but none match those in the config file.
    97.493] (EE) 
Fatal server error:
    97.493] (EE) no screens found(EE) 
    97.493] (EE) 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
    97.493] (EE) Please also check the log file at "/home/shom/.local/share/xorg/Xorg.0.log" for additional information.
    97.493] (EE) 
    97.499] (EE) Server terminated with error (1). Closing log file.
[/LEFT]

[LEFT]

I will like to install nvidia drivers. I am wondering if there is a fix for this issue.

Thank you very much for your help!!!
[/LEFT]

There is a typo above.
I installed nvidia-glG04 **not the ** nvidia-glG05 driver.



>hwinfo --gfxcard

29: PCI 2d00.0: 0300 VGA compatible controller (VGA)
  [Created at pci.386]
  Unique ID: ETRw.lQVcDGg6xH8
  Parent ID: w+J7.mexhps_MX6B
  SysFS ID: /devices/pci0000:00/0000:00:03.1/0000:2d:00.0
  SysFS BusID: 0000:2d:00.0
  Hardware Class: graphics card
  Model: "nVidia GF116 [GeForce GTX 550 Ti]"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x1244 "GF116 [GeForce GTX 550 Ti]"
  SubVendor: pci 0x3842 "eVga.com. Corp."
  SubDevice: pci 0x2059 
  Revision: 0xa1
  Memory Range: 0xfa000000-0xfbffffff (rw,non-prefetchable)
  Memory Range: 0xe0000000-0xe7ffffff (ro,non-prefetchable)
  Memory Range: 0xe8000000-0xebffffff (ro,non-prefetchable)
  I/O Ports: 0xe000-0xefff (rw)
  Memory Range: 0x000c0000-0x000dffff (rw,non-prefetchable,disabled)
  IRQ: 5 (no events)
  Module Alias: "pci:v000010DEd00001244sv00003842sd00002059bc03sc00i00"
  Driver Info #0:
    Driver Status: nouveau is not active
    Driver Activation Cmd: "modprobe nouveau"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #7 (PCI bridge)

Primary display adapter: #29


 >lsmod | grep nvidia 
nothing 

> dmesg | grep nvidia 
    3.089794] audit: type=1400 audit(1631538372.908:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=677 comm="apparmor_parser"
    3.089797] audit: type=1400 audit(1631538372.908:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=677 comm="apparmor_parser"


I think that the kernel should load the nvidia prop driver instead of the nouveau driver but it is not loading the nvidia driver…
Would using modprobe fix it?

Thank you for your time.

You have to properly disable or uninstall nouveau drivers. You cannot use them both.

Thank you very much for your reply. Could you please point me to the right way to uninstall nouveau drivers?

zypper rm xf86-video-nouveau xorg-x11-driver-video

both removes the nouveau display driver, and removes inclination for it to be reinstalled when updates are applied. AFAIK, the nouveau kernel device driver (module) cannot be uninstalled, only blacklisted, or prevented from loading, the latter by including either nouveau.modeset=0 or nomodeset on the bootloader’s kernel command (linu…) line.