Minimal ACPI EC platform driver for the GX4HRXL.
It owns the 4 KiB EC XRAM window at 0xFED50000, serializes all access, and
exposes a small kernel interface. Fan curves, TCC and settings stay in the
mech-forza-control Python CLI.
- MECHREVO GX4HRXL — DMI must match both
MECHREVOandGX4HRXL. - ACPI device
INOU0000exposing the0xFED50000, length0x1000memory resource.
sudo pacman -S --needed dkms linux-headers # or your kernel's headers package
makepkg -siThe package installs the sources under /usr/src/mechrevo-ec-<pkgver>/, builds
the module with DKMS on install and on every kernel upgrade, and installs
60-mechrevo-ec.rules, which sets /dev/mechrevo-ec to 0660 root:wheel.
The module has two jobs:
- Expose the standard interfaces — keyboard backlight, battery charge
thresholds, fan speeds and performance profile show up through the regular
LED,
power_supply,hwmonandplatform_profileclasses, so desktop environments and generic tools need no extra software. - Provide a raw bridge —
/dev/mechrevo-ecgives serialized access to the EC XRAM for registers the classes do not cover.mech-forza-controlis one consumer (fan curves, TCC, mode settings).
| File | Content |
|---|---|
docs/safety.md |
resource ownership, permissions, teardown, ApExistFlag lifecycle |
docs/interfaces.md |
ioctl ABI, sysfs attributes, charge-threshold mapping |
docs/charge-limit-report.md |
original charge-limit field investigation |