From 9903168c517f666cd335d4dbaf4e22e1c15a792a Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Fri, 18 Oct 2024 16:58:40 -0400 Subject: cleanup --- scripts/hostclass/laptop/20-laptop | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/hostclass/laptop') 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 -- cgit v1.2.3