Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 62839 Details for
Bug 98221
Patch for Tosrmo - handling "charged" battery state
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The very simple patch
battery-charged.patch (text/plain), 765 bytes, created by
lzap
on 2005-07-07 07:45:50 UTC
(
hide
)
Description:
The very simple patch
Filename:
MIME Type:
Creator:
lzap
Created:
2005-07-07 07:45:50 UTC
Size:
765 bytes
patch
obsolete
>diff -u torsmo-0.18/linux.c torsmo-0.18patched/linux.c >--- torsmo-0.18/linux.c 2004-12-21 22:20:07.000000000 +0100 >+++ torsmo-0.18patched/linux.c 2005-07-07 00:39:55.000000000 +0200 >@@ -712,6 +712,14 @@ > sprintf(last_battery_str, "discharging %d%%", > remaining_capacity * 100 / acpi_last_full); > } >+ /* charged */ >+ else if (strcmp(charging_state, "charged") == 0) { >+ if (acpi_last_full != 0 && remaining_capacity != acpi_last_full) >+ sprintf(last_battery_str, "charged %d%%", >+ remaining_capacity * 100 / acpi_last_full); >+ else >+ strcpy(last_battery_str, "charged"); >+ } > /* unknown, probably full / AC */ > else { > if (acpi_last_full != 0 && remaining_capacity != acpi_last_full)
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 98221
: 62839