diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-10-18 16:58:40 -0400 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-10-18 16:58:40 -0400 |
commit | 9903168c517f666cd335d4dbaf4e22e1c15a792a (patch) | |
tree | 6b32fdae604411c5030c8365ccb727a58f08dc53 | |
parent | ccf1846f079f7d529d2f7542c1084a8b6697ff2e (diff) | |
download | infrastructure-9903168c517f666cd335d4dbaf4e22e1c15a792a.tar.gz |
cleanup
-rw-r--r-- | scripts/hostclass/laptop/20-laptop | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/hostclass/laptop/20-laptop b/scripts/hostclass/laptop/20-laptop index fc2f700..5c9cfd0 100644 --- a/scripts/hostclass/laptop/20-laptop +++ b/scripts/hostclass/laptop/20-laptop @@ -1,9 +1,5 @@ #!/bin/sh -# Enable thinkpad hardware features. -load_kernel_module acpi_ibm -set_loader_conf acpi_ibm_load=YES - # Set USB power savings usbconfig | awk -F: '{ print $1 }' | xargs -rtn1 -I% usbconfig -d % power_save ||: install_file /etc/rc.local @@ -57,6 +53,10 @@ sysrc -v \ # Hardware-specific fixes. case ${laptop_type:-} in thinkpad) + # Load the IBM thinkpad kernel module for hardware buttons. + load_kernel_module acpi_ibm + set_loader_conf acpi_ibm_load=YES + # Set brightness using function keys. set_sysctl dev.acpi_ibm.0.handlerevents='0x10 0x11' install_file -m 0555 /usr/local/libexec/thinkpad-brightness |