You are not logged in.

#1 2020-06-06 08:54:42

mergen
Member
Registered: 2019-10-27
Posts: 11

[SOLVED]Show energy information in KDE battery icon menu does not work

In KDE plasma desktop the "show battery information" item in the menu of battery icon in the system tray does not show the battery related info.

The following line shows up every time I click on it in the output of journalctl -ef :

qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 10254, resource id: 60817413, major code: 18 (ChangeProperty), minor code: 0

I tried installing acpi, acpid and enabling upower expecting it be remedied but to no avail.

If there is no solution I am going to submit a bug yet I do not know the package to which this is related. Could you also inform about this?

Last edited by mergen (2021-04-18 15:51:37)

Offline

#2 2020-06-07 11:23:41

Malvineous
Member
From: Brisbane, Australia
Registered: 2011-02-03
Posts: 189
Website

Re: [SOLVED]Show energy information in KDE battery icon menu does not work

Did you install all the programs with Pacman?  XCB errors can sometimes happen if there is a mismatch between library versions, e.g. you upgraded Xorg with Pacman but are running a utility you had installed from the AUR which hasn't been recompiled after the update.

The problem is that the program is having difficulty displaying something on the screen (BadWindow means it tried to display something in a window that has already been closed) so it's usually either a programming error or a mismatch between library versions (e.g. they might have changed the way the values are sent between programs, so this program, still using the old scheme, is now sending incompatible values across causing the error).

Usually doing a system upgrade, and possibly reinstalling programs from the AUR that are up to date but were installed a while ago, fixes the problem.  If not, then it's probably a bug.

Offline

#3 2020-06-07 20:17:30

mergen
Member
Registered: 2019-10-27
Posts: 11

Re: [SOLVED]Show energy information in KDE battery icon menu does not work

Did you install all the programs with Pacman?

yes. I have installed some applications through trizen yet nothing related to qt or kde except for freecad.

I have reinstalled freecad dependencies, now building freecad.

Recently QT framework was upgraded to 5.15. Still, KDE has not been upgraded. Might this be the cause?

If this turns out to be a bug after rebuilding, how do I submit the bug?

Offline

#4 2020-06-08 07:30:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,420

Re: [SOLVED]Show energy information in KDE battery icon menu does not work

The relevant packages should have been updated. That line doesn't necessarily have to be due to an issue. Do you get battery information with

upower --dump

?

Online

#5 2020-06-08 07:33:47

mergen
Member
Registered: 2019-10-27
Posts: 11

Re: [SOLVED]Show energy information in KDE battery icon menu does not work

Do you get battery information with `upower --dump`?

yes, I do

Offline

#6 2020-09-03 11:00:33

mergen
Member
Registered: 2019-10-27
Posts: 11

Re: [SOLVED]Show energy information in KDE battery icon menu does not work

The problem still persists after clean install, could not find any solution so far

Offline

#7 2020-09-03 21:19:55

fistrosan
Member
Registered: 2020-04-01
Posts: 168

Re: [SOLVED]Show energy information in KDE battery icon menu does not work

I get the same journalctl messages and yet my KDE desktop shows the correct battery information. As far as I know KDE handles everything pertaining the battery with powerdevil so maybe pacman -S powerdevil (logout and back in) will solve your problems ?

Offline

#8 2020-09-04 07:41:07

mergen
Member
Registered: 2019-10-27
Posts: 11

Re: [SOLVED]Show energy information in KDE battery icon menu does not work

I did what you said but nothing changed. My battery percentage is also correct but I want to see what drains the battery and charge history.

Offline

#9 2020-09-04 07:50:10

fistrosan
Member
Registered: 2020-04-01
Posts: 168

Re: [SOLVED]Show energy information in KDE battery icon menu does not work

I understood that KDE gives you NO (as in 0.0) information at all about the battery. Now you say you get at least the % ... was this also true before installing powerdevil ?

Now you seem to have a different question: you want to see what drains your battery. I would definitely recommend tlp (https://wiki.archlinux.org/index.php/Tlp) over upower. You can monitor everything with

 tlp-stat -b 

Offline

#10 2020-09-04 08:06:22

mergen
Member
Registered: 2019-10-27
Posts: 11

Re: [SOLVED]Show energy information in KDE battery icon menu does not work

I did a fresh install recently and powerdevil was installed when I was installing GUI plasma-desktop. TLP is is already installed but tlp-stat -b shows neither battery drain of applications nor charge history.

Offline

#11 2020-09-04 08:19:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,420

Re: [SOLVED]Show energy information in KDE battery icon menu does not work

I was also under the impression that you meant it didn't show you anything. The battery drainage information should be part of kinfocenter what happens if you explicitly start that (... or do you not have that installed which would explain everything)?

Last edited by V1del (2020-09-04 08:20:18)

Online

#12 2021-04-18 15:49:16

mergen
Member
Registered: 2019-10-27
Posts: 11

Re: [SOLVED]Show energy information in KDE battery icon menu does not work

kinfocenter dependency was missing. Told the maintainer and it added as optional dependency.

Offline

Board footer

Powered by FluxBB