From 25a4e8495c00a0e202bd9aa081f78f1d50ae56e7 Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Tue, 18 Jun 2024 11:16:58 +0200 Subject: [PATCH] Use of software rendering by default Hardware acceleration can be enabled by setting the qvm-service gpu-accel to a truthy value. Fixes: https://github.com/QubesOS/qubes-issues/issues/9268 For: https://github.com/QubesOS/qubes-core-admin-client/pull/294 --- appvm-scripts/etc/profile.d/qubes-gui.csh | 7 +++++-- appvm-scripts/etc/profile.d/qubes-gui.sh | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/appvm-scripts/etc/profile.d/qubes-gui.csh b/appvm-scripts/etc/profile.d/qubes-gui.csh index aeb1abdd..2e88cc95 100644 --- a/appvm-scripts/etc/profile.d/qubes-gui.csh +++ b/appvm-scripts/etc/profile.d/qubes-gui.csh @@ -1,2 +1,5 @@ -setenv DISPLAY ":0" -setenv _JAVA_AWT_WM_NONREPARENTING "1" +setenv DISPLAY ":0" _JAVA_AWT_WM_NONREPARENTING "1" +if ( -f /var/run/qubes-service/software-rendering ) + setenv GSK_RENDERER "cairo" GDK_DEBUG "gl-disable vulkan-disable" \ + LIBGL_ALWAYS_SOFTWARE "1" +endif diff --git a/appvm-scripts/etc/profile.d/qubes-gui.sh b/appvm-scripts/etc/profile.d/qubes-gui.sh index 9e10d14a..522fe588 100644 --- a/appvm-scripts/etc/profile.d/qubes-gui.sh +++ b/appvm-scripts/etc/profile.d/qubes-gui.sh @@ -1 +1,5 @@ export DISPLAY=:0 _JAVA_AWT_WM_NONREPARENTING=1 +if test -f /var/run/qubes-service/software-rendering; then + export GSK_RENDERER="cairo" GDK_DEBUG="gl-disable vulkan-disable" \ + LIBGL_ALWAYS_SOFTWARE=1 +fi