Ubuntu 21.10 - "Failed to grab modeset ownership" with 495.44

Exactly same issue here.

$ sudo dmesg -T | grep nvidia
[Sat Oct 15 17:49:04 2022] Command line: BOOT_IMAGE=/boot/vmlinuz-5.15.0-50-generic root=UUID=0bf4fa89-a3c7-4f77-ab88-d1c8493705f1 ro quiet splash nvidia-drm.modeset=1 vt.handoff=7
[Sat Oct 15 17:49:04 2022] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.15.0-50-generic root=UUID=0bf4fa89-a3c7-4f77-ab88-d1c8493705f1 ro quiet splash nvidia-drm.modeset=1 vt.handoff=7
[Sat Oct 15 17:49:36 2022] nvidia: loading out-of-tree module taints kernel.
[Sat Oct 15 17:49:36 2022] nvidia: module license ‘NVIDIA’ taints kernel.
[Sat Oct 15 17:49:36 2022] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[Sat Oct 15 17:49:36 2022] nvidia-nvlink: Nvlink Core is being initialized, major device number 511
[Sat Oct 15 17:49:36 2022] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[Sat Oct 15 17:49:37 2022] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 520.61.05 Thu Sep 29 05:29:37 UTC 2022
[Sat Oct 15 17:49:37 2022] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[Sat Oct 15 17:49:38 2022] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0
[Sat Oct 15 17:49:43 2022] audit: type=1400 audit(1665836383.666:2): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“nvidia_modprobe” pid=984 comm=“apparmor_parser”
[Sat Oct 15 17:49:43 2022] audit: type=1400 audit(1665836383.666:3): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“nvidia_modprobe//kmod” pid=984 comm=“apparmor_parser”
[Sat Oct 15 17:56:51 2022] [drm:nv_drm_master_set [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership

$ cat /etc/issue
Ubuntu 22.04.1 LTS \n \l

$ uname -r
5.15.0-50-generic
$ cat /sys/module/nvidia/version
520.61.05

$ nvidia-smi
Sat Oct 15 18:06:06 2022
±----------------------------------------------------------------------------+
| NVIDIA-SMI 520.61.05 Driver Version: 520.61.05 CUDA Version: 11.8 |
|-------------------------------±---------------------±---------------------+
| 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 On | N/A |
| 28% 44C P0 24W / 100W | 56MiB / 4096MiB | 1% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 2101 G /usr/lib/xorg/Xorg 55MiB |
±----------------------------------------------------------------------------+

Disabled Wayland as suggested by some forums. Still the same problem.

Here is my X11 configuration:
$ cat /etc/X11/xorg.conf

nvidia-xconfig: X configuration file generated by nvidia-xconfig

nvidia-xconfig: version 520.61.05

nvidia-settings: X configuration file generated by nvidia-settings

nvidia-settings: version 510.47.03

Section “ServerLayout”
Identifier “Layout0”
Screen 0 “Screen0” 0 0
InputDevice “Keyboard0” “CoreKeyboard”
InputDevice “Mouse0” “CorePointer”
Option “Xinerama” “0”
EndSection

Section “Files”
EndSection

Section “InputDevice”

# generated from default
Identifier     "Mouse0"
Driver         "mouse"
Option         "Protocol" "auto"
Option         "Device" "/dev/psaux"
Option         "Emulate3Buttons" "no"
Option         "ZAxisMapping" "4 5"

EndSection

Section “InputDevice”

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

EndSection

Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “Samsung S23B370”
HorizSync 30.0 - 81.0
VertRefresh 50.0 - 75.0
Option “DPMS”
EndSection

Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “NVIDIA GeForce GTX 1650 SUPER”
EndSection

Section “Screen”
Identifier “Screen0”
Device “Device0”
Monitor “Monitor0”
DefaultDepth 24
Option “Stereo” “0”
Option “nvidiaXineramaInfoOrder” “DFP-1”
Option “metamodes” “1920x1080_60 +0+0”
Option “SLI” “Off”
Option “MultiGPU” “Off”
Option “BaseMosaic” “off”
SubSection “Display”
Depth 24
EndSubSection
EndSection

$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 36 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Vendor ID: GenuineIntel
Model name: Intel(R) Core™ i7-3770 CPU @ 3.40GHz
CPU family: 6
Model: 58
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
Stepping: 9
CPU max MHz: 3900.0000
CPU min MHz: 1600.0000
BogoMIPS: 6819.74
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush d
ts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_per
fmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq
dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2a
pic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb p
ti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
xsaveopt dtherm ida arat pln pts md_clear flush_l1d
Virtualization features:
Virtualization: VT-x
Caches (sum of all):
L1d: 128 KiB (4 instances)
L1i: 128 KiB (4 instances)
L2: 1 MiB (4 instances)
L3: 8 MiB (1 instance)
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0-7
Vulnerabilities:
Itlb multihit: KVM: Mitigation: VMX disabled
L1tf: Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable
Mds: Mitigation; Clear CPU buffers; SMT vulnerable
Meltdown: Mitigation; PTI
Mmio stale data: Not affected
Retbleed: Not affected
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Spectre v2: Mitigation; Retpolines, IBPB conditional, IBRS_FW, STIBP conditional, RSB filling
, PBRSB-eIBRS Not affected
Srbds: Vulnerable: No microcode
Tsx async abort: Not affected

Motherboard: Asus P8Z77-V PRO
Graphics card: Asus TUF Gaming Geforce GT 1650 Super

I have already tried different drivers (default 515 driver by Ubuntu 22.04, nvidia 515 driver, nvidia 520 driver). Issue persists. Display does not refresh and has black screen for most of the part.

I have removed all the Ubuntu shipped nvidia drivers as I hit nvidia_uvm undefined symbol issue.

$ dpkg -l | grep nvidia-5.15
ii linux-signatures-nvidia-5.15.0-48-generic 5.15.0-48.54 amd64 Linux kernel signatures for nvidia modules for version 5.15.0-48-generic
ii linux-signatures-nvidia-5.15.0-50-generic 5.15.0-50.56+1 amd64 Linux kernel signatures for nvidia modules for version 5.15.0-50-generic

Please help.