[Using Nvidia driver on Debian Trixie - ASUS TUF Gaming A15 FA507XI] RIP: 0010:nv_drm_revoke_modeset_permission+0x327/0x340 [nvidia_drm]

Using Debian Trixie - ASUS TUF Gaming A15 FA507XI, one the nvidia-driver package is installed, without further customization, GNOME will run on X11 instead of Wayland.

To solve this issue:

  1. /etc/default/grub
    In the file, add nvidia-drm.modeset=1 to the GRUB_CMDLINE_LINUX_DEFAULT parameter
    GRUB_CMDLINE_LINUX_DEFAULT="quiet nvidia-drm.modeset=1 mem_sleep_default=deep"
  2. run # update-grub
  3. /usr/lib/udev/rules.d/61-gdm.rules
    In the file, comment the line
    RUN+="/usr/libexec/gdm-runtime-config set daemon WaylandEnable false"
  4. /etc/gdm3/daemon.conf
    In the file, make sure that
    WaylandEnable=true
  5. /etc/modprobe.d/nvidia-drm.conf
    In the file, add modeset=1
    options nvidia-drm modeset=1
  6. run # update-initramfs -u

After reboot, GNOME will be running on Wayland
echo $XDG_SESSION_TYPE.

Achieving this is mandatory on this laptop to be able to run the ROG Center (thus having decent battery life), and to use the HDMI port.


$ nvidia-smi
Sun Jul  6 10:42:28 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.163.01             Driver Version: 550.163.01     CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| 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 RTX 4070 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   35C    P0            588W /   55W |       6MiB /   8188MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      2376      G   /usr/bin/gnome-shell                            2MiB |
+-----------------------------------------------------------------------------------------+

However, currently using

ii  nvidia-driver                                 550.163.01-1                          amd64        NVIDIA metapackage
ii  linux-kbuild-6.12.32                          6.12.32-1                             amd64        Kbuild infrastructure for Linux 6.12.32

The following kernel module error is raised

