Install¶
EC ACPI Linux kernel driver¶
Alpine Linux and derivatives:
sudo apk add librem-ecPureOS:
sudo apt install librem-ec-acpi-dkms
Arch Linux¶
Note
This has been tested on Linux 6.17 but may work on future versions.
Install the packages
dkms,linux-headers, andunzip.sudo pacman -S dkms linux-headers unzip
Download the
librem-ec-dkmsproject fromlibrem-ec-dkms.Move to the download location (typically
~/Downloads/) and extract the project.cd ~/Downloads/ unzip ./librem-ec-acpi-dkms-master.zipCopy the file
dkms.conffrom thedebian/directory to the root of the source directory.cp debian/librem-ec-acpi-dkms.dkms dkms.conf
Modify the dkms.conf file in a text editor so that
PACKAGE_VERSIONis set to a value.PACKAGE_NAME="librem_ec_acpi" PACKAGE_VERSION="1.0" BUILT_MODULE_NAME[0]="librem_ec_acpi" DEST_MODULE_LOCATION[0]="/updates/dkms" AUTOINSTALL="yes"
Add and build the module using
dkms.sudo dkms add ./ sudo dkms build librem_ec_acpi/1.0 sudo dkms install librem_ec_acpi/1.0
Reboot your computer.
lsmodshould show thelibrem_ec_acpimodule.lsmod | grep librem_ec_acpi librem_ec_acpi 20480 0
You should also see new files to control the battery:
/sys/class/power_supply/BAT0/charge_control_start_threshold/sys/class/power_supply/BAT0/charge_control_end_threshold
You can check the values with the commands:
cat /sys/class/power_supply/BAT0/charge_control_start_threshold 40cat /sys/class/power_supply/BAT0/charge_control_end_threshold 95