mate-desktop / mate-power-manager

Power management tool for the MATE desktop
https://mate-desktop.org
GNU General Public License v2.0
59 stars 52 forks source link

Battery symbol disappears after a while #402

Open munzelthecat opened 2 weeks ago

munzelthecat commented 2 weeks ago

Expected behaviour

Actual behaviour

On my Notebook, after a while the battery symbol in the bar disappears. a restart of mate-power-manager in the terminal is not possible.

Steps to reproduce the behaviour

Work with the notebook and wait.

MATE general version

Mate 1.26.2

Package version

mate-power-manager 1.26.1+mint1

Linux Distribution

Linux Mint 22 Mate

Link to bugreport of your Distribution (requirement)

https://termbin.com/xobh

lukefromdc commented 1 week ago

If you open mate-system-monitor and go to the "processes" tab, you can see if mate-system-monitor is still running or not. If mte-power-manager does not show up in this list of processes, it has crashed, or maybe frozen.

Try running killall -9 mate-power-manager first, then mate-power-manager and if this does not bring back the battery icon, please post whatever text you get in the terminal window from the second command

munzelthecat commented 1 week ago

Hello,

here are the messages after mate-power-manager

(mate-power-manager:3469): PowerManager-WARNING **: 18:23:52.231: Failed to get session for pid 3469: The name org.freedesktop.ConsoleKit was not provided by any .service files

(mate-power-manager:3469): PowerManager-WARNING **: 18:23:52.236: could not map keysym 1008ffa8 to keycode
lukefromdc commented 1 week ago

Neither of those should cause a delayed crash. Does it keep running in terminal, or does it exit?

munzelthecat commented 1 week ago

As long as the terminal remains open, the battery symbol will be visible. If the terminal is closed, it disappears.

munzelthecat commented 1 week ago

It seems to be a problem where the hardware (of the battery?) could play a role, or there are two problems.

I noticed today that the battery symbol did not disappear, but the charge level did not change for a long time and the battery LED on the notebook began to flash (which remains so even after a shutdown). Also acpi -V showed the wrong charge level.
With killall -9 mate-power-manager I ended the battery display and then ran mate-power-manager. The error message then also appeared.

~$ mate-power-manager

(mate-power-manager:5036): PowerManager-WARNING **: 20:20:53.960: Failed to get session for pid 5036: The name org.freedesktop.ConsoleKit was not provided by any .service files

(mate-power-manager:5036): PowerManager-WARNING **: 20:20:53.965: could not map keysym 1008ffa8 to keycode
lukefromdc commented 1 week ago

Wen running mate-power-manager from terminal, for the icon to disappear when the terminal i closed is the expected behavior, as closing the terminal also closes processes started from it that are holding the prompt.

If you run mate-power-manager & that will send the process to the background and let you keep the icon showing. If it disappears after a while again, restarted without the& keep the terminal window open, and post whatever text shows up when the icon disappears

lukefromdc commented 1 week ago

If this is being caused by a hardware issue, that could mean nobody without the same hardware problem can duplicate it. Seems to me there is almost always something on a laptop whose makers only support Windows that doesn't work right or doesn't work at all in Linux. I've had two HP laptops in a row where the touchpad isn't detected at all so a separate mouse is required.

munzelthecat commented 5 days ago

Maybe it is a hardware issue. With dmesg I could find this:

[ 1335.708554] mate-power-mana[2014]: segfault at 7265706c7a ip 0000785dcb3cacd8 sp 00007ffd331ceb88 error 4 in libgobject-2.0.so.0.8000.0[785dcb39d000+37000] likely on CPU 1 (core 0, socket 0)
[ 1335.708573] Code: 8d 15 8c 54 02 00 48 c1 e9 02 4c 8b 0c ca 4d 85 c9 74 07 41 f6 41 16 20 75 36 48 8b 38 48 81 ff fc 03 00 00 76 3c 48 83 e7 fc <f6> 47 16 10 74 05 4d 85 c9 75 4d 31 c0 c3 66 2e 0f 1f 84 00 00 00