GitXplorerGitXplorer
a

huawei_ec

public
8 stars
0 forks
0 issues

Commits

List of commits on branch master.
Verified
eefbb80c4ab13f1e82718fb555a53abec00eaaa3

Update README.md

aaymanbagabas committed 6 years ago
Unverified
754a31b32dcc97ddfd1f34a2d35675e4af25fdfd

v0.2

aaymanbagabas committed 6 years ago
Unverified
e2ee43bdf0e9cbf054101f7126619cf29f5e3213

Merge branch 'master' of github.com:aymanbagabas/huawei_ec

aaymanbagabas committed 6 years ago
Unverified
a71095d5e2dc0647b277d5cf517d0b7ad7e32a33

Update README

aaymanbagabas committed 6 years ago
Verified
e81ece21a42f549bc0470d91e4bada5c7d91cd01

Create LICENSE

aaymanbagabas committed 6 years ago
Unverified
2f4813f220e195e0a63b8f78bc4fa9a723833828

copyrights

aaymanbagabas committed 6 years ago

README

The README file for this repository.

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.