Currently, xfce4-power-manager unconditionally displays a warning message when the battery level reaches 30%. This should be configurable. On a somewhat related note, it should be possible to set the critical battery level (which is configurable) to less than 5%. I used to use the battery monitor panel applet, where this can be set down to 1% and my laptop reliably suspends even at that level. I know this is probably not good for the battery, but it works for me and I get about 10 minutes more battery runtime when I really need it. Extending well-known Unix philosophy a bit, the rope should not prevent me from hanging myself. A warning would IMHO be a better option than flat out not allowing it. I'm using version 0.8.3.1 from Debian testing.
(In reply to comment #0) > Currently, xfce4-power-manager unconditionally displays a warning message when > the battery level reaches 30%. This should be configurable. > The warning level is calculated from the critical level configured by the user. > On a somewhat related note, it should be possible to set the critical battery > level (which is configurable) to less than 5%. I used to use the battery > monitor panel applet, where this can be set down to 1% and my laptop reliably > suspends even at that level. I know this is probably not good for the battery, > but it works for me and I get about 10 minutes more battery runtime when I > really need it. This makes sense, actually this is implemented already in git, now the minimum allowed level is 1%. Will be released soon. Let me know if this is enough.
(In reply to comment #1) > The warning level is calculated from the critical level configured by the user. Hmm, it doesn't seem to be. The warning I mean seems to be coming from xfpm-battery.c, line 121: case BATTERY_CHARGE_LOW: return adapter_present ? _("Your battery charge is low") : _("System is running on low power"); BATTERY_CHARGE_LOW is set on line 335: else if ( percentage >= critical_level && percentage < 30) { *state = BATTERY_CHARGE_LOW; return _("charge is low"); } > This makes sense, actually this is implemented already in git, now the minimum > allowed level is 1%. > > Will be released soon. > > Let me know if this is enough. This would of course be great. I had a look at http://git.xfce.org/apps/xfce4-power-manager/tree/src/xfpm-xfconf.c and 5% still seems to be the minimum for CRITICAL_POWER_LEVEL; is there some other git tree you are referring to?
(In reply to comment #2) > (In reply to comment #1) > > The warning level is calculated from the critical level configured by the user. > > Hmm, it doesn't seem to be. The warning I mean seems to be coming from > xfpm-battery.c, line 121: > case BATTERY_CHARGE_LOW: > return adapter_present ? _("Your battery charge is low") : _("System is > running on low power"); > > BATTERY_CHARGE_LOW is set on line 335: > else if ( percentage >= critical_level && percentage < 30) > { > *state = BATTERY_CHARGE_LOW; > return _("charge is low"); > } > Ah okay, yeah you right, it should be calculated from the critical charge level. > > This makes sense, actually this is implemented already in git, now the minimum > > allowed level is 1%. > > > > Will be released soon. > > > > Let me know if this is enough. > > This would of course be great. I had a look at > http://git.xfce.org/apps/xfce4-power-manager/tree/src/xfpm-xfconf.c and 5% > still seems to be the minimum for CRITICAL_POWER_LEVEL; is there some other git > tree you are referring to? There is a patch lost somewhere that was supposed to go in 0.8.4, i don't know what happened, but the minimum charge level for 0.8.4 was supposed to be 1%, i'm sorry will be fixed for the next release.