[Sun Jul  6 09:43:51 2025] ------------[ cut here ]------------
[Sun Jul  6 09:43:51 2025] WARNING: CPU: 12 PID: 3126 at /var/lib/dkms/nvidia-current/550.163.01/build/nvidia-drm/nvidia-drm-drv.c:1220 nv_drm_revoke_modeset_permission+0x327/0x340 [nvidia_drm]
[Sun Jul  6 09:43:51 2025] Modules linked in: sd_mod scsi_mod scsi_common snd_seq_dummy snd_hrtimer snd_seq snd_seq_device ccm nvidia_uvm(POE) qrtr rfcomm cmac algif_hash algif_skcipher af_alg bnep nvidia_drm(POE) nvidia_modeset(POE) binfmt_misc nls_ascii nls_cp437 vfat fat nvidia(POE) amd_atl intel_rapl_msr intel_rapl_common rtw89_8852be rtw89_8852b rtw89_8852b_common rtw89_pci edac_mce_amd rtw89_core snd_sof_amd_rembrandt kvm_amd snd_sof_amd_acp snd_hda_codec_realtek snd_sof_pci snd_sof_xtensa_dsp snd_hda_codec_generic snd_hda_scodec_component snd_hda_codec_hdmi snd_sof snd_sof_utils kvm mac80211 irqbypass snd_hda_intel uvcvideo snd_soc_core crct10dif_pclmul ghash_clmulni_intel btusb snd_intel_dspcfg sha512_ssse3 snd_intel_sdw_acpi sha256_ssse3 btrtl btintel snd_hda_codec sha1_ssse3 snd_compress videobuf2_vmalloc snd_pcm_dmaengine aesni_intel uvc btbcm videobuf2_memops snd_pci_ps videobuf2_v4l2 btmtk snd_rpl_pci_acp6x gf128mul libarc4 crypto_simd videodev bluetooth snd_acp_pci snd_hda_core snd_acp_legacy_common cryptd asus_nb_wmi
[Sun Jul  6 09:43:51 2025]  videobuf2_common cfg80211 snd_hwdep snd_pci_acp6x asus_wmi mc sparse_keymap rapl snd_pcm platform_profile wmi_bmof snd_timer snd_pci_acp5x pcspkr snd_rn_pci_acp3x snd snd_acp_config nvidia_wmi_ec_backlight spd5118 ccp snd_soc_acpi snd_pci_acp3x soundcore rfkill k10temp button joydev amd_pmc ac evdev msr dm_mod parport_pc ppdev lp parport efi_pstore configfs nfnetlink ip_tables x_tables autofs4 ext4 mbcache jbd2 btrfs blake2b_generic raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c crc32c_generic raid1 raid0 md_mod amdgpu amdxcp drm_exec gpu_sched drm_buddy i2c_algo_bit drm_suballoc_helper drm_display_helper cec rc_core hid_multitouch drm_ttm_helper xhci_pci hid_generic ttm i2c_hid_acpi xhci_hcd i2c_hid hid drm_kms_helper thunderbolt r8169 drm nvme usbcore realtek ucsi_acpi nvme_core sp5100_tco mdio_devres typec_ucsi watchdog crc32_pclmul libphy typec crc32c_intel serio_raw i2c_piix4 i2c_smbus roles crc16 nvme_auth video fan usb_common battery wmi efivarfs
[Sun Jul  6 09:43:51 2025] CPU: 12 UID: 0 PID: 3126 Comm: fwupd Tainted: P        W  OE      6.12.32-amd64 #1  Debian 6.12.32-1
[Sun Jul  6 09:43:51 2025] Tainted: [P]=PROPRIETARY_MODULE, [W]=WARN, [O]=OOT_MODULE, [E]=UNSIGNED_MODULE
[Sun Jul  6 09:43:51 2025] Hardware name: ASUSTeK COMPUTER INC. ASUS TUF Gaming A15 FA507XI_FA507XI/FA507XI, BIOS FA507XI.314 04/16/2024
[Sun Jul  6 09:43:51 2025] RIP: 0010:nv_drm_revoke_modeset_permission+0x327/0x340 [nvidia_drm]
[Sun Jul  6 09:43:51 2025] Code: fd ff ff 49 8d bc 24 70 01 00 00 e8 63 c6 dd ea e9 57 fd ff ff 49 8d bc 24 70 01 00 00 89 04 24 e8 3e b2 dd ea 8b 04 24 eb 9c <0f> 0b e9 d0 fd ff ff b8 ea ff ff ff e9 4c fd ff ff e8 83 29 dd ea
[Sun Jul  6 09:43:51 2025] RSP: 0018:ffffa6e5483abbc8 EFLAGS: 00010246
[Sun Jul  6 09:43:51 2025] RAX: 0000000000000000 RBX: ffff935703eabe00 RCX: ffffffffc093788a
[Sun Jul  6 09:43:51 2025] RDX: 0000000000000004 RSI: 0000000000000000 RDI: ffff935730783170
[Sun Jul  6 09:43:51 2025] RBP: ffff93570c64b848 R08: ffff93570c64b848 R09: 0000000000000000
[Sun Jul  6 09:43:51 2025] R10: ffffa6e5483abb90 R11: 0000000000000000 R12: ffff935730783000
[Sun Jul  6 09:43:51 2025] R13: ffff935703eabee0 R14: ffff935703eabee0 R15: dead000000000100
[Sun Jul  6 09:43:51 2025] FS:  00007fc3617ce1c0(0000) GS:ffff935a2e800000(0000) knlGS:0000000000000000
[Sun Jul  6 09:43:51 2025] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[Sun Jul  6 09:43:51 2025] CR2: 000055a46104dfc8 CR3: 000000013052c000 CR4: 0000000000f50ef0
[Sun Jul  6 09:43:51 2025] PKRU: 55555554
[Sun Jul  6 09:43:51 2025] Call Trace:
[Sun Jul  6 09:43:51 2025]  <TASK>
[Sun Jul  6 09:43:51 2025]  drm_file_free+0x218/0x270 [drm]
[Sun Jul  6 09:43:51 2025]  drm_release+0x5e/0xd0 [drm]
[Sun Jul  6 09:43:51 2025]  __fput+0xde/0x2a0
[Sun Jul  6 09:43:51 2025]  __x64_sys_close+0x3c/0x80
[Sun Jul  6 09:43:51 2025]  do_syscall_64+0x82/0x190
[Sun Jul  6 09:43:51 2025]  ? srso_alias_return_thunk+0x5/0xfbef5
[Sun Jul  6 09:43:51 2025]  ? syscall_exit_to_user_mode+0x4d/0x210
[Sun Jul  6 09:43:51 2025]  ? srso_alias_return_thunk+0x5/0xfbef5
[Sun Jul  6 09:43:51 2025]  ? do_syscall_64+0x8e/0x190
[Sun Jul  6 09:43:51 2025]  ? srso_alias_return_thunk+0x5/0xfbef5
[Sun Jul  6 09:43:51 2025]  ? fcntl_setlk+0x272/0x400
[Sun Jul  6 09:43:51 2025]  ? srso_alias_return_thunk+0x5/0xfbef5
[Sun Jul  6 09:43:51 2025]  ? do_fcntl+0x5e9/0x740
[Sun Jul  6 09:43:51 2025]  ? srso_alias_return_thunk+0x5/0xfbef5
[Sun Jul  6 09:43:51 2025]  ? __x64_sys_fcntl+0x87/0xe0
[Sun Jul  6 09:43:51 2025]  ? srso_alias_return_thunk+0x5/0xfbef5
[Sun Jul  6 09:43:51 2025]  ? syscall_exit_to_user_mode+0x4d/0x210
[Sun Jul  6 09:43:51 2025]  ? srso_alias_return_thunk+0x5/0xfbef5
[Sun Jul  6 09:43:51 2025]  ? do_syscall_64+0x8e/0x190
[Sun Jul  6 09:43:51 2025]  ? srso_alias_return_thunk+0x5/0xfbef5
[Sun Jul  6 09:43:51 2025]  ? do_user_addr_fault+0x36c/0x620
[Sun Jul  6 09:43:51 2025]  ? srso_alias_return_thunk+0x5/0xfbef5
[Sun Jul  6 09:43:51 2025]  ? srso_alias_return_thunk+0x5/0xfbef5
[Sun Jul  6 09:43:51 2025]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[Sun Jul  6 09:43:51 2025] RIP: 0033:0x7fc36361f9ee
[Sun Jul  6 09:43:51 2025] Code: 08 0f 85 f5 4b ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
[Sun Jul  6 09:43:51 2025] RSP: 002b:00007fff879b3408 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
[Sun Jul  6 09:43:51 2025] RAX: ffffffffffffffda RBX: 00007fc3617ce1c0 RCX: 00007fc36361f9ee
[Sun Jul  6 09:43:51 2025] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000000d
[Sun Jul  6 09:43:51 2025] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
[Sun Jul  6 09:43:51 2025] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff879b3530
[Sun Jul  6 09:43:51 2025] R13: 00005593b6af7740 R14: 00007fc363d42b05 R15: 00007fff879b35f0
[Sun Jul  6 09:43:51 2025]  </TASK>
[Sun Jul  6 09:43:51 2025] ---[ end trace 0000000000000000 ]---

