Bug#891610: why? It works.
> Please stop suggesting powermgmt-base: this is an obsolete, orphaned and
> unmantained package which I last NMU'ed myself in 2014.
No maintenance is needed there -- kernel interface hasn't changed in a long
long time. I just took a look at the package, and didn't find anything
worth the effort to improve: you can slightly optimize tests ([ -d dir ] &&
[ -d dir/subdir ] is redundant), bump standards version/etc, and that's it.
At the first glance, it is tempting to drop support for ancient interfaces
like APM or PMU, but RTFKing, I see that the only PMU driver
(drivers/macintosh/via-pmu.c) doesn't register itself in sysfs. That driver
is used only for Apple Powermacs, which are a platform not exactly likely to
see lively development, but are still supported by current unstable.
Thus, 99.99% machines will use the modern sysfs interface, while stragglers
keep working. Which can't be said about systemd, which doesn't support PMU.
> It provides the on_ac_power command which is only used on non-systemd
> systems anyway.
Newsflash: not everyone suffers from systemd -- either by choice or by
systemd not supporting people's hardware or use cases. One example are the
aforemented Apple Powermacs (ancient), another are both laptops I own, the
newer of which was released in April 2017.
powermgmt-base's on_ac_power knows about all interfaces provided by Linux,
systemd's equivalent does not. Thus, it's clearly better to use the former.
Meow!
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ A dumb species has no way to open a tuna can.
⢿⡄⠘⠷⠚⠋⠀ A smart species invents a can opener.
⠈⠳⣄⠀⠀⠀⠀ A master species delegates.
Reply to: