Comment 82 for bug 569273

Revision history for this message
Soos Gergely (sogerc1) wrote :

I am using 10.10 too and had a contact failure in the cable between my laptop and my charger which seemd like the AC adapter was disconnected and connected back very rapidly and very frequently. I've fixed the cable but still, every time I unplug and plug back the AC adapter gnome-power-manager's RSS goes up (about 200k), also the RSS goes upwhen the battery finishes charging.
I'm not sure what the normal memory usage of gnome-power-manager should be but before I fixed the cable gnome-power-manager consumed all my 4GB RAM in under 3 hours which was horrible. My workaround is that I restart gnome-power-manager every 15 minutes using a cronjob. The script is very simple, I copy here in case anyone needs a workaround until the bug is fixed:

--- CUT HERE ---
#!/bin/sh

export DISPLAY=:0
killall -q gnome-power-manager
gnome-power-manager >/dev/null 2>&1 &
--- CUT HERE ---

Save the text between the CUT HERE markers into a file, for example /usr/local/bin/gpmrestart, then type into a terminal
crontab -e
and enter this line:
*/15 * * * * /usr/local/bin/gpmrestart

This workaround seems not to have any sideeffect (except that the battery icon flickers every 15 minutes), I've been using it for several months.

One detail I forgot to mention: I have uninstalled indicator-applet right after I installed/upgraded my linux (because I see no reason to use it).