Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#22540 - pm-utils: restore power scripts or really get rid of all power functionality

Attached to Project: Arch Linux
Opened by (Lavandero) - Friday, 21 January 2011, 16:50 GMT
Last edited by Jan de Groot (JGC) - Friday, 21 January 2011, 17:26 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

A recent pm-utils update (for some reason) removed all the shell scripts for power throttling.

Besides disagreeing with this hackjob, there's still
/usr/bin/on_ac_power
/usr/bin/pm-is-supported
and their respective manpages. These are all of course broken because there's no point to them if the scripts are removed. There are probably more items that are broken/should be removed in addition to the scripts.

The maintainer also seems to be misguided about the script's purpose. A comment in the PKGBUILD implies that the scripts automatically engaged when the battery status changed, which is untrue.

tl;dr: either remove power completely instead of doing half the work, or just restore the upstream defaults that really don't harm anything.
This task depends upon

Closed by  Jan de Groot (JGC)
Friday, 21 January 2011, 17:26 GMT
Reason for closing:  Not a bug
Comment by (Lavandero) - Friday, 21 January 2011, 16:52 GMT
Sorry, pm-is-supported is unrelated. Still stands for the other script.
Comment by Jan de Groot (JGC) - Friday, 21 January 2011, 17:26 GMT
The scripts in power.d are run when switching from battery power to ac or the other way around. They are removed because many of those scripts are broken: they just assume settings that nobody wants and don't restore settings correctly when coming back to AC-power. Upstream broke it completely. The fixes I did by removing all power.d scripts is the same way as Fedora fixed it.
As for upstream defaults: if upstream cared about it, they would have maintained it. These power.d scripts are completely broken for months and so far no commits have been made to git after releasing the last final version.

Loading...