aboutsummaryrefslogtreecommitdiff
path: root/scripts/hostclass/laptop
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/hostclass/laptop')
-rw-r--r--scripts/hostclass/laptop/20-laptop8
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