| Prev |   3     4   5 |
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Updated May 23] Conky 1.9.7 n900 edition (https://talk.maemo.org/showthread.php?t=64434)

Creamy Goodness 2011-07-05 19:26

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
copy conky.conf to your MyDocs folder (/home/user/MyDocs/)
edit it: replace ${battery_short} with ${execi 10 hal-device bme |awk -F"[. ]" '$5 == "is_charging" {chrg = $7}; $5 == "percentage" {perc = $7} END if (chrg == "false") {print perc "%"} else {print "Chg"}'}

enjoy your decreased battery life and non-updating percentage.

sanros 2011-07-06 04:39

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
thank you Creamy :)
it works:) thank you so much
but why did u say "enjoy your decreased battery life and non-updating percentage" what does this means? is this command not good?
please can u explain me?:)

Creamy Goodness 2011-07-06 06:01

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
maybe you should check... with conky

sanros 2011-07-06 13:11

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
but battery life have not decreased , percentage is always updated :)
so where's the problem? :D

Creamy Goodness 2011-07-06 15:27

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
just focus on the cpu usage of Conky. it should use extra every 10 seconds as it opens a command prompt to check the battery level. try with and without that change.

Dark_Angel85 2011-07-07 01:59

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
just installed it. i prefer this accurate battery and temperature reading than the previous .conf that I was using.

It's currently running at a consistent 8-10%CPU and 2+% of memory....

so that's quite a lot of running CPU.. but I'll see how it is throughout the day

Creamy Goodness 2011-07-07 17:52

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
how hard is it to test before and after making the change?

Creamy Goodness 2011-11-09 08:16

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
I recently tried to get this working on the N9 / N950 but am now stuck because it seems impossible to get double buffering to work as the "dbe" module is missing from X11. I think we will find a solution but cannot guarantee it. Flickering conky is still better than no conky, so if anyone wants to try it, here's a link: http://www.appcheck.net/storage/headache.zip
DONT install that on an n900, it's got enough changes made to it that it won't work.
DO dpkg -i all 3 debs from the command line, conky last, and if it has any other missing stuff you can probably apt-get install them.

Andre Franc 2011-11-13 14:55

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
Hi!
I need help.
I just updated my kernel to version 48 and my conky doesn't show the battery temperature anymore.
What can I do?
Thanks.

Estel 2011-11-13 15:26

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
Quote:

Originally Posted by Andre Franc (Post 1122901)
Hi!
I need help.
I just updated my kernel to version 48 and my conky doesn't show the battery temperature anymore.
What can I do?
Thanks.

Hello there. To fix Your problem, you should learn how to use "search" option in forum, cause Your question was asked millions of times, and answered as much, even on this very thread.

Sincerely,

/Estel

Creamy Goodness 2011-11-14 03:24

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
lol yeah you beat me.
if you can't find the answer we are happy to help, but it's a pretty common problem. try searching with google if the forum search isn't helping.

dobrivoje 2012-04-14 07:54

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
Quote:

Originally Posted by Creamy Goodness (Post 1045342)
copy conky.conf to your MyDocs folder (/home/user/MyDocs/)
edit it: replace ${battery_short} with ${execi 10 hal-device bme |awk -F"[. ]" '$5 == "is_charging" {chrg = $7}; $5 == "percentage" {perc = $7} END if (chrg == "false") {print perc "%"} else {print "Chg"}'}

enjoy your decreased battery life and non-updating percentage.

Isn't easier and better to write this line like this :
${execi 10 hal-device bme | awk /battery.charge_level.percentage/'{print $3"% "}'} ?

dobrivoje 2012-04-14 07:59

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
Quote:

Originally Posted by Creamy Goodness (Post 1123213)
lol yeah you beat me.
if you can't find the answer we are happy to help, but it's a pretty common problem. try searching with google if the forum search isn't helping.

why don't you just help him out, and copy/paste solution ?!

Estel 2012-04-15 02:58

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
First of all, You're banging on half-a-year old thread without any reason.

As for Your question - because we do not like to breed laziness ;) LMGTFY, or what?

