Install

EC ACPI Linux kernel driver

Arch Linux

Note

This has been tested on Linux 6.17 but may work on future versions.

  1. Install the packages dkms, linux-headers, and unzip.

    sudo pacman -S dkms linux-headers unzip
    
  2. Download the librem-ec-dkms project from librem-ec-dkms.

  3. Move to the download location (typically ~/Downloads/) and extract the project.

    cd ~/Downloads/
    unzip ./librem-ec-acpi-dkms-master.zip
    
  4. Copy the file dkms.conf from the debian/ directory to the root of the source directory.

    cp debian/librem-ec-acpi-dkms.dkms dkms.conf
    
  5. Modify the dkms.conf file in a text editor so that PACKAGE_VERSION is 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"
    
  6. 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
    
  7. Reboot your computer.

  8. lsmod should show the librem_ec_acpi module.

    lsmod | grep librem_ec_acpi
    librem_ec_acpi         20480  0
    
  9. 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

  10. You can check the values with the commands:

    • cat /sys/class/power_supply/BAT0/charge_control_start_threshold
      40
      
    • cat /sys/class/power_supply/BAT0/charge_control_end_threshold
      95