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).
Created attachment 73394 [details, diff] xfce4-battery-ac_adapter.patch
The problem is still present in 0.3.0-r1 (which was unmasked owing to modular X, I suppose).
Could you file a bug upstream with patch please, thanks :)
(In reply to comment #3) > Could you file a bug upstream with patch please, thanks :) Done so, see URL.
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?
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)