aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-10-18 16:57:05 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-10-18 16:57:05 -0400
commitccf1846f079f7d529d2f7542c1084a8b6697ff2e (patch)
tree3a89319371ff78d4886fc190d2ae2e725d348341
parent02ae0cb64f08938f3b01b5ed69293d705b0a7279 (diff)
downloadinfrastructure-ccf1846f079f7d529d2f7542c1084a8b6697ff2e.tar.gz
cleanup
-rw-r--r--scripts/hostclass/laptop/20-laptop7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/hostclass/laptop/20-laptop b/scripts/hostclass/laptop/20-laptop
index dba2c5f..fc2f700 100644
--- a/scripts/hostclass/laptop/20-laptop
+++ b/scripts/hostclass/laptop/20-laptop
@@ -21,16 +21,17 @@ sysrc -v ifconfig_ue0='DHCP'
# Install laptop packages.
pkg install -y networkmgr
-# Misc power saving stuff.
-set_loader_conf \
- vfs.zfs.txg.timeout=10 \
+# Increase ZFS timeout to save battery.
+set_loader_conf vfs.zfs.txg.timeout=10
+# Set intel power saving options.
if [ "$graphics_type" = intel ]; then
set_loader_conf \
compat.linuxkpi.i915_disable_power_well=1 \
compat.linuxkpi.i915_enable_dc=2
fi
+# Load appropriate WiFi drivers.
case ${wireless_type:-} in
iwm*)
set_loader_conf \