You are not logged in.

#1 2024-09-17 12:41:10

clifford
Member
Registered: 2024-09-17
Posts: 5

Setting KWIN_DRM_DEVICES triggers black scrren after sddm

System info:
                   -`                    clifford@archlinux
                  .o+`                   ------------------
                 `ooo/                   OS: Arch Linux x86_64
                `+oooo:                  Host: ROG Zephyrus M16 GU603HM 1.0
               `+oooooo:                 Kernel: 6.10.10-zen1-1.1-zen
               -+oooooo+:                Uptime: 10 mins
             `/:-:++oooo+:               Packages: 1497 (pacman)
            `/++++/+++++++:              Shell: bash 5.2.32
           `/++++++++++++++:             Resolution: 2560x1440
          `/+++ooooooooooooo/`           DE: Plasma 6.1.5
         ./ooosssso++osssssso+`          WM: kwin
        .oossssso-````/ossssss+`         Theme: Breeze [GTK2/3]
       -osssssso.      :ssssssso.        Icons: WhiteSur [GTK2/3]
      :osssssss/        osssso+++.       Terminal: konsole
     /ossssssss/        +ssssooo/-       CPU: 11th Gen Intel i7-11800H (16) @ 4.600GHz
   `/ossssso+/:-        -:/+osssso+-     GPU: Intel TigerLake-H GT1 [UHD Graphics]
  `+sso+:-`                 `.-/+oso:    GPU: NVIDIA GeForce RTX 3060 Mobile / Max-Q
`++:.                           `-/+/   Memory: 7888MiB / 39784MiB
.`                                 `/

NVIDIA-SMI 560.35.03              Driver Version: 560.35.03      CUDA Version: 12.6 

Error message from dmesg:

