Drop support for queries and commands that are not supported by ACPI's
/dev/apm interface. This includes dropping support for
enabling/disabling APM BIOS used by /etc/rc.d/apm.
Details
- Reviewers
imp
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 77224 Build 74107: arc lint + arc unit
Event Timeline
| usr.sbin/apm/apm.c | ||
|---|---|---|
| 109 | I'm glad to see you kept this sutff.... It's required for Emacs to display battery stuff right | |
| usr.sbin/apm/apm.8 | ||
|---|---|---|
| 13 | Well, an i386 world can still be built in 16.0. Only the kernel is being removed entirely in 16.0, world is still going to be around. | |
| 17 | Control still matters (you can still use this to initiate a suspend), but I did miss updating this and can figure out something. | |
| 24–26 | Except that the name is "APM" which comes from "APM BIOS", unlike, say, acpiconf which also reports this information via ACPI ioctls. I'm not sure we can backronym it to "ACPI power management" either. This tool only exists as a compatibility shim. Possibly it should be deprecated entirely, but I personally use it frequently on my own laptop. I guess it might be fine to move that to history though. | |
| usr.sbin/apm/apm.c | ||
| 109 | This is the thing I actually use all the time. It's debatable if outputting the APM version and enable/disable status is truly meaningful, but I worried about breaking tools that might be parsing this output. | |
| usr.sbin/apm/apm.8 | ||
|---|---|---|
| 24–26 |
I did not know that. What is the "canon" thing I am supposed to do to check my battery and if my charger is working on acpi/amd64?
If the shoe fits... :) | |
| usr.sbin/apm/apm.8 | ||
|---|---|---|
| 24–26 | The canonical tool for ACPI would be acpiconf for battery status, and probably a sysctl for A/C line status, but it's not packaged up as neatly as apm(8). If one changed apm(8) to use ACPI ioctls on /dev/acpi0 and trim some of the irrelevant bits you could probably make this an ACPI tool instead. That's a bit more work, but this commit is a step in that direction. | |
Still like the commit.
I'd be tempted to remove apm -Z and apm -z entirely, to be honest, since it's a poor fit with ACPI and zzz has replaced it.
| usr.sbin/apm/apm.8 | ||
|---|---|---|
| 24–26 | In reality, this program exists primarily to report state of the battery to emacs. :) The .Nm utility reports battery and power line state using the old APM interfaces. yes, that skips over the ability to suspend, but that's a footnote, at best, for how this utility is used today. | |