[nvidia] Failed to grab modeset ownership

Bug #1963805 reported by Mateusz Łącki
204
This bug affects 41 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-510 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Starting from package 495, I notice lots of messages like that in dmesg:

[89502.662730] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[89502.662850] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[89502.662899] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[89502.662944] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[92090.669597] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[92090.669715] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[92090.669766] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[92090.669813] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownershi

With 495 it was 1 message after boot, and one after each waking up of the monitor from sleep. With 510 there are numerous error messages per wake up. I have followed up with nvidia:
https://forums.developer.nvidia.com/t/ubuntu-21-10-failed-to-grab-modeset-ownership-with-495-44/193867/35

but ultimately their employee tells that this is expected behavour, and something else triggers the message.

[quote="amrits, post:37, topic:193867, full:true"]
HI All,
The warning message is expected. When a client (such as the modesetting driver) attempts to open our DRM device node while modesetting permission is already acquired by something else (like the NVIDIA X driver), it has to fail, but the kernel won’t let us return a failure after v5.9-rc1, so we print this message. It won’t impact functionality of the NVIDIA X driver that already has modesetting permission. Safe to ignore as long as long as you didn’t need the other client to actually get modesetting permission. If you want to suppress the error, you would need to find which client is attempting to open the NVIDIA DRM device node and prevent it from doing so.
[/quote]

I use Ubuntu 21.10 with all updates.

Description: Ubuntu 21.10
Release: 21.10

nvidia-headless-510:
  Installed: (none)
  Candidate: 510.54-0ubuntu0.21.10.1
  Version table:
     510.54-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-proposed/restricted amd64 Packages
     510.47.03-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-updates/restricted amd64 Packages
        500 http://security.ubuntu.com/ubuntu impish-security/restricted amd64 Packages
nvidia-compute-utils-510:
  Installed: 510.54-0ubuntu0.21.10.1
  Candidate: 510.54-0ubuntu0.21.10.1
  Version table:
 *** 510.54-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-proposed/restricted amd64 Packages
        100 /var/lib/dpkg/status
     510.47.03-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-updates/restricted amd64 Packages
        500 http://security.ubuntu.com/ubuntu impish-security/restricted amd64 Packages
nvidia-dkms-510:
  Installed: 510.54-0ubuntu0.21.10.1
  Candidate: 510.54-0ubuntu0.21.10.1
  Version table:
 *** 510.54-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-proposed/restricted amd64 Packages
        100 /var/lib/dpkg/status
     510.47.03-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-updates/restricted amd64 Packages
        500 http://security.ubuntu.com/ubuntu impish-security/restricted amd64 Packages
nvidia-driver-510:
  Installed: 510.54-0ubuntu0.21.10.1
  Candidate: 510.54-0ubuntu0.21.10.1
  Version table:
 *** 510.54-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-proposed/restricted amd64 Packages
        100 /var/lib/dpkg/status
     510.47.03-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-updates/restricted amd64 Packages
        500 http://security.ubuntu.com/ubuntu impish-security/restricted amd64 Packages
nvidia-utils-510:
  Installed: 510.54-0ubuntu0.21.10.1
  Candidate: 510.54-0ubuntu0.21.10.1
  Version table:
 *** 510.54-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-proposed/restricted amd64 Packages
        100 /var/lib/dpkg/status
     510.47.03-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-updates/restricted amd64 Packages
        500 http://security.ubuntu.com/ubuntu impish-security/restricted amd64 Packages
nvidia-kernel-common-510:
  Installed: 510.54-0ubuntu0.21.10.1
  Candidate: 510.54-0ubuntu0.21.10.1
  Version table:
 *** 510.54-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-proposed/restricted amd64 Packages
        100 /var/lib/dpkg/status
     510.47.03-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-updates/restricted amd64 Packages
        500 http://security.ubuntu.com/ubuntu impish-security/restricted amd64 Packages
nvidia-headless-no-dkms-510:
  Installed: (none)
  Candidate: 510.54-0ubuntu0.21.10.1
  Version table:
     510.54-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-proposed/restricted amd64 Packages
     510.47.03-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-updates/restricted amd64 Packages
        500 http://security.ubuntu.com/ubuntu impish-security/restricted amd64 Packages
nvidia-fabricmanager-dev-510:
  Installed: (none)
  Candidate: 510.47.03-0ubuntu0.21.10.1
  Version table:
     510.47.03-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-proposed/multiverse amd64 Packages
