Repository navigation
Cannot start Hyprland on i915 VF #16771
Hyprland versionv0.56.2 Is this a regression?Don't know What's the bug?I have a VM with i915 VF passed to the guest. There are no kmod errors in dmesg. I've tested Vulkan and OpenCL using clpeak and VA-API with ffmpeg and I can confirm that the GPU is properly detected and working (the corresponding fields in gputop are reacting to Vulkan/OpenCL/VA-API loads) However, the final step - starting Hyprland itself doesn't work for me and stops for me on "drm: Failed checking features" and "DRM backend failed". I've tried setting Attached guest logs, if required I can also get logs from the host system, although I don't see any i915 issues here. Reproduction steps
AttachmentsI acknowledge that:
|
Replies: 1 comment 4 replies
|
The evidence:
My best guess is that the VF has no usable display, so card0 cannot act as a KMS output. I have not confirmed why this particular capability query fails. To isolate it, try the virtio-gpu card, which the log also enumerates as card1 and which has a display: If that starts, card0 is the blocker. If it fails the same way, the problem is somewhere else. I have not run this on your setup. |
Short answer: you're right, and the wiki is wrong on three points. The flag cannot make a display-less VF work, render nodes are never candidates, and a headless-only setup does not start today.
What the flag does.
AQ_NO_KMS_REQUIREMENTonly skips the KMS check inopenIfKMS:https://github.com/hyprwm/aquamarine/blob/f31c47a1b9d300847d8fc3108ad959448103dfc1/src/backend/Session.cpp#L287-L291
A card that fails that check still gets a DRM backend, and it must then pass
checkFeatures(), which requires a CRTC forDRM_CAP_CRTC_IN_VBLANK_EVENT:https://github.com/hyprwm/aquamarine/blob/f31c47a1b9d300847d8fc3108ad959448103dfc1/src/backend/drm/DRM.cpp#L725-L726
A VF with no display has no CRTC, so …