nvidia-drm Failed to grab modeset ownership

Asked by Meshari E

I'm still looking for solve:

* sudo dmesg -el err
[Apr22 20:26] x86/cpu: SGX disabled by BIOS.

[Apr22 20:27] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.000061] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.000028] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.000024] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.011620] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.000075] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.000042] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.000037] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.014382] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.000057] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.000027] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.000024] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership

* lspci -nn | egrep -i "display|vga"
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116 [GeForce GTX 1660 SUPER] [10de:21c4] (rev a1)

* nvidia-smi
Sat Apr 22 20:34:41 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.105.17 Driver Version: 525.105.17 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| 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 |
| 43% 34C P8 13W / 125W | 362MiB / 6144MiB | 1% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1743 G /usr/lib/xorg/Xorg 90MiB |
| 0 N/A N/A 1905 G /usr/bin/gnome-shell 99MiB |
| 0 N/A N/A 2171 G ...tonmail/bridge/bridge-gui 1MiB |
| 0 N/A N/A 4370 G ...9/usr/lib/firefox/firefox 167MiB |
+-----------------------------------------------------------------------------+

* uname -a
Linux meshari 5.19.0-40-generic #41~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 31 16:00:14 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Meshari E
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

If you switch to Xorg rather than Wayland is it OK?

Revision history for this message
Meshari E (arbian) said :
#2

On Wayland error disappears but on Xorg error still there
On Wayland: No error
On Xorg: there is error as above

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Does the display adapter work well despite the messages, or which negative effects do you see?

It seems that you are not the only person with such message.
Maybe https://forums.developer.nvidia.com/t/ubuntu-21-10-failed-to-grab-modeset-ownership-with-495-44/193867/51 helps

Revision history for this message
Meshari E (arbian) said :
#4

Yes display adapter work well
I tried the solve in link you posted it but it's not solved

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

"I tried the solve in link you posted it but it's not solved"

Are you sure that you correctly comment out all occurrences of "options nvidia-drm modeset=1"?
Did you already reboot afterwards?
Are you sure that there are such messages from the time after the reboot?

Revision history for this message
Meshari E (arbian) said :
#6

Yes for sure i did that all but it's same.
also i tried to follow this solve:
https://forums.debian.net/viewtopic.php?p=743148
but it's same error still there

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

There is a confusion between "modset" and "modeset" in https://forums.debian.net/viewtopic.php?p=743148
What is the output of

cat /proc/cmdline

on your system?

Revision history for this message
Meshari E (arbian) said :
#8

Yes i noticed that "e" missing, correct is "modeset".

# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.19.0-40-generic root=UUID=4df7295b-0ac6-4996-8e5c-6cb5d4fb7db8 ro quiet splash vt.handoff=7

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

Apparently you have not applied the first recommendation in https://forums.debian.net/viewtopic.php?p=743148 (Caveat: "e" missing), or haven't executed "update-grub" and/or not rebooted afterwards.

Revision history for this message
Meshari E (arbian) said (last edit ):
#10

it's Solved :
I booted in recovery mode then I deleted driver and install server version + nvidia headless (Nvidia-525-Server).
Now no error show.

Thank you Manfred

Revision history for this message
Meshari E (arbian) said :
#11

Also maybe after that show other error:
[ 5.004707] nvidia-gpu 0000:05:00.3: i2c timeout error e0000000
[ 5.004734] ucsi_ccg 0-0008: i2c_transfer failed -110
[ 5.004772] ucsi_ccg 0-0008: ucsi_ccg_init failed - -110

the solve is:

echo "blacklist i2c_nvidia_gpu" > /etc/modprobe.d/blacklist_i2c-nvidia-gpu.conf

sudo update-initramfs -u