Sep 17 20:12:28 archlinux kernel:  nvidia_modeset(OE) video wmi nvidia(OE)
Sep 17 20:12:28 archlinux kernel: CPU: 12 PID: 222 Comm: nv_queue Tainted: G        W  OE      6.10.10-zen1-1.1-zen #1 adbca975dddb893913b1b982ba8a1de4f5b017ef
Sep 17 20:12:28 archlinux kernel: Hardware name: ASUSTeK COMPUTER INC. ROG Zephyrus M16 GU603HM/GU603HM, BIOS GU603HM.317 06/27/2023
Sep 17 20:12:28 archlinux kernel: RIP: 0010:follow_pte+0x1c2/0x1f0
Sep 17 20:12:28 archlinux kernel: Code: c3 cc cc cc cc 48 25 00 00 00 c0 48 09 d0 c4 e2 f8 f2 c7 75 20 e8 5e e3 ff ff 48 8b 15 b7 46 73 01 48 81 e2 00 00 00 c0 eb 8c <0f> 0b 48 3b 1f 0f 83 6c fe ff ff 41 be ea ff ff ff eb b6 48 8b 7d
Sep 17 20:12:28 archlinux kernel: RSP: 0018:ffffabeb00fefb78 EFLAGS: 00010246
Sep 17 20:12:28 archlinux kernel: RAX: 0000000000000000 RBX: 00007174ce286000 RCX: ffffabeb00fefbb8
Sep 17 20:12:28 archlinux kernel: RDX: ffffabeb00fefbb0 RSI: 00007174ce286000 RDI: ffff8f99f1b1a958
Sep 17 20:12:28 archlinux kernel: RBP: ffffabeb00fefbb8 R08: 0000000000000010 R09: ffffffffffffffff
Sep 17 20:12:28 archlinux kernel: R10: 00007b604280afff R11: ffff8f9ba489e1c0 R12: ffffabeb00fefbb0
Sep 17 20:12:28 archlinux kernel: R13: ffff8f99db73f900 R14: ffffabeb00fefd20 R15: ffffffffffffffff
Sep 17 20:12:28 archlinux kernel: FS:  0000000000000000(0000) GS:ffff8fa323600000(0000) knlGS:0000000000000000
Sep 17 20:12:28 archlinux kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 17 20:12:28 archlinux kernel: CR2: 0000754447d15c70 CR3: 00000009f7420003 CR4: 0000000000f70ef0
Sep 17 20:12:28 archlinux kernel: PKRU: 55555554
Sep 17 20:12:28 archlinux kernel: Call Trace:
Sep 17 20:12:28 archlinux kernel:  <TASK>
Sep 17 20:12:28 archlinux kernel:  ? follow_pte+0x1c2/0x1f0
Sep 17 20:12:28 archlinux kernel:  ? __warn.cold+0x8e/0xf5
Sep 17 20:12:28 archlinux kernel:  ? follow_pte+0x1c2/0x1f0
Sep 17 20:12:28 archlinux kernel:  ? report_bug+0xe7/0x210
Sep 17 20:12:28 archlinux kernel:  ? handle_bug+0x3c/0x80
Sep 17 20:12:28 archlinux kernel:  ? exc_invalid_op+0x19/0xc0
Sep 17 20:12:28 archlinux kernel:  ? asm_exc_invalid_op+0x1a/0x20
Sep 17 20:12:28 archlinux kernel:  ? follow_pte+0x1c2/0x1f0
Sep 17 20:12:28 archlinux kernel:  follow_phys+0x49/0x110
Sep 17 20:12:28 archlinux kernel:  untrack_pfn+0x59/0x160
Sep 17 20:12:28 archlinux kernel:  zap_page_range_single+0x222/0x260
Sep 17 20:12:28 archlinux kernel:  unmap_mapping_range+0x116/0x140
Sep 17 20:12:28 archlinux kernel:  ? __pfx__main_loop+0x10/0x10 [nvidia 5d5c3523bfb312b48789bc5e67410922ff19312c]
Sep 17 20:12:28 archlinux kernel:  nv_revoke_gpu_mappings+0x67/0xb0 [nvidia 5d5c3523bfb312b48789bc5e67410922ff19312c]
Sep 17 20:12:28 archlinux kernel:  RmHandleIdleSustained+0x3b/0x140 [nvidia 5d5c3523bfb312b48789bc5e67410922ff19312c]
Sep 17 20:12:28 archlinux kernel:  ? gpumgrGetGpu+0x69/0xa0 [nvidia 5d5c3523bfb312b48789bc5e67410922ff19312c]
Sep 17 20:12:28 archlinux kernel:  rm_execute_work_item+0xda/0x150 [nvidia 5d5c3523bfb312b48789bc5e67410922ff19312c]
Sep 17 20:12:28 archlinux kernel:  _main_loop+0x95/0x150 [nvidia 5d5c3523bfb312b48789bc5e67410922ff19312c]
Sep 17 20:12:28 archlinux kernel:  kthread+0xcf/0x100
Sep 17 20:12:28 archlinux kernel:  ? __pfx_kthread+0x10/0x10
Sep 17 20:12:28 archlinux kernel:  ret_from_fork+0x31/0x50
Sep 17 20:12:28 archlinux kernel:  ? __pfx_kthread+0x10/0x10
Sep 17 20:12:28 archlinux kernel:  ret_from_fork_asm+0x1a/0x30
Sep 17 20:12:28 archlinux kernel:  </TASK>
Sep 17 20:12:28 archlinux kernel: ---[ end trace 0000000000000000 ]---
Sep 17 20:12:28 archlinux kernel: ------------[ cut here ]------------
Sep 17 20:12:28 archlinux kernel: WARNING: CPU: 12 PID: 222 at include/linux/rwsem.h:80 follow_pte+0x1c2/0x1f0
Sep 17 20:12:28 archlinux kernel: Modules linked in: ufs hfsplus hfs cdrom minix msdos jfs nls_ucs2_utils xfs ext4 mbcache jbd2 udp_diag tcp_diag inet_diag rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device xt_nat xt_tcpudp veth xt_conntrack xt_MASQUERADE nf_conntrack_netlink xfrm_user xfrm_algo ip6table_nat ip6table_filter ip6_tables iptable_nat nf_nat nf_conntrack xt_addrtype iptable_filter br_netfilter bridge stp llc xt_TPROXY nf_tproxy_ipv6 nf_tproxy_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 overlay uhid cmac algif_hash algif_skcipher af_alg bnep hid_asus btusb btrtl uvcvideo btintel videobuf2_vmalloc btbcm uvc btmtk videobuf2_memops videobuf2_v4l2 bluetooth videodev videobuf2_common crc16 mc usbhid snd_hda_codec_realtek snd_hda_codec_generic snd_hda_scodec_component xe vfat fat drm_gpuvm drm_exec gpu_sched drm_suballoc_helper drm_ttm_helper joydev mousedev hid_multitouch hid_generic snd_sof_pci_intel_tgl snd_sof_pci_intel_cnl snd_sof_intel_hda_generic soundwire_intel soundwire_cadence snd_sof_intel_hda_common snd_sof_intel_hda_mlink
Sep 17 20:12:28 archlinux kernel:  snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_hdac_hda snd_soc_acpi_intel_match soundwire_generic_allocation snd_soc_acpi intel_uncore_frequency soundwire_bus intel_uncore_frequency_common intel_tcc_cooling x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm snd_soc_avs snd_soc_hda_codec snd_hda_ext_core crct10dif_pclmul crc32_pclmul snd_soc_core polyval_clmulni polyval_generic mt7921e gf128mul mt7921_common snd_compress ghash_clmulni_intel ac97_bus mt792x_lib snd_pcm_dmaengine snd_hda_codec_hdmi sha512_ssse3 snd_hda_intel mt76_connac_lib sha1_ssse3 snd_intel_dspcfg mt76 aesni_intel snd_intel_sdw_acpi i915 crypto_simd snd_hda_codec processor_thermal_device_pci_legacy cryptd processor_thermal_device iTCO_wdt mac80211 mei_hdcp mei_pxp ee1004 processor_thermal_wt_hint intel_pmc_bxt libarc4 rapl drm_buddy snd_hda_core i2c_algo_bit processor_thermal_rfim iTCO_vendor_support r8169 ttm ucsi_acpi intel_rapl_msr snd_hwdep asus_nb_wmi intel_cstate processor_thermal_rapl
Sep 17 20:12:28 archlinux kernel:  cfg80211 i2c_i801 snd_pcm asus_wmi realtek intel_rapl_common intel_lpss_pci typec_ucsi spi_nor drm_display_helper processor_thermal_wt_req snd_timer platform_profile mdio_devres mei_me i2c_smbus intel_lpss intel_uncore mtd snd sparse_keymap thunderbolt cec wmi_bmof pcspkr processor_thermal_power_floor typec libphy i2c_mux mei rfkill processor_thermal_mbox soundcore i2c_hid_acpi intel_gtt idma64 intel_soc_dts_iosf roles i2c_hid intel_pmc_core int3403_thermal intel_vsec int340x_thermal_zone int3400_thermal pmt_telemetry acpi_pad acpi_thermal_rel asus_wireless pmt_class pinctrl_tigerlake acpi_tad mac_hid vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) pkcs8_key_parser i2c_dev crypto_user dm_mod loop nfnetlink zram ip_tables x_tables btrfs blake2b_generic libcrc32c crc32c_generic serio_raw xor raid6_pq atkbd sdhci_pci libps2 vivaldi_fmap cqhci nvme sdhci crc32c_intel nvme_core sha256_ssse3 xhci_pci spi_intel_pci mmc_core spi_intel xhci_pci_renesas nvme_auth i8042 serio nvidia_drm(OE) nvidia_uvm(OE)

