FS#66168 - [qemu] Enable gtk support

Attached to Project: Arch Linux
Opened by Abdulkadir Furkan Şanlı (abdulocracy) - Wednesday, 08 April 2020, 11:43 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 08 April 2020, 16:04 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Please enable gtk support for qemu, this was fixed in  bug 38965  but seems to have regressed, as I cannot use the gtk display.


Additional info: https://bugs.archlinux.org/task/38965
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 08 April 2020, 16:04 GMT
Reason for closing:  Not a bug
Comment by Abdulkadir Furkan Şanlı (abdulocracy) - Wednesday, 08 April 2020, 11:52 GMT
It looks like opengl is also disabled in the latest build, seems to have been removed with the overhaul here: https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/qemu&id=78f57e8e383300a513733f8013a1a7dbed2030e4
Comment by Abdulkadir Furkan Şanlı (abdulocracy) - Wednesday, 08 April 2020, 12:08 GMT
I'm not sure if it's because the gtk and gl extensions are disabled, but I'm having trouble using a gtk display following this page linked to on the wiki: https://blog.bepbep.co/posts/gvt/

Specifically with this part of my libvirt xml:

<qemu:commandline>
<qemu:arg value='-set'/>
<qemu:arg value='device.hostdev0.x-igd-opregion=on'/>
<qemu:arg value='-set'/>
<qemu:arg value='device.hostdev0.display=on'/>
<qemu:arg value='-display'/>
<qemu:arg value='gtk,gl=on'/>
<qemu:env name='DISPLAY' value=':1'/>
<qemu:env name='GDK_SCALE' value='1.0'/>
</qemu:commandline>

Everything works with SPICE, but when using the gtk display I get an error:

Error starting domain: internal error: process exited while connecting to monitor: Unable to init server: Could not connect: Connection refused
2020-04-08T12:10:27.399271Z qemu-system-x86_64: OpenGL is not supported by the display
Comment by Abdulkadir Furkan Şanlı (abdulocracy) - Wednesday, 08 April 2020, 15:25 GMT
Turns out I was making a mistake with configuration, can be closed.

Loading...