Page 1 of 2

Battery use graph...?

Posted: Thu Apr 04, 2024 10:15 am
by RallyDarkstrike
Hi all!

I have MX Linux on my little HP Stream laptop, but I have Linux Mint MATE on my larger Lenovo Thinkpad T520.

On Mint, the battery / power manager app has a handy graph that shows the battery discharge over time. It's a handy tool in checking once and awhile to ascertain how healthy my battery is.

Just curious - is there a similar app or utility I could install on MX to get a similar function?

Cheers and thanks! :)

Re: Battery use graph...?

Posted: Thu Apr 04, 2024 10:39 am
by siamhie
RallyDarkstrike wrote: Thu Apr 04, 2024 10:15 am Hi all!

I have MX Linux on my little HP Stream laptop, but I have Linux Mint MATE on my larger Lenovo Thinkpad T520.

On Mint, the battery / power manager app has a handy graph that shows the battery discharge over time. It's a handy tool in checking once and awhile to ascertain how healthy my battery is.

Just curious - is there a similar app or utility I could install on MX to get a similar function?

Cheers and thanks! :)

I know of several conky's that can do that. Open your Conky Manager and look at the MX-Cowon* conky's.

mx-cowon.jpg

Re: Battery use graph...?

Posted: Thu Apr 04, 2024 12:05 pm
by RallyDarkstrike
@siamhie Hey, thanks for the reply, but that's not what I am looking for. :)

My current custom Conky config has a similar battery gauge (top-right) to the one you showed:
Screenshot_2024-04-04_13-04-02.jpg
What I am looking for is a discharge graph-type thing:
Image

Re: Battery use graph...?

Posted: Thu Apr 04, 2024 2:47 pm
by MXRobo
No QSI, but Xfce MX-21.3, I have two available.
1 - Power Manager → General – System tray icon (not using this one)
2 - Power Manager Plugin – external in
Per MXPI: https://docs.xfce.org/xfce/xfce4-power-manager/start
Per app – Help: https://docs.xfce.org/xfce/xfce4-power- ... /1.6/start
But not sure how/why it is dispalyed.

++EDIT - It is definitely not a graph, just an icon or something that indicates the charge at that moment.

Re: Battery use graph...?

Posted: Tue Apr 09, 2024 7:02 pm
by RallyDarkstrike
MXRobo wrote: Thu Apr 04, 2024 2:47 pm No QSI, but Xfce MX-21.3, I have two available.
1 - Power Manager → General – System tray icon (not using this one)
2 - Power Manager Plugin – external in
Per MXPI: https://docs.xfce.org/xfce/xfce4-power-manager/start
Per app – Help: https://docs.xfce.org/xfce/xfce4-power- ... /1.6/start
But not sure how/why it is dispalyed.
OK, cool, thanks - I'll take a look!

Re: Battery use graph...?

Posted: Fri Apr 12, 2024 9:26 am
by appas
What software shows the graph on Mint? Maybe you could install it in MX..?

Re: Battery use graph...?

Posted: Fri Apr 12, 2024 3:25 pm
by Stevo
As for overall battery "health", QSI shows the battery condition:

Code: Select all

Battery:
  ID-1: BAT1 charge: 51.5 Wh (100.0%) condition: 51.5/56.0 Wh (91.9%) volts: 11.2 min: 11.4
Though it seems that some Conky guru could easily create a Python script to create a battery usage graph.

Re: Battery use graph...?

Posted: Fri Apr 12, 2024 4:03 pm
by siamhie
Stevo wrote: Fri Apr 12, 2024 3:25 pm As for overall battery "health", QSI shows the battery condition:

Code: Select all

Battery:
  ID-1: BAT1 charge: 51.5 Wh (100.0%) condition: 51.5/56.0 Wh (91.9%) volts: 11.2 min: 11.4
Though it seems that some Conky guru could easily create a Python script to create a battery usage graph.

If you edit the battery line in conky (under the conky.text section) you can have a graph. i.e. battery_bar
Here are the examples from Casey's Conky Reference with Examples page. (http://ifxgroup.net/conky.htm) (Laptop Battery Information section)

Code: Select all

battery

	Battery status and remaining percentage capacity of ACPI or APM battery. ACPI battery number can be given as argument
	and points to "/proc/acpi/battery/BAT0/state". 
	
	Default is battery "BAT0".

${battery BAT1}

Code: Select all

battery_bar

[height][,width] [battery_number]
	Battery percentage remaining of ACPI battery in a bar. ACPI battery number can be given as argument.
	
	Default is battery "BAT0".

${battery_bar 10,20 BAT1}

Code: Select all

battery_percent

	Battery percentage remaining for ACPI battery. ACPI battery number can be given as argument.
	
	Default is battery "BAT0".

${battery_percent BAT1}

Code: Select all

battery_short

	Battery status and remaining percentage capacity of ACPI or APM battery. ACPI battery number can be given as
	argument. 
	
	Default is battery "BAT0". 
	
	This mode display a short status, which means that C is displayed for charging, 
	D for discharging, F for full, N for not present, E for empty and U for unknown.

${battery_short BAT1}

Code: Select all

battery_time

	Battery charge/discharge time remaining of ACPI battery. ACPI battery number can be given as argument. 
	Default is battery "BAT0".

${battery_time BAT1}

Re: Battery use graph...?

Posted: Sat Apr 13, 2024 4:07 pm
by Stevo
Please, the OP wants an XY graph, not a single axis bar, showing the power use versus time, just as in the picture they supplied. I suppose the wattage could be calculated from the drop in battery level over that interval.

I have a realtime CPU wattage display on my KDE taskbar, for this laptop right now, it's showing 53.5 as it compiles a couple kernels at once for MX 21 AHS. A desktop CPU should show a lot more.

Re: Battery use graph...?

Posted: Mon Apr 15, 2024 7:24 pm
by RallyDarkstrike
Sorry for the slow reply folks - Yes, the idea is that I would love to have a graph of battery discharge over time. @appas As far as I can tell, the software that I use to see the discharge graph on Mint (as I use Mint MATE) is the MATE Power Manager...? So I don't think it could be easily installed on MX as it is part of MATE.

@siamhie Thanks for the suggestions, but that is not what I am looking for.

@Steve Yes, that is what I am looking for. It has come in very handy on my old Lenovo Thinkpad T520 running the latest Mint MATE several times. My little HP Stream 11 that is running MX XFCE doesn't have such a graph and where the battery in this little HP lasts a lot longer than the Lenovo due to a much lower-power CPU, it would be nice to have a graph here as well :)