summaryrefslogtreecommitdiff
path: root/sys/src/cmd/reform/pm.c
AgeCommit message (Collapse)Author
2022-10-12reform/pm: lpc comms: increase delays to 80msSigrid Solveig Haflínudóttir
Apparently 60ms isn't always enough.
2022-10-08reform/pm: oops. do not invertSigrid Solveig Haflínudóttir
2022-10-08reform/pm: kbdoled: allow any size/depth of uncompressed image - convert ↵Sigrid Solveig Haflínudóttir
ourselves
2022-10-08reform/pm: kbdoled: clear the OLED on zero-length writeSigrid Solveig Haflínudóttir
2022-10-08reform/pm: provide /dev/kbdoled to display a 126x32x1 bitmap on the keyboard ↵Sigrid Solveig Haflínudóttir
OLED
2022-10-07reform/pm: power off via the keyboard firstSigrid Solveig Haflínudóttir
Now that we have a way to send HID reports, attempt to power off using the keyboard first, which should work even if LPC firmware has not been updated. It also animates a good bye message on the OLED ♥_♥
2022-10-06reform/pm: add keyboard light level controlling to /dev/lightSigrid Solveig Haflínudóttir
2022-09-08reform/pm: measure CPU temperature only when requested, disable monitoring ↵Sigrid Solveig Haflínudóttir
right away
2022-09-08reform/pm: serve lpc readouts over a queue to avoid lockups on other requestsSigrid Solveig Haflínudóttir
2022-09-08reform/pm: lpccall: read as much as possible after the command; clean upSigrid Solveig Haflínudóttir
2022-09-07reform/pm: calculate time to full (dis)charge; low→warn capacity; endless ↵Sigrid Solveig Haflínudóttir
loop protection
2022-09-07reform: add pmctl to read more info and to turn power rails off; manpagesSigrid Solveig Haflínudóttir
2022-09-07imx8/pm: provide acpi(1)-compatible battery readingsSigrid Solveig Haflínudóttir
2022-08-21move and rename MNT Reform 2 support utilies, cat manpages into oneSigrid Solveig Haflínudóttir
Aux/imx8pm and aux/wm8960 had pretty cryptic names and it made more sense to use a reform/pm and reform/audio naming, accordingly. Instead of having special mount points /mnt/pm and /mnt/wm8960, /dev is used directly, removing the need to do any manual work - stats(1) will continue showing the CPU temperature, and zuke(1) will still be able to control the volume, etc. Brightness controls were changed to a better interface - /dev/light, where each line contains a "a_thing its_light_value". This way more parts can be controlled. Right now it's only "lcd", but later it might be "kbd" and "trackball" as well. Example of lib/profile: reform/audio echo master 80 > /dev/volume reform/pm echo lcd 100 > /dev/light