How can this issue be fixed ?
Kind Regards

I have the same issue on siduction, a distro based on Debian Sid with considerably newer versions of the kernel and driver. My PC is a self-built desktop.

$ LC_ALL=en_US apt-cache policy -q nvidia-driver
nvidia-driver:
  Installed: 575.64-0siduction1
  Candidate: 575.64-0siduction1
  Version table:
 *** 575.64-0siduction1 500
        500 https://packages.siduction.org/fixes unstable-nvidia/non-free amd64 Packages
        100 /var/lib/dpkg/status
     550.163.01-1siduction1 500
        500 http://packages.siduction.org/fixes unstable/non-free amd64 Packages
     550.163.01-1 500
        500 http://httpredir.debian.org/debian unstable/non-free amd64 Packages
$ cat /proc/version
Linux version 6.15.4-1-siduction-amd64 (towo@siduction.org) (gcc-14 (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44) #1 SMP PREEMPT_DYNAMIC siduction 6.15-4 (2025-06-29)

Hi,
thanks for your feedback.
As proposed in the 575 release feedback & discussion thread [1], have you already sent a bug report against this version ?
[1]
“If you have new problems, please make sure you’ve uploaded an nvidia bug report: run sudo nvidia-bug-report.sh in a terminal and upload the resulting file.”

Thanks for the suggestion. I’ve done it now.