From acb39673df9e88a74f6097a2ecb67b2b7142e45a Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 8 May 2025 07:03:26 -0500 Subject: renamed sleep_config to graphics_config --- root_scripts/graphics_config.sh | 22 ++++++++++++++++++++++ root_scripts/sleep_config.sh | 21 --------------------- 2 files changed, 22 insertions(+), 21 deletions(-) create mode 100755 root_scripts/graphics_config.sh delete mode 100755 root_scripts/sleep_config.sh (limited to 'root_scripts') diff --git a/root_scripts/graphics_config.sh b/root_scripts/graphics_config.sh new file mode 100755 index 0000000..9606f65 --- /dev/null +++ b/root_scripts/graphics_config.sh @@ -0,0 +1,22 @@ +#!/bin/sh +# Craig Jennings +# script sets up sleep with lid closed after install +# adapted from instructions on stevengharms.com +# to test +# - 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-61-kmod + +# update sysctl.conf for sleep state +# note: not working; the laptop never wakes from sleep +# echo "hw.acpi.lid_switch_state=S3" >> /etc/sysctl.conf + +# update rc.conf +sysrc kld_list+=i915kms + +# ensure you and root are in the video group +pw groupmod video -m cjennings,root + diff --git a/root_scripts/sleep_config.sh b/root_scripts/sleep_config.sh deleted file mode 100755 index 3e0cb2d..0000000 --- a/root_scripts/sleep_config.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -# Craig Jennings -# script sets up sleep with lid closed after install -# adapted from instructions on stevengharms.com -# to test -# - 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-61-kmod - -# update sysctl.conf -echo "hw.acpi.lid_switch_state=S3" >> /etc/sysctl.conf - -# 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