Captain icon indicating copy to clipboard operation
Captain copied to clipboard

Battery consumption.

Open dzan opened this issue 9 years ago • 4 comments

Hi,

When enabling the default scripts included with Captain powertop shows lemonbar consuming +- 2W... I have yet to check out what the actual cause is but because maybe someone else already has I created this issue.

dzan avatar Jan 17 '16 14:01 dzan

I can't deny, it is a pretty intensive script. It is also written in bash which isn't the most optimal language to do this in either. I'm considering doing a rewrite in a more suited language.

0.4%    166.7   Process     lemonbar ***

muse avatar Jan 18 '16 10:01 muse

if it's the default script, part of the resource heaviness might be from things with a reload rate of 0.1, such as the title. one way to offset this would be if a script/captain section could have a reload based on input from a command/fifo - in this title case one might set the script to only run on output from wew from wmutils.

neeasade avatar Jan 18 '16 20:01 neeasade

Captain is awesome installed it today, but i am having the same issues, while i didn't notice on the battery, I did notice the temp, my cpu temp goes from 39degrees to around 47 idling... :(

DimitriDokuchaev avatar Jan 18 '16 22:01 DimitriDokuchaev

pinging this thread to say that I think a PR that was just merged will help with battery if the problem was reload time-related -- would like feedback if so.

neeasade avatar Jan 27 '16 17:01 neeasade