nvidia-fabricmanager-510:
  Installed: (none)
  Candidate: 510.47.03-0ubuntu0.21.10.1
  Version table:
     510.47.03-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-proposed/multiverse amd64 Packages
nvidia-kernel-source-510:
  Installed: 510.54-0ubuntu0.21.10.1
  Candidate: 510.54-0ubuntu0.21.10.1
  Version table:
 *** 510.54-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-proposed/restricted amd64 Packages
        100 /var/lib/dpkg/status
     510.47.03-0ubuntu0.21.10.1 500
        500 http://pl.archive.ubuntu.com/ubuntu impish-updates/restricted amd64 Packages
        500 http://security.ubuntu.com/ubuntu impish-security/restricted amd64 Packages

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-510 (Ubuntu):
status: New → Confirmed
Revision history for this message
Andrey Panasenko (xambey) wrote :

Plus one

Revision history for this message
David Lawrence (david-gary-lawrence) wrote (last edit ):

I'm seeing something similar but with a different nvidia version, so maybe not isolated to that version?
[1283953.000634] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00001f00] Failed to grab modeset ownership

cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 470.129.06 Thu May 12 22:52:02 UTC 2022
GCC version:

uname -a
Linux dgl-desktop 5.15.0-30-generic #31-Ubuntu SMP Thu May 5 10:00:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Other info:
[ 56.706187] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.1/0000:1f:00.1/sound/card0/input6
[ 56.706297] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.1/0000:1f:00.1/sound/card0/input7
[ 56.706407] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.1/0000:1f:00.1/sound/card0/input8
[ 56.706536] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.1/0000:1f:00.1/sound/card0/input9
[ 56.706646] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:03.1/0000:1f:00.1/sound/card0/input10
[ 56.706717] input: HDA NVidia HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:03.1/0000:1f:00.1/sound/card0/input11
[ 56.706786] input: HDA NVidia HDMI/DP,pcm=12 as /devices/pci0000:00/0000:00:03.1/0000:1f:00.1/sound/card0/input12
[ 57.787438] nvidia: loading out-of-tree module taints kernel.
[ 57.787448] nvidia: module license 'NVIDIA' taints kernel.
[ 57.812559] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
[ 57.813237] nvidia 0000:1f:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[ 59.316612] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 470.129.06 Thu May 12 22:52:02 UTC 2022
[ 59.414975] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 470.129.06 Thu May 12 22:42:45 UTC 2022
[ 59.570168] [drm] [nvidia-drm] [GPU ID 0x00001f00] Loading driver
[ 59.732677] caller os_map_kernel_space.part.0+0x77/0xa0 [nvidia] mapping multiple BARs
[ 61.941077] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:1f:00.0 on minor 0
[ 62.881721] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[ 62.885186] nvidia-uvm: Loaded the UVM driver, major device number 507.

Revision history for this message
ELMX (elx-1) wrote :

Hi,

