muse / Captain

A dynamic lemonbar script written almost entirely in bash.
MIT License
49 stars 5 forks source link

Battery consumption. #8

Open dzan opened 8 years ago

dzan commented 8 years ago

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.

muse commented 8 years ago

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 ***
neeasade commented 8 years ago

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.

DimitriDokuchaev commented 8 years ago

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... :(

neeasade commented 8 years ago

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.