From 84166860ca325ff5f28ef52191450cc4d9e18bcd Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 7 May 2025 23:02:51 -0500 Subject: changed boot and sleep configs --- root_scripts/boot_config.sh | 6 +++--- root_scripts/sleep_config.sh | 14 ++++++++------ 2 files changed, 11 insertions(+), 9 deletions(-) mode change 100644 => 100755 root_scripts/boot_config.sh (limited to 'root_scripts') diff --git a/root_scripts/boot_config.sh b/root_scripts/boot_config.sh old mode 100644 new mode 100755 index 94b6063..8071b2f --- a/root_scripts/boot_config.sh +++ b/root_scripts/boot_config.sh @@ -3,13 +3,13 @@ # speeds and tidies the boot sequence # disable devil icon in boot menu -echo "loader_logo='none'" >> /boot/loader.conf +sysrc -f /boot/loader.conf loader_logo="none" # reduce default wait time before boot -echo "autoboot_delay=2" >> /boot/loader.conf +sysrc -f /boot/loader.conf autoboot_delay=2 # cover kernel diagnostics -echo "boot_mute='YES'" >> /boot/loader.conf +sysrc -f /boot/loader.conf boot_mute="YES" diff --git a/root_scripts/sleep_config.sh b/root_scripts/sleep_config.sh index 12f8202..a7b4a1d 100755 --- a/root_scripts/sleep_config.sh +++ b/root_scripts/sleep_config.sh @@ -3,17 +3,19 @@ # script sets up sleep with lid closed after install # adapted from instructions on stevengharms.com # to test -# - -# - -# - - -# update sysctl.conf -echo "hw.acpi.lid_switch_state=S3" >> /etc/sysctl.conf +# - kldstat should show i915kms.ko is installed +# - emulate the lid closing with acpiconf -s3 +# - now close and open the lid. you should come out of sleep # install graphics driver pkg install -y drm-515-kmod +# update sysctl.conf +sysrc -f /etc/sysctl.conf hw.acpi.lid_switch_state=S3 + +# update rc.conf sysrc kld_list="i915kms" +# ensure you and root are in the video group pw groupmod video -M cjennings,root -- cgit v1.2.3