after enabled multi-user.target and start session via console (startx), error below disappeared
[drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership

Maybe this bug is related to gdm-x-session because at gdm login screen i saw no error message
ctrl + alt + fn switch. When i login in from gdm login screen into ubuntu-session i see error above

Another point is that nvidia is missing libdrm, like amd has ...

Thank you

Luiz

summary: - Failed to grab modeset ownership
+ [nvidia] Failed to grab modeset ownership
Revision history for this message
Marcel Franke (donutloop) wrote :

I have also this issue

```
Aug 21 00:12:39 donutloop kernel: [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
Aug 21 00:12:39 donutloop kernel: [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
Aug 21 00:12:39 donutloop kernel: [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
Aug 21 00:12:39 donutloop kernel: [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership

Revision history for this message
Vic Lim (limw0144) wrote :

Me too.

Aug 22 07:44:17 viclim-mainpc kernel: [ 24.971874] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000700] Failed to grab modeset ownership
Aug 22 07:44:17 viclim-mainpc kernel: [ 24.971913] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000700] Failed to grab modeset ownership
Aug 22 07:44:17 viclim-mainpc kernel: [ 24.971929] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000700] Failed to grab modeset ownership
Aug 22 07:44:17 viclim-mainpc kernel: [ 24.971942] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000700] Failed to grab modeset ownership
Aug 22 07:44:17 viclim-mainpc kernel: [ 24.988248] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000700] Failed to grab modeset ownership
Aug 22 07:44:17 viclim-mainpc kernel: [ 24.988285] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000700] Failed to grab modeset ownership
Aug 22 07:44:17 viclim-mainpc kernel: [ 24.988300] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000700] Failed to grab modeset ownership
Aug 22 07:44:17 viclim-mainpc kernel: [ 24.988315] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000700] Failed to grab modeset ownership
Aug 22 07:44:17 viclim-mainpc gdm3: Gdm: Child process -1336 was already dead.
Aug 22 07:44:17 viclim-mainpc kernel: [ 25.004739] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000700] Failed to grab modeset ownership
Aug 22 07:44:17 viclim-mainpc kernel: [ 25.004767] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000700] Failed to grab modeset ownership
Aug 22 07:44:17 viclim-mainpc kernel: [ 25.004782] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000700] Failed to grab modeset ownership
Aug 22 07:44:17 viclim-mainpc kernel: [ 25.004797] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000700] Failed to grab modeset ownership

Revision history for this message
Ofloo (ofloo) wrote :

Linux pinky 5.15.0-47-generic #51-Ubuntu SMP Thu Aug 11 07:51:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

 lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

lspci -nn | egrep -i "display|vga"
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104 [GeForce RTX 3060 Ti Lite Hash Rate] [10de:2489] (rev a1)

[ma aug 22 18:47:59 2022] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ma aug 22 18:48:06 2022] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership

Revision history for this message
Petter Sundlöf (petter-sundlof) wrote :

I get this as well, on 22.04.1 but with nvidia-525. It causes a momentary (3-4 secs) freeze in UI/mouse/input response.

Revision history for this message
John Smith (j4smith) wrote :

I would like to confirm this as well.

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

GeForce GTX 1080 Ti

Driver Version: 525.78.01

[116989.690850] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[116989.690908] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[116989.690937] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[116989.690964] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership

Additionally there's no modeset in my GRUB config.

This bug will grind my system to a halt on occasion. In some cases the pause in momentary. In some cases it will require a restart (possibly due to my own impatience). It is quite frustrating and makes it hard to trust the OS to use to do anything meaningful on. It seems to occur quite frequently when viewing PDFs and when returning the computer from being suspended.

Revision history for this message
bizmate (diegogullo) wrote :

This and or similar bugs where the same message can be found in dmesg output are also affecting the latest version of the driver 525.78.01
on kernel 6.0.0-1011-oem
Ubuntu 22.04.1 LTD
I have no clue on what else i can do, currently i get one screen dead out of the two that i have on the system and because it is the main screen i cannot login and do anything.

Even if i try to disable the screen when booting in recovery mode, then trying to remove the driver and re-install a new or older version I am still stuck.

Booting with older 5.x kernels does not work too. I keep getting these problems on ubuntu and NVidia hardware. Something has to change.

I hope someone can help make this more stable please

Revision history for this message
S (gentleghost) wrote :

Plus one

$ sudo dmesg -el err
[Feb23 21:23] ucsi_acpi USBC000:00: unknown error 4104
[ +0.000016] ucsi_acpi USBC000:00: UCSI_GET_PDOS failed (-5)
[Feb23 21:24] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.000090] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.000065] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.011096] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.000092] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.000073] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.023594] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.000080] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0.000063] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
$ lspci -nn | egrep -i "display|vga"
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] [10de:25a0] (rev a1)
06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [1002:1638] (rev c4)
swells@swells-ROG-Strix-G713QE-G713QE:~$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 515.86.01 Wed Oct 26 09:12:38 UTC 2022
GCC version:
$ uname -a
Linux sdesktop 5.19.0-32-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 30 17:03:34 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

I've seen some similar symptoms on Nvidia's forums: https://forums.developer.nvidia.com/t/display-freezes-ee-nvidia-gpu-0-wait/194940

Revision history for this message
Philippe Chavanne (philippe-chavanne) wrote :

uname -a

Linux laptop 5.19.0-35-generic #36~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 17 15:17:25 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

sudo dmesg -el err

[mars24 08:58] x86/cpu: SGX disabled by BIOS.
[ +1,141831] blacklist: Problem blacklisting hash (-13)
[ +0,000074] blacklist: Problem blacklisting hash (-13)
[ +0,000048] blacklist: Problem blacklisting hash (-13)
[ +0,000031] blacklist: Problem blacklisting hash (-13)
[ +2,165475] Serial bus multi instantiate pseudo device driver INT3515:00: error -ENXIO: IRQ index 1 not found
[ +0,000031] Serial bus multi instantiate pseudo device driver INT3515:00: error -ENXIO: Error requesting irq at index 1: -6

[mars24 09:01] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0,000102] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0,000056] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0,000053] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0,021040] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0,000117] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0,000076] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0,000068] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0,021382] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0,000106] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0,000065] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
[ +0,000054] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership

uname -a

Linux laptop 5.19.0-35-generic #36~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 17 15:17:25 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy

Revision history for this message
John Smith (j4smith) wrote :

I have found a temporary fix that has seemed to resolve the issue for me. I haven't had a crash or freeze in a while. Though, I am not sure of the overall effect. Use at your own risk:

https://forums.developer.nvidia.com/t/ubuntu-21-10-failed-to-grab-modeset-ownership-with-495-44/193867/51

freeavagames posted a somewhat odd looking solution that does indeed stop the error. Reproduced here for those that do not want to click the link:

"""
( Ubuntu 22.04.1 Nvidia 525.60.11 Kernel: 5.15.0-56-generic )

I have the line “options nvidia-drm modeset=1” in three files:

grep --include=*.conf -rnw ‘/’ -e “nvidia-drm” 2>/dev/null

“/usr/lib/modprobe.d/nvidia-kms.conf:3:options nvidia-drm modeset=1”
“/etc/modprobe.d/nvidia-graphics-drivers-kms.conf:3:options nvidia-drm modeset=1”
“/etc/modprobe.d/nvidia-nomodset.conf:1:options nvidia-drm modeset=1”

If the lines are commented out, the error message disappears.
If you leave this uncommented in at least one of the files, the error message will appear again.
"""

I hope for a full fix but in the meantime this has at least made my computer usable again.

Revision history for this message
BloodyIron (bloodyiron) wrote :

This may be causing really weird issues I've seen since upgrading to 22.04.

I'm rocking an RTX 3060 ti (desktop GPU, as this is a desktop, not a laptop).

I have 3x monitors, all in landscape. Left and Right are 1920x1080@60hz, Middle is 2560x1440@165hz.

I have sync for all set to sync to the Middle monitor, so running at 165hz (so much smoother).

But since upgrading to 22.04 I've been having an issue that shows up after a seemingly random period of time. Typically days. And I don't yet know if it's related to modesetting, since I just followed the above steps to disable it, and it will be some time to know if it had any effect.

The problem is I'll be just working on one of my monitors (any of them) and that monitor suddenly stops updating the framebuffer, and it's just frozen displaying the single frame.

I can "behind the scenes" drag windows in and out of that monitor, but it never updates the image.

If I try to gracefully reboot with a sudo reboot, or other method, the computer hard-locks and never finishes shutting down or rebooting. And it ceases responding to any further input.

In this scenario the only solution is either a hard-reset button press, or hold power button down and force it off.

I've tried switching between nVidia drivers 530, 525, and 515. No change there.

I'm now back on 530 (all of these are nVidia proprietary blob drivers btw), and commented out the modeset aspect, as defined above, then rebooted. We'll see if that has any effect, but again, likely days before I'll even know or not.

And boy does this issue have like nobody talking about it online.

Additionally, there doesn't seem to be ANY errors output to logs at the time, no dmesg. And the closest thing most recently is the "Failed to grab modeset ownership" log entries, which I did get in my most recent example of this monitor freezing stuff. So it's hard to tell if it's related, or unrelated.

Quite frankly it's 2023, how has nVidia not sorted out modesetting yet?!??!

Here's hoping this solved it for me. Sorry I can't be of more help, but wanted to put something up that could be Google/Search Engine indexed, and maybe help someone in the process (sometimes it even helps me again, heh).

Revision history for this message
BloodyIron (bloodyiron) wrote :

Oh and to add a bit more detail to my previous comment. I did NOT have this issue on Ubuntu 20.04. But I may have disabled modeset on that install and forgotten about it, heh.

Revision history for this message
BloodyIron (bloodyiron) wrote :

Well the modeset errors are gone (I think), but my monitor freezing just happened. That's so incredibly angering.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.