Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113275 - xfce4-battery-0.3.0 does not see ac_adapter status
Summary: xfce4-battery-0.3.0 does not see ac_adapter status
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: XFCE Team
URL: http://bugzilla.xfce.org/show_bug.cgi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-22 12:16 UTC by Ulrich Müller
Modified: 2007-01-20 14:23 UTC (History)
1 user (show)

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


Attachments
xfce4-battery-ac_adapter.patch (xfce4-battery.patch,1.87 KB, patch)
2005-11-22 12:18 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2005-11-22 12:16:37 UTC
On a HP Compaq nc6120 laptop, the battery plugin does not see the ac_adapter
status. It will always report AC connected. Similar issue for thermal_zone.

See also:
<http://developer.berlios.de/bugs/?func=detailbug&bug_id=5401&group_id=910>

Attached patch fixes the problem for me (and I hope it is a general solution).
Comment 1 Ulrich Müller gentoo-dev 2005-11-22 12:18:59 UTC
Created attachment 73394 [details, diff]
xfce4-battery-ac_adapter.patch
Comment 2 Ulrich Müller gentoo-dev 2006-01-27 08:55:20 UTC
The problem is still present in 0.3.0-r1 (which was unmasked owing to modular X, I suppose).
Comment 3 Brad Cowan (RETIRED) gentoo-dev 2006-02-17 13:05:45 UTC
Could you file a bug upstream with patch please, thanks :)
Comment 4 Ulrich Müller gentoo-dev 2006-02-18 02:37:09 UTC
(In reply to comment #3)
> Could you file a bug upstream with patch please, thanks :)

Done so, see URL.
Comment 5 Ulrich Müller gentoo-dev 2006-04-10 02:03:39 UTC
So... -r2 is out, adding an ac_adapter.patch that has even more "special cases" for the name of the AC adapter directory in /proc. Of course, it still does not work for the HP nc6120 (the directory is called "C172" there).

Now I wonder what is wrong with my more general solution (see attachment) that it was not considered instead?
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2007-01-20 14:23:26 UTC
Fixed in 0.4.90.2 by UPSTREAM. 0.4.90.3 is in Portage. Bug is closed RESOLVED, FIXED by UPSTREAM. Following lead..

(Nobody is intrested fixing minor bugs of 4.2 plugins since 4.4 should be released tomorrow according to xfce-dev mailinglist)