Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 41337 Details for
Bug 66670
Default battery.sh script for acpid needs to be modified
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to check for BAT0 status as many Laptops use BAT0 instead of BAT1
battery.sh_patch (text/plain), 748 bytes, created by
Bharath Ramesh
on 2004-10-07 20:38:41 UTC
(
hide
)
Description:
Patch to check for BAT0 status as many Laptops use BAT0 instead of BAT1
Filename:
MIME Type:
Creator:
Bharath Ramesh
Created:
2004-10-07 20:38:41 UTC
Size:
748 bytes
patch
obsolete
>--- battery.sh 2004-10-07 13:27:29.000000000 -0400 >+++ battery_org.sh 2004-10-07 13:28:03.000000000 -0400 >@@ -11,20 +11,6 @@ > [ "${SPEEDFREQ_SPEED}" != "auto" ] && exit 0 > > case "$2" in >- BAT0) >- if [ $4 -eq 00000001 ] && [ -f /proc/acpi/battery/BAT0/state ] ; then >- action="`cat /proc/acpi/battery/BAT0/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 >- ;; >- > BAT1) > if [ $4 -eq 00000001 ] && [ -f /proc/acpi/battery/BAT1/state ] ; then > action="`cat /proc/acpi/battery/BAT1/state | grep charging | cut -c 26-`"
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 66670
: 41337