You are not logged in.

#1 2019-06-20 22:34:53

Tof
Member
Registered: 2019-05-24
Posts: 7

Uptime of battery

Hi.

Is thete anny comman to get in return time that laptop is working on battery, but with restarts, shutdowns, freezes and other interrupts?

I want to collect statistics, but problem is that i need this data in let say "normal use"
Couple of the same lattop lenovo x220  is used in different ways. sometimes one of them is used 1 hour and it is shuted down, then powered up 3 hours and is sleept for another 5 hours, then used 15 minutes and shuted down again.. then charged... and so one in several different laptops for several different users.

I want to collect data how long battery in each laptop lives with restarts/freezes/reboots before it is charged again (connected to charger)
Something like "uptime" command returns time but only from last powerup.

Some program with logs maybe? or i need to write bash script?

Offline

#2 2019-06-20 23:10:57

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,689

Re: Uptime of battery

This looks to me like a cross between conky and tlp which I have both in my x220. conky has an uptime function and tlp has a battery monitor that monitors that outputs useful data of battery condition from it's initial use, no of cycles used, etc.. I don't know one as specific as you require however. But if you haven't got them, do have a look at these two particularly tlp.

Offline

Board footer

Powered by FluxBB