From 44df82b148cbb028ec2b48a429424dcfc49f88e8 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Fri, 2 Aug 2024 22:15:57 -0400 Subject: move graphics config to desktop hostclass --- scripts/hostclass/desktop | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/hostclass/desktop') diff --git a/scripts/hostclass/desktop b/scripts/hostclass/desktop index d90081e..2a85f16 100644 --- a/scripts/hostclass/desktop +++ b/scripts/hostclass/desktop @@ -96,3 +96,7 @@ case $graphics_type in load_kernel_module i915kms ;; esac + +# On some graphics cards, kern.vt.suspendswitch=1 (the default) breaks graphics +# acceleration after resuming from sleep. +set_sysctl kern.vt.suspendswitch="${vt_suspendswitch:-1}" -- cgit v1.2.3