blob: a7b4a1d53517b20d86edf6b2669850bbe1514faf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/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-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
|