惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
博客园_首页
S
SegmentFault 最新的问题
罗磊的独立博客
博客园 - 【当耐特】
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
D
Docker
雷峰网
雷峰网
Google DeepMind News
Google DeepMind News
博客园 - 司徒正美
V
V2EX
大猫的无限游戏
大猫的无限游戏
V
Visual Studio Blog
腾讯CDC
宝玉的分享
宝玉的分享
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理
T
Tailwind CSS Blog
Vercel News
Vercel News
H
Help Net Security
博客园 - Franky
D
DataBreaches.Net
aimingoo的专栏
aimingoo的专栏

Arch Linux Forums

Avidemux crashes without strace / Applications & Desktop Environments how to apply patches with non-linux linends / Newbie Corner Replicating CachyOS on vanilla Arch (or at least getting close) / Arch Discussion What's arch linux GUI package manager ? / Newbie Corner Hibernation failing due to insufficient memory / System Administration profiledef.sh editting question / Installation trying to script kde plasma wallpaper settings / Programming & Scripting Looking for new Audacious package maintainer / Creating & Modifying Packages issues installing arch with LUKS2 encryption / Newbie Corner QEMU PXE booting does not work with OVMF.4m.fd / Applications & Desktop Environments Wired lan regular disconnect / Newbie Corner Need Help setting up ARCH in my G16 G634JZR iwlwifi started failing consistently, trying to determine root cause Windows randomly jumping between monitors after GNOME 50 update No display via DP or HDMI after boot. / Kernel & Hardware how to change acpi platform_profile? / Newbie Corner Linux denied all kernel modules which not loaded right now Use iPhone as Webcam for Arch Linux Video Output Failure on nvidia-580xx-dkms on TTY --> Desktop switch (Page 2) / Kernel & Hardware I was going to rant ..WINE32 Sabotage compliments of Arvind Krishna / Arch Discussion [SOLVED] LUKS drive auto unlocked by TPM when expected not to / Networking, Server, and Protection Hibernate/suspend from X = dark panel; from TTY = works (ASUS G14, hyb (Page 2) / Laptop Issues Headphone jack noise/buzz / Newbie Corner segmentation fault in cc1plus when building CLK / AUR Issues, Discussion & PKGBUILD Requests Console alternative to meld / GNU/Linux Discussion Problem with paru git clone / Newbie Corner XKB questions / Applications & Desktop Environments gnome-keyring-daemon is not working correctly / Applications & Desktop Environments [SOLVED] Steam opens and immediately closes constantly / Newbie Corner Firefox rounded edges on Sway / Applications & Desktop Environments
KWin Wayland defaults to NVIDIA (card0) instead of Intel ...
ifazral · 2026-06-21 · via Arch Linux Forums

Hello everyone,

I am running a fully up-to-date, vanilla Arch Linux system on an ASUS Optimus laptop (Intel i7-13650HX & NVIDIA RTX 4060). I am using KDE Plasma 6 (Wayland) inside a systemd-boot environment with Unified Kernel Images (UKI). (ASUS ROG Strix G16 G614JV (2023))

The issue: At boot, the NVIDIA dGPU always gets assigned to `card0`, while the Intel iGPU gets assigned to `card1`. Because of this hardware/driver initialization order, `kwin_wayland` automatically hooks into the NVIDIA card (occupying ~7MiB of VRAM and keeping the dGPU awake at 1W-4W during idle desktop usage).

What I have tried:
1. I checked my kernel command line; I do not have `nvidia_drm.fbdev=1` active anymore (it was removed from the UKI profile).
2. I tried rearranging the `MODULES=(...)` array inside `/etc/mkinitcpio.conf` to force load `i915` and `xe` before `nvidia`, but the dGPU still wins the race and becomes `card0`.
3. Trying to force KWin via `KWIN_DRM_DEVICES` to use `card1` causes the Plasma session to crash into a Core Dump during login.

It seems like the UEFI/BIOS initializes the PCIe lanes for the dGPU slightly faster than the iGPU, forcing the kernel to register NVIDIA first. Is there a reliable way to solve this layout issue under Wayland without breaking the session?

Here are my system logs:
- DRI by-path output: https://paste.rs/eBIJ9
- bootctl list output: https://paste.rs/TTTUf
- nvidia-smi output: https://paste.rs/GdngY
- Full journalctl -b 0: https://paste.rs/0xu9a

Thank you in advance for your time and help!

Last edited by ifazral (Today 14:57:01)