[Goodies-dev] [Bug 3533] New: battery-plugin unresponsive during /proc reads
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Wed Sep 5 11:28:12 CEST 2007
DO NOT REPLY TO THIS EMAIL. Also, do not reply via email to the person
whose email is mentioned below. To comment on this bug, please visit:
http://bugzilla.xfce.org/show_bug.cgi?id=3533
Summary: battery-plugin unresponsive during /proc reads
Product: Xfce Panel Plugins
Version: unspecified
Platform: PC (x86)
OS/Version: Linux
Status: NEW
Severity: normal
Priority: Medium
Component: battery
AssignedTo: goodies-dev at xfce.org
ReportedBy: firejump at o2.pl
User-Agent: Mozilla/5.0 (X11; U; Linux i686; pl; rv:1.8.1.3)
Gecko/20070508 Firefox/2.0.0.3
Build Identifier:
[ I posted this to goodies-dev earlier, but got no response, so I'm posting it
here as well ]
I've got some problems with interface responsiveness in
xfce4-battery-plugin, that is - the tooltip showed up much too late, and
the configuration dialog was hardly usable - I had to wait a few seconds
after each click for the interface to react. This is due to the fact
that reading battery & AC /proc entries blocks the whole application
for ~2 seconds.
I've found two ways to solve this problem (and I think that both should
be available in xfce4-battery-plugin):
1. Reading those files in a separate thread.
2. Checking battery & AC status from /sys entries instead (which can be
read without blocking the interface). This is possible on linux
2.6.23-rc3-mm1 with some patches(*) from linux-acpi mailing list, and
should be available in stable kernel soon. I use it currently and
haven't found any bugs yet, so I thought I'd share this solution as
well.
I include both patches (they're separate now, but merging them
shouldn't be a big problem). I'm new to this project - and
open-source development in general - so they aren't probably done the
Right Way. Criticism welcome :)
Reproducible: Always
--
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Goodies-dev
mailing list