- Go 36.1%
- Python 31.7%
- QML 29.7%
- Makefile 1.5%
- Shell 1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
AGENTS.md slimmed to checks, rules and map; API, power profiles, GUI and packaging moved to .claude/rules/; real check, running and known pitfalls moved to docs/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
| .claude/rules | ||
| docs | ||
| gui | ||
| internal | ||
| packaging/aur | ||
| systemd | ||
| .gitignore | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| go.mod | ||
| LICENSE | ||
| main.go | ||
| main_test.go | ||
| Makefile | ||
| README.md | ||
acerctl
Control Acer laptop features on Linux — what Acer Care Center does on Windows.
Same shape as asusctl: a small root service, acerd, owns the hardware and re-applies your
settings at boot; the acerctl CLI and the acerctl-gui desktop app talk to it over a unix socket.
Features
| Feature | Backend | Status |
|---|---|---|
| Battery status and health (capacity vs design) | power_supply sysfs |
works |
| Temperatures | hwmon sysfs | works |
| 80% charge limit | acer-wmi-battery kernel module | works, needs the module |
| Power profiles (factory / quiet / balanced / performance) | ryzenadj | works on AMD Ryzen, needs ryzenadj |
| CPU fan speed (read only) | embedded controller via ec_sys |
known models only (see Hardware) |
| Desktop app with tray icon | acerctl-gui (PySide6 + QML) |
works |
| Fan control | — | not possible on the tested model (see below) |
Hardware
Tested on: Acer Aspire A515-45G (Ryzen 5 5500U, Radeon RX 640), BIOS V1.52, CachyOS.
Battery, temperatures and the charge limit use generic kernel interfaces and should work on any Acer laptop
that acer-wmi-battery supports. Power profiles work on Ryzen laptops that ryzenadj supports. The fan speed
is read from an embedded-controller offset taken from the model's ACPI tables, so it shows only on models
listed in internal/hw/fans.go; other models simply show no fan. Reports from other models are welcome.
Fan control is not offered: on the A515-45G the firmware's Acer gaming WMI fan methods answer "not supported" (they are meant for Nitro/Predator models), and writing the embedded controller directly is a risk acerctl does not take.
Install
From source
Needs Go 1.22+.
make test
make build && sudo make install
sudo systemctl daemon-reload
sudo systemctl enable --now acerd
make install puts acerctl in /usr/bin (PREFIX, default /usr), the acerd unit, and two modules-load.d
files: acer-wmi-battery.conf (the module does not autoload on its own) and acerctl-ec.conf (ec_sys,
read only, for the fan speed). They load at the next boot; to have them now:
sudo modprobe acer_wmi_battery ec_sys
Optional pieces, each one independent — without it acerctl shows that feature as unavailable and the rest keeps working:
| For | Arch package |
|---|---|
| 80% charge limit | acer-wmi-battery-dkms-git (AUR) |
| Power profiles | ryzenadj |
| Desktop app | pyside6 (and qt6-tools to build the translations) |
Arch Linux (AUR)
acerctl-git (service and CLI) and acerctl-gui-git (desktop app) — not published yet; the PKGBUILD is
in packaging/aur/ and builds with makepkg.
Use
acerctl status # battery, charge limit, power profile, temperatures, fan
acerctl status --json # the same, as acerd's JSON
acerctl battery limit on # cap charging at 80% (off: charge to 100%)
acerctl profile # show the power profile and the limits in force
acerctl profile balanced # factory | quiet | balanced | performance
The socket (/run/acerctl/acerctl.sock) is usable by the wheel group; change it with
acerctl daemon --group <name> in the unit. Settings are kept in /var/lib/acerctl/state.json and
re-applied at boot.
Power profiles
factory is the default: acerd writes nothing and the firmware decides. The others set the CPU power and
temperature limits through ryzenadj:
| Profile | Sustained / boost | Tctl limit | Measured on the A515-45G (vs factory, 12-thread load) |
|---|---|---|---|
| quiet | 10 / 13 W | 70 °C | −20…28% performance, −8…15 °C |
| balanced | 15 / 20 W | 80 °C | −11…13% performance, about −8 °C |
| performance | 25 / 30 W | 85 °C | the factory limits held still: +1…5% performance, +2…5 °C |
The profiles change heat and, most likely, battery life; they barely change fan noise (the fan follows its
own curve, about −7% between quiet and factory). The firmware overwrites the limits every ~15 s under load,
so acerd re-reads them every 2 s (--power-interval) and writes the profile back only when they changed.
ryzenadj reaches the CPU through /dev/mem, which needs Secure Boot off (kernel lockdown none);
with Secure Boot on it needs the ryzen_smu module instead. --ryzenadj <path> picks another executable.
Desktop app
acerctl-gui is a small panel that opens from its tray icon in the bottom-right corner and hides when you
click elsewhere: battery (level, charge state, health), the power profile with the last five minutes of CPU
power, temperature and fan speed, and the main temperatures. The settings page holds the 80% charge limit,
start at login, language (English, Italian, or the system's) and theme (light, dark, or the system's). The
tray icon shows the battery level in the colour of the profile and has a quick menu.
make gui && sudo make install-gui
acerctl-gui # --tray starts it hidden in the tray
From the source tree: make gui && gui/acerctl-gui. Under Wayland it runs through XWayland, so the panel can
sit in the corner.
Safety
- Only acerd writes to the hardware; the CLI and the app only ask it.
- The embedded controller is only read, never written; nothing touches the BIOS.
- Profiles stay within the CPU's documented range (sustained ≤ 25 W).
Develop without root
go run . daemon --socket /tmp/acerd.sock --state /tmp/acerd.json --group ""
ACERCTL_SOCKET=/tmp/acerd.sock go run . status
ACERCTL_SOCKET=/tmp/acerd.sock gui/acerctl-gui
--sysfs-root <dir> points acerd at a fake sysfs tree; --ryzenadj internal/power/testdata/fake-ryzenadj.sh
(with FAKE_RYZENADJ_DIR set) stands in for ryzenadj. AGENTS.md and .claude/rules/ describe the code and the API.