Evergreen Battery Test

That would be great as well though. Knowing how much juice your headphones or bluetooth mouse have left would be great. Fancy stuff.

Nothing, it’s just an artifact of how the charger, battery gauge and USB-C controller drivers are exposed by the kernel to the userspace. The Extra battery should eventually go away.

Peripherals get displayed separately:


If you’ed like to my old battery test bash script is still a thing, you’ed have to do dig it up in the old dogwood posts. Then from there it should just be setting it up with crontab.


The github link at Still no dogwood? has Bat.sh .

Can you talk me through how to run it; I do very little in Terminal.
It’s this, right?

  1. Download the file to your download directory.
  2. from your home directory type chmod +x Downloads/Bat.sh to make it executable.
  3. Run it with Downloads/Bat.sh

I don’t know if it needs root privileges. In case you must prepent a sudo .

Seems like the output is written into Documents/battery_data.csv.

Edit: now I see. Probably the program should be executed periodically. Many with cron or so. I don’t have cron expertise, sry. Just wanted to help.

1 Like

Understood. Will check it out later.

cd into the Downloads/ directory first …

1 Like

Yes but then he has tun run it as ./Bat.sh. The prepended “./” is a common pitfall so I decided to go the other way.

1 Like

Some laptops have more than one battery. I’m guessing there’s still a config file around for the smaller battery shipped w/ earlier batches that gnome is seeing.

You have to set it up as a cronjob to get it to run whenever you’ed like. as much as every minute, that’s what I had it set up for. The video can tell you how better then I can, the shell script itself just copies file’s readouts when it runs and sorts them into a CSV file.

1 Like

It’s fairly easy to mod the shell script, I set it up to explicitly refer to the file name of the matter on my dogwood. but the path other then that single part I am sure is the same. If you wish to do the same for any laptop you’ll find your batteries in the same part of the file structure with the same subfiles for whatever the batteries are named. Handy to know.

1 Like

FYI the kernel update has just arrived in the production repos that should take the battery counter from “very likely totally off” into “pretty accurate” territory :slight_smile: There will also be another update that should take it even further into “as accurate as it can get”, but no idea yet when that will happen.


cc : @amarok Hello, just a question, did you try tlp to know if the program improve battery life ? Thank you !

No, I didn’t.
@joao.azevedo - Do you think this would have any applicability to the L5 in its current state?

That is a question more to @dos or @angus.ainslie

I don’t expect tlp to be able to do anything sensible on a phone.


@amarok FYI a kernel update with the battery gauge fix that actually makes it usable on Evergreen (For Real This Time™) and more accurate on all batches has just entered amber-phone-staging and should migrate to amber-phone in a week :slight_smile:


Lol! Great! Thanks, dos.

Oh well I am testing that right now :slight_smile: