aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-08-02 22:15:57 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-08-02 22:15:57 -0400
commit44df82b148cbb028ec2b48a429424dcfc49f88e8 (patch)
treea41bd35dc65575e4b91e7930694ca5f102cd0dfb
parentb62a287a4c77ca431370e1990f67137ae6414ecd (diff)
downloadinfrastructure-44df82b148cbb028ec2b48a429424dcfc49f88e8.tar.gz
move graphics config to desktop hostclass
-rw-r--r--scripts/hostclass/desktop4
-rw-r--r--scripts/hostclass/laptop4
2 files changed, 4 insertions, 4 deletions
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}"
diff --git a/scripts/hostclass/laptop b/scripts/hostclass/laptop
index 58dfa7f..66d4181 100644
--- a/scripts/hostclass/laptop
+++ b/scripts/hostclass/laptop
@@ -28,10 +28,6 @@ sysrc -v \
create_args_wlan0='country US regdomain FCC' \
ifconfig_wlan0="WPA DHCP powersave"
-# 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}"
-
# Hardware-specific fixes.
case ${laptop_type:-} in
thinkpad)