Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60067 - enhancement to speedfreq initscript to detect ac adapter status on startup
Summary: enhancement to speedfreq initscript to detect ac adapter status on startup
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on: 56593
Blocks:
  Show dependency tree
 
Reported: 2004-08-11 10:15 UTC by Geoff Mishkin
Modified: 2005-05-07 10:44 UTC (History)
0 users

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


Attachments
Modified speedfreq initscript (speedfreq,1.63 KB, text/plain)
2004-08-11 10:17 UTC, Geoff Mishkin
Details
Modified speedfreq config file (speedfreq,901 bytes, text/plain)
2004-08-11 10:18 UTC, Geoff Mishkin
Details
ACPI ac_adapter event handler script (ac_adapter.pl,146 bytes, text/plain)
2004-08-11 10:19 UTC, Geoff Mishkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff Mishkin 2004-08-11 10:15:56 UTC
I have made a small enhancement to the speedfreq initscript (/etc/init.d/speedfreq) and config file (/etc/conf.d/speedfreq) that determines the status of the AC adapter when speedfreq is started with the initscript.

It will then call a user-created script, specified in /etc/conf.d/speedfreq, which is an ACPI ac_adapter event handler that can be used, for example, to set the speedfreq policy based on the status of the AC adapter.

This is useful for me and I hope it seems useful to you.
Comment 1 Geoff Mishkin 2004-08-11 10:17:33 UTC
Created attachment 37228 [details]
Modified speedfreq initscript

For speedfreq 0.7.2-r1
Comment 2 Geoff Mishkin 2004-08-11 10:18:10 UTC
Created attachment 37229 [details]
Modified speedfreq config file

For speedfreq 0.7.2-r1
Comment 3 Geoff Mishkin 2004-08-11 10:19:26 UTC
Created attachment 37230 [details]
ACPI ac_adapter event handler script

For acpid-1.0.2-r2
Comment 4 Dennis Nienhüser (RETIRED) gentoo-dev 2005-01-02 06:50:53 UTC
Bug #70163 contains similar, an acpid event will call the update funtion of the speedfreq init script which in turn adjusts the frequency to user defined values. Maybe you like to test it, I'd appreciate some test reports (to verify it doesn't only work on my system).
Comment 5 Henrik Brix Andersen 2005-05-07 10:44:04 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.