I have two batteries for my laptop of differing capacities. I took out the larger battery today and hot swapped it for the smaller battery as I had not used it in a while an I wanted to make sure it didn't discharge too far. (Note: Technically it is probably more accurate to call it a "warm" swap. I basically went to suspend, but mainly for convenience because I have to shut the lid to flip the unit over to swap batteries, and my system is set to suspend when the lid closes.)

But after swapping the battery, the Xfce Power Manager reports strange values. For instance, it said it would take about 60 hours to charge the battery. After a couple of hours it has charged up to 80% and is still saying close to 6 hours are left to charge. Under devices it says that fully charged the battery is 66.2Wh. But if I swap back to the larger battery the battery name (e.g. LG 45NXXXX) doesn't change, and the battery size doesn't change either. This is making me wonder if it thinks the smaller battery is still the larger battery and might try to overcharge it thinking it has the higher capacity.

Is this something I need to worry about? Is there some command I can run to "reset" things so it properly recognizes the new battery?


The command xfce4-power-manager --restart will restart the running power manager instance. You may also use the command xfce4-power-manager --no-daemon which may be useful in debugging to possibly determine if/why power manager is picking up erroneous values.

xfce4-power-manager gets support for devices from the upowerd daemon.

In order to pick up changes to reported device IDs and capacity, you may need to also restart that service. This can be done with the command sudo systemctl restart upower.

To see the device details directly from upower, use the command upower -d.

Your output will be something like this:

  native-path:          BAT0
  vendor:               LGC
  model:                42T4969
  serial:               805
  power supply:         yes
  updated:              Thu 02 Jan 2020 04:06:00 PM PST (56 seconds ago)
  has history:          yes
  has statistics:       yes
    present:             yes
    rechargeable:        yes
    state:               fully-charged
    warning-level:       none
    energy:              72.9825 Wh
    energy-empty:        0 Wh
    energy-full:         73.926 Wh
    energy-full-design:  93.5952 Wh
    energy-rate:         0 W
    voltage:             12.627 V
    percentage:          98%
    capacity:            78.9848%
    technology:          lithium-ion
    icon-name:          'battery-full-charged-symbolic'
  • The first command made the charge on the smaller battery jump to 100% (which makes me wonder if there is indeed some danger of overcharging) but it otherwise did not fix the misreported model id and capacity. – Michael Jan 2 at 23:52
  • @Michael power manager is picking up device information from upowerd. It doesn't expose that info directly itself. So there may be processes other than the power manager that may need to be restarted if a reboot is not an option. I would expect a reboot to pick up the changes. – Kevin Bowen Jan 3 at 0:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.