OMOIKANE 2012-05-25 08:52

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
Please help me. Conky starts to show -1% battery with bq27x00_battery module loaded. With BME %% showing okay but lower. What can i do?
Old backup restored by backupmenu but conky still showing -1% battery.

gianko 2013-02-21 11:40

Re: [Updated May 23] Conky 1.9.7 n900 edition
 
hello. im using Conky + layout switcher without any problems for a long time, but now after i start any conky layout...a strange green overlayed message appear...that is not clearly readable....but is something like this:

Quote:

<h3 style="font-size: 30px;"> This domain name has expired.</h3>
<h4 style="font-size: 16px;">
In order to restore the domain and continue the service you will need....
can somebody explain what is the problem and how to solve?

Thank you

chill 2013-05-12 23:03

Re: [NEW] Conky 1.8.5 n900 edition
 
Quote:

Originally Posted by Creamy Goodness (Post 853960)
looks like i can't read the temperature on yours, but you're running power kernel? weird. That -1 should only show up when it can't read the /sys/class/power_supply/bq27200-0/uevent stuff

Using power kernel v52, I see the uevent stuff is actually in /sys/class/power_supply/rx51-battery/uevent

I can read the uevent file. But since /bq27200-0/ is hardcoded (see first post), what can one do to get conky to read from rx51-battery?

chill 2013-06-06 23:59

Re: [NEW] Conky 1.8.5 n900 edition
 
Nobody? Ok...i've created a Queen Beecon Widget to display the battery temperature. Here's the command line for it:

Code:

awk 'BEGIN { FS="=" } /POWER_SUPPLY_TEMP/ { print $2/10 "°C"; if ($2 < 350) exit 0; else if ($2 <400) exit 1; else exit 2 }' /sys/class/power_supply/rx51-battery/uevent
Note the code will exit 0 if the temperature is less than 35 C, else exit 1 if it's less than 40, else exit 2. This can be used in QBW to select the widget background color, e.g. red when the battery gets hot.

Estel 2013-06-07 01:11

Re: [NEW] Conky 1.8.5 n900 edition
 
Quote:

Originally Posted by chill (Post 1343103)
I can read the uevent file. But since /bq27200-0/ is hardcoded (see first post), what can one do to get conky to read from rx51-battery?

changing it in Conky sourcecode and pushing updated version. It should be trivial to do, I might take look on it when I have free time (which most likely mean I won't look at it 'till I die of old age, sadly. so, feel free to implement my theorizations in practice ;) ).

/Estel

chill 2013-06-07 02:54

Re: [NEW] Conky 1.8.5 n900 edition
 
Quote:

Originally Posted by Estel (Post 1350131)
changing it in Conky sourcecode and pushing updated version. It should be trivial to do, I might take look on it when I have free time (which most likely mean I won't look at it 'till I die of old age, sadly. so, feel free to implement my theorizations in practice ;) ).

/Estel

Please clarify. Did you change it or are you postponing until old age? What'd you mean by theorizations?

Also, using USB Mode, after switching to "USB host mode (with boost)", which "stops BME", conky will read display some temperature, which also seems to have tenths of a degree Celsius (unlike in the uevent file); I have not applied any conky update of yours yet. Would you know how/why?

Estel 2013-06-07 19:39

Re: [NEW] Conky 1.8.5 n900 edition
 
Quote:

Originally Posted by chill (Post 1350141)
Please clarify. Did you change it or are you postponing until old age? What'd you mean by theorizations?

Also, using USB Mode, after switching to "USB host mode (with boost)", which "stops BME", conky will read display some temperature, which also seems to have tenths of a degree Celsius (unlike in the uevent file); I have not applied any conky update of yours yet. Would you know how/why?

No idea about that strange temperature reading - I use usbmode with BME replacement (the latter all the time), so in my case, nothing is stopped.

Theoretizations in practice - it just meant that someone may do those changes I've described in practice. No, I haven't had to extract Conky's source code and look for it.


| Prev |   3     4   5 |
All times are GMT. The time now is 19:08.

vBulletin® Version 3.8.8