Low battery notification never refreshed
This was originally posted on bugzilla.
Currently, when a laptop goes low on battery, a notification pops up with a text:
_("Approximately %s remaining (%.0f%%)"), remaining_text, percentage);
However, this text is only refreshed when the battery category status change (moving to critical, etc.). This is a problem since usually this notification appears when it remains 20 minutes and change to critical at 5 minutes left. During 15 minutes you will get a "Approximately 20 minutes" remaining while it's actually not. Sometime you have not enough time left to plug it and it shutdowns.
Since the notification uses the remaining time and percentage of available battery, I would advise to connect such signals as well so that notification is always up-to-date with system information.
The original patch is attached. Some concerns must be addressed though.0001-power-manager-refresh-low-battery-notifications-when.patch