-
-
Notifications
You must be signed in to change notification settings - Fork 17.6k
Description
Nixpkgs version
- Stable (25.11)
Describe the bug
When i resume from suspend, i see a black screen and a cursor i can move (on tty2).
When i switch to tty1 (using STRG+ALT+F1) i see the login screen background and top panel, but not the login form. I can restart the computer from there.
This is always reproducible.
What can we do about issues with nvidia driver? Is there a similar bug tracker like https://gitlab.freedesktop.org/drm/amd for AMD?
Steps to reproduce
- suspend
- resume
Expected behaviour
login screen after resume
Screenshots
imagine a black screen with a cursor
Relevant log output
Probably these lines:
Jan 03 05:44:18 gaming systemd[1]: nvidia-suspend.service: Deactivated successfully.
Jan 03 05:44:18 gaming systemd[1]: Finished NVIDIA system suspend actions.
Jan 03 05:44:18 gaming systemd[1]: nvidia-suspend.service: Consumed 676ms CPU time, 351M memory peak, 60K read from disk.
Jan 03 05:44:18 gaming systemd[1]: Starting System Suspend...
Jan 03 05:44:18 gaming systemd[1]: user-78.slice: Unit now frozen-by-parent.
Jan 03 05:44:18 gaming systemd[1]: session-2.scope: Unit now frozen-by-parent.
Jan 03 05:44:18 gaming acpid[808]: input device has been disconnected, fd 24
Jan 03 05:44:26 gaming systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Jan 03 05:44:42 gaming kernel: watchdog: BUG: soft lockup - CPU#1 stuck for 26s! [.gala-wrapped:1991]
Jan 03 05:44:42 gaming kernel: Modules linked in: xt_conntrack xt_MASQUERADE xt_set ip_set nft_chain_nat xt_addrtype nft_compat nf_tables xfrm_user xfrm_algo overlay qrtr snd_seq_dummy snd_hrtimer snd_seq rfcomm af_packet uhid cmac algif_hash algif_skcipher af_alg bnep sch_fq_codel xt_nat x_tables nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c veth uinput nvidia_drm(PO) nvidia_modeset(PO) joydev mousedev input_leds nvidia_uvm(PO) uvcvideo videobuf2_vmalloc uvc videobuf2_memops videobuf2_v4l2 videobuf2_common nls_iso8859_1 nls_cp437 videodev vfat fat uas hid_generic snd_sof_pci_intel_cnl snd_sof_intel_hda_generic soundwire_intel soundwire_cadence snd_sof_intel_hda_common snd_soc_hdac_hda snd_sof_intel_hda_mlink snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof nvidia(PO) snd_sof_utils snd_soc_acpi_intel_match soundwire_generic_allocation snd_soc_acpi soundwire_bus snd_soc_avs snd_soc_hda_codec snd_hda_ext_core intel_rapl_msr intel_rapl_common snd_soc_core intel_uncore_frequency intel_uncore_frequency_common r8169
Jan 03 05:44:42 gaming kernel: snd_hda_codec_realtek snd_compress ac97_bus snd_hda_codec_generic snd_pcm_dmaengine intel_tcc_cooling x86_pkg_temp_thermal intel_powerclamp snd_hda_scodec_component snd_hda_codec_hdmi coretemp ofpart realtek snd_usb_audio snd_hda_intel cmdlinepart mdio_devres crct10dif_pclmul snd_intel_dspcfg of_mdio crc32_pclmul snd_intel_sdw_acpi spi_nor fixed_phy iTCO_wdt polyval_clmulni fwnode_mdio intel_pmc_bxt snd_usbmidi_lib polyval_generic snd_hda_codec watchdog evdev ghash_clmulni_intel libphy mtd ee1004 mei_pxp snd_ump sha512_ssse3 mei_hdcp mac_hid intel_wmi_thunderbolt gigabyte_wmi led_class sha256_ssse3 snd_hda_core wmi_bmof snd_rawmidi sha1_ssse3 aesni_intel snd_seq_device snd_hwdep snd_pcm drm_ttm_helper gf128mul btusb crypto_simd ttm thermal cryptd snd_timer btrtl intel_pmc_core btintel rtc_cmos snd rapl mei_me mc video usbhid i2c_i801 btbcm intel_vsec mei soundcore pmt_telemetry intel_cstate btmtk spi_intel_pci i2c_smbus tiny_power_button pmt_class intel_pch_thermal edac_core intel_uncore wmi i2c_mux
Jan 03 05:44:42 gaming kernel: pinctrl_cannonlake spi_intel button acpi_pad fan hid bluetooth ecdh_generic rfkill ecc onboard_usb_dev loop kvm_intel kvm irqbypass br_netfilter bridge stp llc atkbd libps2 serio vivaldi_fmap fuse configfs efi_pstore nfnetlink dmi_sysfs usb_storage ext4 crc32c_generic crc16 mbcache jbd2 sd_mod ahci libahci xhci_pci libata nvme crc32c_intel xhci_hcd scsi_mod nvme_core nvme_auth scsi_common dm_mod dax efivarfs autofs4
Jan 03 05:44:42 gaming kernel: CPU: 1 UID: 1000 PID: 1991 Comm: .gala-wrapped Tainted: P O 6.12.63 #1-NixOS
Jan 03 05:44:42 gaming kernel: Tainted: [P]=PROPRIETARY_MODULE, [O]=OOT_MODULE
Jan 03 05:44:42 gaming kernel: Hardware name: Gigabyte Technology Co., Ltd. Z390 UD/Z390 UD, BIOS F10 11/05/2021
Jan 03 05:44:42 gaming kernel: RIP: 0010:_nv059404rm+0xb/0x170 [nvidia]
Jan 03 05:44:42 gaming kernel: Code: 18 85 bf 0e be 00 00 2e 01 31 c0 e8 6f 6d a3 ff bf 2e 01 00 00 eb d6 0f 1f 84 00 00 00 00 00 66 0f 1f 00 41 55 41 89 d5 41 54 <53> 48 83 ed 10 48 89 f3 4c 8b 67 18 48 85 f6 0f 84 10 01 00 00 4d
Jan 03 05:44:42 gaming kernel: RSP: 0018:ffffce404549b710 EFLAGS: 00000246
Jan 03 05:44:42 gaming kernel: RAX: 00000000ffffffff RBX: ffff8bdb4a830008 RCX: 0000000000b830b0
Jan 03 05:44:42 gaming kernel: RDX: 0000000000000052 RSI: ffff8be3cc0e59c8 RDI: ffff8bdb4a831e10
Jan 03 05:44:42 gaming kernel: RBP: ffff8be3cc0e59a0 R08: 0000000000000020 R09: 0000000000000000
Jan 03 05:44:42 gaming kernel: R10: ffff8be3cc0e59c8 R11: c0000225a01b7a36 R12: ffff8be3cc0e59c8
Jan 03 05:44:42 gaming kernel: R13: 0000000000000052 R14: ffff8bdb4a831e10 R15: 0000000000000000
Jan 03 05:44:42 gaming kernel: FS: 00007f9f3447bf40(0000) GS:ffff8bea7d680000(0000) knlGS:0000000000000000
Jan 03 05:44:42 gaming kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jan 03 05:44:42 gaming kernel: CR2: 00007f4c1d5fcdb8 CR3: 0000000185a2c001 CR4: 00000000003726f0
Jan 03 05:44:42 gaming kernel: Call Trace:
Jan 03 05:44:42 gaming kernel: <TASK>
Jan 03 05:44:42 gaming kernel: _nv040575rm+0x84/0xe0 [nvidia]
Jan 03 05:44:42 gaming kernel: _nv040778rm+0x107/0x360 [nvidia]
Jan 03 05:44:42 gaming kernel: _nv034562rm+0xed/0x1f0 [nvidia]
Jan 03 05:44:42 gaming kernel: ? _nv034562rm+0xbd/0x1f0 [nvidia]
Jan 03 05:44:42 gaming kernel: _nv034530rm+0x6d5/0x11e0 [nvidia]
Jan 03 05:44:42 gaming kernel: _nv026079rm+0x1a7d/0x24f0 [nvidia]
Jan 03 05:44:42 gaming kernel: _nv013914rm+0x96/0xc0 [nvidia]
Jan 03 05:44:42 gaming kernel: ? _nv013914rm+0x56/0xc0 [nvidia]
Jan 03 05:44:42 gaming kernel: _nv013912rm+0x11a/0x260 [nvidia]
Jan 03 05:44:42 gaming kernel: ? _nv013912rm+0xb3/0x260 [nvidia]
Jan 03 05:44:42 gaming kernel: _nv053983rm+0xa0/0x480 [nvidia]
Jan 03 05:44:42 gaming kernel: ? _nv052907rm+0x30/0x30 [nvidia]
Jan 03 05:44:42 gaming kernel: ? _nv053983rm+0x36a/0x480 [nvidia]
Jan 03 05:44:42 gaming kernel: _nv039441rm+0x2ad/0x600 [nvidia]
Jan 03 05:44:42 gaming kernel: _nv043601rm+0xbd2/0x10c0 [nvidia]
Jan 03 05:44:42 gaming kernel: _nv056252rm+0x289/0x3a0 [nvidia]
Jan 03 05:44:42 gaming kernel: _nv054161rm+0xfd/0x160 [nvidia]
Jan 03 05:44:42 gaming kernel: _nv054159rm+0x5c/0x90 [nvidia]
Jan 03 05:44:42 gaming kernel: ? _nv054159rm+0x32/0x90 [nvidia]
Jan 03 05:44:42 gaming kernel: _nv014195rm+0x64/0xa0 [nvidia]
Jan 03 05:44:42 gaming kernel: ? _nv014195rm+0x28/0xa0 [nvidia]
Jan 03 05:44:42 gaming kernel: rm_kernel_rmapi_op+0x92/0x273 [nvidia]
Jan 03 05:44:42 gaming kernel: nvkms_call_rm+0x4a/0x80 [nvidia_modeset]
Jan 03 05:44:42 gaming kernel: _nv003173kms+0x4c/0x60 [nvidia_modeset]
Jan 03 05:44:42 gaming kernel: ? _nv000599kms+0xb4/0x110 [nvidia_modeset]
Jan 03 05:44:42 gaming kernel: ? _nv000599kms+0x8e/0x110 [nvidia_modeset]
Jan 03 05:44:42 gaming kernel: ? __nv_drm_gem_nvkms_map+0x6c/0xd0 [nvidia_drm]
Jan 03 05:44:42 gaming kernel: ? __nv_drm_gem_nvkms_mmap+0x16/0x40 [nvidia_drm]
Jan 03 05:44:42 gaming kernel: ? nv_drm_mmap+0xda/0x160 [nvidia_drm]
Jan 03 05:44:42 gaming kernel: ? __mmap_region+0x6f3/0xb00
Jan 03 05:44:42 gaming kernel: ? mmap_region+0x78/0xa0
Jan 03 05:44:42 gaming kernel: ? do_mmap+0x45a/0x610
Jan 03 05:44:42 gaming kernel: ? vm_mmap_pgoff+0xec/0x1c0
Jan 03 05:44:42 gaming kernel: ? ksys_mmap_pgoff+0x144/0x1e0
Jan 03 05:44:42 gaming kernel: ? do_syscall_64+0xb7/0x200
Jan 03 05:44:42 gaming kernel: ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
Jan 03 05:44:42 gaming kernel: </TASK>kernel: [drm:__nv_drm_gem_nvkms_map [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to map NvKmsKapiMemory 0x00000000c2974ac4Additional context
This was not an issue on NixOS 25.05. There it happened only sometimes that i have a black screen and a dock at the bottom. I think that is a Pantheon bug.
I did not even have many programs open that use all RAM. Only a Terminal and Steam.
Software:
Pantheon Desktop (using Wayland now)
# use proprietary gpu driver
services.xserver.videoDrivers = [ "nvidia" ];
# allow unfree firmware for nvidia
hardware.enableRedistributableFirmware = true;
nixpkgs.config = {
cudaSupport = true;
#rocmSupport = true;
};
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
nvidiaSettings = true;
open = false;
};
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.production;
Yesterday i changed open to false and added the nvidiaPackages.production. Without that i did not see the kernel crash and the system unable to suspend at all, but still the black screen (as you can see in the log files pantheon-crash.txt and pantheon-crash2.txt.
Hardware:
CPU: Intel i9-9900K
GPU: Nvidia RTX 4070
System Memory: G.Skill Ripjaws 64 GB DDR4 RAM (3200 MHz)
Type of Display Connection: DP
I had similar issues with AMD GPUs. That's why i switched to Nvidia. Ironically i have these issues again now.
System metadata
- system:
"x86_64-linux" - host os:
Linux 6.12.63, NixOS, 25.11 (Xantusia), 25.11.2793.89dbf01df72e - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.31.2 - channels(root):
"home-manager-25.11.tar.gz, nixos-25.11, nixos-24.11-24.11, nixos-hardware, nixos-unstable" - nixpkgs:
/nix/store/sac0rlr0ca9774bik89x3scbf7xrvqyd-nixos-25.11/nixos
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.