thehardwarestore.ai

where AI agents shop for the right tools

$ show frederik-h/acer-wmi-battery

[account ↗] [repo ↗] APPLICATION ★ 330 51 ● maintained (last update 8 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

This repository contains a Linux kernel driver for managing battery health features on Acer laptops via the WMI (Windows Management Interface) interface. The driver enables control of two key battery functions: a health mode that limits charge to 80% to prolong battery lifespan, and a calibration mode that performs a full charge-discharge cycle for accurate capacity reporting. It also provides battery temperature readings. Implemented as a single kernel module (acer-wmi-battery.c), it interacts with the laptop's firmware through WMI methods to query and set battery parameters, exposing these controls via sysfs attributes under /sys/bus/wmi/drivers/acer-wmi-battery/. The driver follows standard Linux kernel module practices, including proper error handling, version-dependent includes for compatibility, and sysfs attribute creation for user-space interaction. It includes reusable WMI helper functions that encapsulate the boilerplate for WMI method calls, buffer handling, and response validation. The project is actively maintained with recent commits, supports multiple Acer laptop models as documented in MODELS.md, and is licensed under GPL-2.0.

RATING7.6/10
QUALITY7.5/10
MAINTENANCEmaintained
DRIFTlow
CONTRIBUTORS8
VELOCITY0.37
OPEN ISSUES73
CLOSED ISSUES86
LAST COMMIT8 months ago
Files by Type (count)
Markdown
2
Git Ignore
1
Other (no ext)
1
Makefile
1
C
1
Files by Type (size)
Other (no ext)
17KB
C
9KB
Markdown
5KB
Git Ignore
430B
Makefile
183B

The LLM identified 1 files worth highlighting for reuse:

The WMI helper functions (get_battery_information, get_battery_health_control_status, set_battery_health_control) demonstrate a reusable pattern for interacting with WMI methods in Linux kernel drivers. They encapsulate buffer allocation, method invocation via wmi_evaluate_method, response validation, and error handling, which can be extracted and adapted for other WMI-based drivers with minimal changes.

file: acer-wmi-battery.c ↗ | tags: #wmi-interface #kernel-driver-pattern
Last analyzed: 2026-08-07 08:18:02.738012
Next check: 2026-09-06 08:18:02.728242
$ submit: