Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Garbled Image When Running Hyprland in QEMU with GVT-d Device #245

@growler

Description

@growler

I have encountered an issue with garbled images when running Hyprland in QEMU with a GVT-d device. The same configuration works with GNOME/Xwayland (though the cursor is missing, which I believe can be fixed with enough effort). I tried the workaround suggested in #142, but I keep receiving the error: 'qemu: GtkGLArea Console lacks DMABUF support'. I'm currently stuck and out of ideas, and would greatly appreciate any assistance.

vm start script:

exec /nix/store/jizyxcl0fhz616a75knj3lcfcd6b6psm-qemu-host-cpu-only-9.1.0/bin/qemu-kvm \
  -name beaker \
  -m 4096 \
  -smp 4 \
  -object memory-backend-memfd,id=mem,size=4G,share=on \
  -numa node,memdev=mem \
  -device vfio-pci,sysfsdev=/sys/bus/mdev/devices/f0778e7a-5e82-40c9-bd5b-8c2f3ea39db9,display=on,x-igd-opregion=on \
  -display gtk,gl=on \
  -vga none \
  ...
   -kernel /nix/store/xsdfiv78drqvg4as154qn3y8g789kl5h-nixos-system-beaker-24.11.20240911.159be5d/kernel \
   -initrd /nix/store/wd0xdjn28gkkk16c3favmpzq232v4d9n-initrd-linux-6.6.50/initrd \
   -append "i915.enable_dc=0 i915.enable_guc=0 ..."

Here is the same configuration running Xwayland / Gnome

Screenshot from 2024-09-14 12-29-55

And the current Hyprland (hyprland-0.43.0+date=2024-09-12_73b9756):

Screenshot from 2024-09-14 12-35-48

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions