Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 580520 Details for
Bug 727717
Gnome 3 Battery status icon / Upowerd problem
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
tentative patch for the acpi_battery_refresh() case
battery-refresh.diff (text/plain), 653 bytes, created by
Martin Wilck
on 2012-04-26 16:46:53 UTC
(
hide
)
Description:
tentative patch for the acpi_battery_refresh() case
Filename:
MIME Type:
Creator:
Martin Wilck
Created:
2012-04-26 16:46:53 UTC
Size:
653 bytes
patch
obsolete
>741dc9890044a7757401e18bf30af9a5520eebcf >diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c >index 86933ca..c7c3f60 100644 >--- a/drivers/acpi/battery.c >+++ b/drivers/acpi/battery.c >@@ -643,10 +643,13 @@ static int acpi_battery_update(struct acpi_battery *battery) > > static void acpi_battery_refresh(struct acpi_battery *battery) > { >+ int old_power_unit; > if (!battery->bat.dev) > return; >- >+ old_power_unit = battery->power_unit; > acpi_battery_get_info(battery); >+ if (old_power_unit == battery->power_unit) >+ return; > /* The battery may have changed its reporting units. */ > sysfs_remove_battery(battery); > sysfs_add_battery(battery);
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 727717
:
516514
|
521065
|
580504
| 580520 |
580521