Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 16360 Details for
Bug 26977
speedfreq-0.5.ebuild (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
The battery script for acpid
battery.sh (text/plain), 802 bytes, created by
Christian Axelsson
on 2003-08-20 03:59:54 UTC
(
hide
)
Description:
The battery script for acpid
Filename:
MIME Type:
Creator:
Christian Axelsson
Created:
2003-08-20 03:59:54 UTC
Size:
802 bytes
patch
obsolete
>#!/bin/sh ># Battery acpi script that set different speedfreq modes depending on AC adapter ># Can only handle one battery at the time, will add support for more when I get time ># ># To use this script add the following lines to /etc/acpi/events/default ># event=battery.* ># action=/etc/acpi/battery.sh %e > >set $* >source /etc/conf.d/speedfreq >if [ "$speed" = "dynamic" ] > exit > >case "$2" in > BAT1) > if [ $4 -eq 00000001 ] && \ > [ -f /proc/acpi/battery/BAT1/state ] > then > action=`cat /proc/acpi/battery/BAT1/state | grep charging \ > | cut -c 26-` > case $action in > charging) /usr/bin/speedfreq -p performance > logger "A/C adapter plugged in" > ;; > discharging) /usr/bin/speedfreq -p powersave > logger "A/C adapter plugged out" > ;; > esac > fi > ;; >esac > ># vim:ts=2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 26977
:
16358
|
16359
| 16360 |
16361
|
16362