Re: [Powertop] Any way to show HH:MM for time left instead of just minutes?

corrupt <corrupt at gmail.com>
Newsgroups dev.linux.lists.powertop
Message-ID <CAEoL4DPSsmxeCL6ubn7ao9_+22QsNDfSqkpJGvthK8mFwKfvyA@mail.gmail.com>
You're absolutely right.
I don't know C++ very well, but I was able to make an amateur patch that
does this.

If anyone wants the patch, here it is (it converts time left to HH:MM on
the display): http://pastebin.com/raw.php?i=Df2ttb9e

On Sat, May 12, 2012 at 6:03 PM, Kok, Auke-jan H
<auke-jan.h.kok(a)intel.com>wrote:

>
>
> On Sat, May 12, 2012 at 5:58 PM, corrupt <corrupt(a)gmail.com> wrote:
>
>> I just upgraded to Powertop 2.0 and I'm frankly I'm disappointed with the
>> new interface.
>>
>> It shows how many minutes there is left on my battery (267 minutes),
>> which is kind of odd that it's not in HH:MM format like the previous
>> versions.
>>
>> Any way to change this?
>>
>
> You could write a patch that divides the amount of minutes by 60, and
> changes the display!
>
> Cheers,
>
> Auke
>
>
>
attachment.html (text/html, 1.5 KB)
You&#39;re absolutely right.  <div>I don&#39;t know C++ very well, but I was able to make an amateur patch that does this.<div><br></div><div>If anyone wants the patch, here it is (it converts time left to HH:MM on the display): <a href="http://pastebin.com/raw.php?i=Df2ttb9e">http://pastebin.com/raw.php?i=Df2ttb9e</a><br>

<br><div class="gmail_quote">On Sat, May 12, 2012 at 6:03 PM, Kok, Auke-jan H <span dir="ltr">&lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br><br><div class="gmail_quote"><div><div class="h5">On Sat, May 12, 2012 at 5:58 PM, corrupt <span dir="ltr">&lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>I just upgraded to Powertop 2.0 and I&#39;m frankly I&#39;m disappointed with the new interface.</div><div><br></div><div>It shows how many minutes there is left on my battery (267 minutes), which is kind of odd that it&#39;s not in HH:MM format like the previous versions.</div>




<div><br></div><div>Any way to change this?</div></blockquote><div> </div></div></div><div>You could write a patch that divides the amount of minutes by 60, and changes the display!</div><div><br></div><div>Cheers,</div>

<div><br></div>
<div>Auke</div><div><br></div></div><br>
</blockquote></div><br></div></div>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.