Skip to content
Missing features of Huawei PC Manager in Linux
Branch: master
Clone or download
Latest commit eefbb80 Apr 26, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Create LICENSE Apr 14, 2019
README.md Update README.md Apr 27, 2019
huawei_ec v0.2 Apr 15, 2019

README.md

Please see Huawei-WMI, this project is discontinued.

Huawei EC

Disclaimer: this script was written to work with model MACH-WX9 i.e. Matebook X Pro (2018). The author is not to blame if this script(s) breaks your system.

A script that enables the use of some of Huawei PC Manager features like setting battery protection settings and fn key lock state. It works by modifying the embedded controller (EC) data.

This script requires ioport to be present, specifically inb and outb.

Usage

$ sudo huawei_ec [get|set] [batpro|batthre|fnlk] [value]
  • batpro - setting battery protection on and off
  • batthre - setting battery threshold min and max values
  • fnlk - setting FN key lock on and off

TODO

  • Analyze ACPI and DSDT tables for asl methods that performs these functionality.
  • huawei_acpi kernel module that integrate these features.

References

  1. andmarios
  2. ec_sys kernel module.
  3. acer_ec.pl
  4. Using I/O ports in C programs

Credits

Thanks to andmarios for his debugging and finding where the battery threshold values are stored.

You can’t perform that action at this time.