diff options
| author | Craig Jennings <c@cjennings.net> | 2025-05-08 07:03:26 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-05-08 07:03:26 -0500 |
| commit | acb39673df9e88a74f6097a2ecb67b2b7142e45a (patch) | |
| tree | af59b765ae5da76f19fa8af34ab31666933202ee /root_scripts/graphics_config.sh | |
| parent | 1300cadb046d0a101fbcf815fbbfec56944f9cc2 (diff) | |
renamed sleep_config to graphics_config
Diffstat (limited to 'root_scripts/graphics_config.sh')
| -rwxr-xr-x | root_scripts/graphics_config.sh | 22 |
1 files changed, 22 insertions, 0 deletions
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 <c@cjennings.net> +# 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 + |
