Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56593 - sys-apps/speedfreq: New battery.sh
Summary: sys-apps/speedfreq: New battery.sh
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 52616 (view as bug list)
Depends on: 70163
Blocks: 60067
  Show dependency tree
 
Reported: 2004-07-10 02:34 UTC by fbusse
Modified: 2005-05-07 10:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
New battery.sh script (battery.sh,760 bytes, application/x-shellscript)
2004-07-10 02:35 UTC, fbusse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fbusse 2004-07-10 02:34:40 UTC
The current battery.sh script checks for the state of BAT1 to decide if the AC is online. I think, that's not a good idea (e.g. my notebooks battery is BAT0), instead, it should check for the state of /proc/acpi/ac_adapter/AC.
Attached is an updated battery.sh that checks if the AC is on- or off-line.
Works for me (I changed /etc/acpi/event/default to "event=ac_adapter.*").
See also #52616
Comment 1 fbusse 2004-07-10 02:35:28 UTC
Created attachment 35099 [details]
New battery.sh script
Comment 2 fbusse 2004-08-09 05:45:33 UTC
Anybody responsible for this bug? No response for over a month and really simple to fix.
Comment 3 Guillaume Destuynder (RETIRED) gentoo-dev 2004-11-29 11:28:16 UTC
*** Bug 52616 has been marked as a duplicate of this bug. ***
Comment 4 Dennis Nienhüser (RETIRED) gentoo-dev 2005-01-02 06:01:32 UTC
Fridtjof, are you still using speedfreq? If you are, maybe you'd like to see bug #70163 and test if it works for you. Some positive test reports might speed up getting it into portage ;-)
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2005-01-28 23:23:01 UTC
Is the solution in bug 70163 ok for you?
Comment 6 fbusse 2005-01-29 02:51:46 UTC
Bug 70163 doesn't work for me since it depends for some reason on sys-apps/powermgmt-base which isn't in portage. I don't like the way it puts the whole battery-handling into /etc/init.d/speedfreq as well, it should stay in /etc/acpi IMO.
Even if I remove the dependency, I get an error in the runscript (on_ac_power: command not found. Too lazy to investigate this since my changed battery.sh works fine with my without being intrusive.
Comment 7 Henrik Brix Andersen 2005-05-07 10:43:56 UTC
sys-power/speedfreq is deprecated in favor of sys-power/cpufreqd due to unresolved bugs and lack of upstream activity.

If you would like to see this fixed, please contact upstream.