I was wondering how to solve this problem.

Offline

#2 2024-09-17 16:10:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,146

Re: Setting KWIN_DRM_DEVICES triggers black scrren after sddm

Potentially expected, what are you setting it to, why do you think you want to set it, what end goal do you seek?

General "defaults" should be you run on the intel card for most purposes and run prime-run from the nvidia-prime package for specific and intended workloads. If you don't want to do that by far the best option is an UEFI level switch to completely disable the integrated card in favor of the nvidia card.

General caveat, Wayland and nvidia anything requires you to set the "nvidia_drm.modeset=1" kernel parameter: https://wiki.archlinux.org/title/Kernel_parameters

PS: Please wrap command outputs in [ code ] [ /code ] tags without spaces in the future.

Last edited by V1del (2024-09-17 16:11:47)

Offline

#3 2024-09-17 16:25:36

clifford
Member
Registered: 2024-09-17
Posts: 5

Re: Setting KWIN_DRM_DEVICES triggers black scrren after sddm

I set it because my laptop can't disable intel gpu. But I want to use discrete gpu only. Luckily, I have solve my problem. I mistake plug the cable into one port that actually links to intel gpu. And the zen kernel also has some problems with the Nvidia driver. When I use lts kernel and plug the cable into the right port.It works. Anyway, thanks for answering my questions. And I will also keep a mind to the format in the future.

Offline

Board footer

Powered by FluxBB