GNOME Bugzilla – Bug 327963
Battery low warning repeated many times a minute.
Last modified: 2006-01-25 19:59:53 UTC
We should only notify the user at 20, 10, 5 and 2 minutes. This is a blocker for the next release I think, as I get many notifications a second when my battery is low.
We should fix this when fixing bug 326743 Should be pretty simple to fix in gpm-manager we just need a private variable recording the prev_remaining_time and then check if remaining_time <= notification_time < prev_remaining_time
Created attachment 58070 [details] [review] initial patch Using the time we last notified doesn't work right for me, and is quite confusing to debug. It also doesn't work for the per-percentage case. I've attached this patch, and I've tested it over a couple of charge/discharge cycles and it seems to work as expected, no more duplicate notifications. It look okay to you guys?
I've committed this now, as it fixes the bug. We can argue about the text or other changes later if required.