linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.57k stars 745 forks source link

System Settieng / Power management, shows one battery only #7745

Open luismanson opened 6 years ago

luismanson commented 6 years ago
 * Cinnamon version 3.8.7
 * Distribution - Mint 19
 * i915 / Intel 620
 * 64 bit

issue

Hello, i have noticed that in system settings under power management, the batteries tab shows only one battery, while my system has two, which are correctly shown under power@cinnamon

Steps to reproduce

have two batteries

Expected behaviour

two batteries being listed

Other information

real-or-random commented 6 years ago

I can confirm this. upower shows two batteries but the power management panel shows only the first one.

real-or-random commented 6 years ago

I think the bug is here: https://github.com/linuxmint/Cinnamon/blob/7e96eb9a6a121be29020ed8ea2fb4e45341d6da5/files/usr/share/cinnamon/cinnamon-settings/modules/cs_power.py#L392 As far as I can tell, the battery will only be displayed if it's full or empty. By the way I don't see a reason why an additional battery should be treated differently than the primary one when it comes to displaying.

Vahan86 commented 4 years ago

@luismanson, is this still an issue in Cinnamon 4.2?

luismanson commented 4 years ago

I'm not currently using Cinnamon. I can try 4.2 next week if you need

real-or-random commented 4 years ago

I can confirm that this is still an issue in Cinnamon 4.4

icarter09 commented 4 years ago

@real-or-random you do have Always show all batteries in the Power Manager settings enabled correct?

real-or-random commented 4 years ago

@real-or-random you do have Always show all batteries in the Power Manager settings enabled correct?

This bug report is about the "Power Management" settings module, which does not have such a setting.

The "Always show all batteries" setting is a setting in the "Power Manager" applet. (And enabling it does not affect the settings module of course.)

sublime238 commented 4 years ago

When I lock the screen , both batteries are visible in upper right corner. So here it works correct as in panel.

sublime238 commented 4 years ago

Sometimes both are visible, when unplug and plug again the power , or I take out the second battery and put it in again. image

airasim commented 3 years ago

I'm running Cinnamon 4.8.6 and still have the same problem.

Like in issue #9024 upower -d shows a virtual combined device named "DisplayDevice" after the two physically batteries.

Wouldn't it be possible to just use this device for power management?