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.52k stars 735 forks source link

Power management applet doesn't refresh remaining battery percentage in panel #7505

Open marko-avlijas opened 6 years ago

marko-avlijas commented 6 years ago
Cinnamon 3.6.7
Mint 18.3 64 bit
Laptop: Dell Latitude-E5540

Issue Battery status is not updated in panel. If I click on power managment applet -> Power Settings -> Batteries
it shows 86%, but in bottom panel it still shows 24%.

Reproduce Right click on power managment applet -> Configure Set Display -> Show Percentage. Wait till battery gains or loses a percent.

icarter09 commented 6 years ago

@marko-avlijas I started looking into this ticket, but am unable to reproduce the issue. When I bring up the Power Managment applet -> Batteries, I see both the Power Management applet and bottom panel are reflecting the same percentage at the same time.

I'm using Cinnamon 3.6.7 and Mint 18.3 64 bit. I'll attempt to test this out on another laptop to see if I can reproduce there.

DarwinSurvivor commented 5 years ago

I may have another way to reproduce this. On my desktop, I have a wireless mouse that reports its battery level. The applet was showing "critical" last night, so I charged it over night until the charging light on the mouse stopped flashing (confirming a full charge).

This morning the applet was still showing "critical", but if I click on it and go to "Power Settings", then the "Batteries" tab, the same mouse battery shows "Battery almost full".

Running "upower -d" reports the battery-level as "high" and the percentage as "70%", though it also says the percentage should be ignored.

Being a mouse with a removable Ni-MH AA battery, I can easily swap out good and bad batteries if you want me to run some tests to help debug the problem.

marko-avlijas commented 5 years ago

For me it is probably that some drivers changed when I ugpraded to newer Linux Mint version.

On Wed, May 1, 2019 at 8:09 PM DarwinSurvivor notifications@github.com wrote:

I may have another way to reproduce this. On my desktop, I have a wireless mouse that reports its battery level. The applet was showing "critical" last night, so I charged it over night until the charging light on the mouse stopped flashing (confirming a full charge).

This morning the applet was still showing "critical", but if I click on it and go to "Power Settings", then the "Batteries" tab, the same mouse battery shows "Battery almost full".

Running "upower -d" reports the battery-level as "high" aand the percentage as "70%", though it also says the percentage should be ignored.

Being a mouse with a removable Ni-MH AA battery, I can easily swap out good and bad batteries if you want me to run some tests to help debug the problem.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/linuxmint/cinnamon/issues/7505#issuecomment-488362980, or mute the thread https://github.com/notifications/unsubscribe-auth/ACCI5UYQNEPYXG7ZKTR6CY3PTHME5ANCNFSM4E4MEPVA .

germanfr commented 5 years ago

I'm experiencing the same issue. I have to go to the applet settings and change something so that it refreshes the values. Otherwise it always gets stuck at 100%.

bozonius commented 5 years ago

I am seeing the same behavior. In my case, the remaining power stays at whatever it was when I started the desktop session. Cinnamon 3.2.7 on a Asus T101A.

icarter09 commented 4 years ago

Linux Mint 19.2 Cinnamon 4.2.4

I did reproduce the issue after several rounds of removing/attaching the power supply to the laptop. I noticed that removing the power supply did not immediately update the power icon in the system tray and the Power Management dialog was not updated either. After waiting a few minutes, both the system tray icon updated and the Power Management dialog updated as well.

abdullahoguk commented 4 years ago

Linux Mint 20 (Upgraded from 19.3 but I had the issue before upgrading too) Cinnamon: 4.6.7 Kernel: 5.4.0-48-generic Laptop: Asus K56CM (Intel/Nvidia graphics) Graphics: Nvidia enabled

I have the same issue sometimes that battery applet is not working properly (Does not update when plunging/unplugging power adapter...). I am also unable to lock the screen and cannot enter Power Management on settings when this issue occurs. The issue might be related to both power manager and cinnamon screensaver. When I kill csd-power process from system monitor, it re spawns and both problems goes away temporarily. I put my laptop on sleep most of the time and don't restart for days/weeks.

6324