diff options
| author | Craig Jennings <c@cjennings.net> | 2025-05-07 23:02:51 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-05-07 23:02:51 -0500 |
| commit | 84166860ca325ff5f28ef52191450cc4d9e18bcd (patch) | |
| tree | 9354adddf62212f598433e4c87fc9d199cb7785a /root_scripts | |
| parent | 1b86926425b623532ca4378752000c8f667fb441 (diff) | |
changed boot and sleep configs
Diffstat (limited to 'root_scripts')
| -rwxr-xr-x[-rw-r--r--] | root_scripts/boot_config.sh | 6 | ||||
| -rwxr-xr-x | root_scripts/sleep_config.sh | 14 |
2 files changed, 11 insertions, 9 deletions
diff --git a/root_scripts/boot_config.sh b/root_scripts/boot_config.sh index 94b6063..8071b2f 100644..100755 --- 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 |
