Battery use graph...?

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
RallyDarkstrike
Posts: 151
Joined: Fri Jan 22, 2021 1:51 pm

Battery use graph...?

#1 Post 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! :)
Image

User avatar
siamhie
Global Moderator
Posts: 3236
Joined: Fri Aug 20, 2021 5:45 pm

Re: Battery use graph...?

#2 Post 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
You do not have the required permissions to view the files attached to this post.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
RallyDarkstrike
Posts: 151
Joined: Fri Jan 22, 2021 1:51 pm

Re: Battery use graph...?

#3 Post 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
You do not have the required permissions to view the files attached to this post.
Image

MXRobo
Posts: 1833
Joined: Thu Nov 14, 2019 12:09 pm

Re: Battery use graph...?

#4 Post 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.
Last edited by MXRobo on Wed Apr 10, 2024 12:21 am, edited 1 time in total.

User avatar
RallyDarkstrike
Posts: 151
Joined: Fri Jan 22, 2021 1:51 pm

Re: Battery use graph...?

#5 Post 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!
Image

User avatar
appas
Posts: 36
Joined: Mon Oct 09, 2023 4:40 pm

Re: Battery use graph...?

#6 Post by appas »

What software shows the graph on Mint? Maybe you could install it in MX..?

User avatar
Stevo
Developer
Posts: 14460
Joined: Fri Dec 15, 2006 7:07 pm

Re: Battery use graph...?

#7 Post 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.
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

User avatar
siamhie
Global Moderator
Posts: 3236
Joined: Fri Aug 20, 2021 5:45 pm

Re: Battery use graph...?

#8 Post 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}
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
Stevo
Developer
Posts: 14460
Joined: Fri Dec 15, 2006 7:07 pm

Re: Battery use graph...?

#9 Post 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.
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

User avatar
RallyDarkstrike
Posts: 151
Joined: Fri Jan 22, 2021 1:51 pm

Re: Battery use graph...?

#10 Post 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 :)
Image

Post Reply

Return to “MX Help”