maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Conky now in fremantle extras-testing (https://talk.maemo.org/showthread.php?t=37698)

fnordianslip 2009-12-31 14:00

Re: Conky now in fremantle extras-testing
 
Thanks to all the testers and voters of Conky, it is now available in the extras repository and on the Downloads page for Maemo 5.

les_garten 2009-12-31 16:28

Re: Conky now in fremantle extras-testing
 
Quote:

Originally Posted by fnordianslip (Post 447920)
Thanks to all the testers and voters of Conky, it is now available in the extras repository and on the Downloads page for Maemo 5.

Congratulations and Thanx!

jaysire 2010-01-01 00:04

Re: Conky now in fremantle extras-testing
 
Quote:

Originally Posted by Snafu (Post 445851)
This displays the string "Charging!" if the battery is being charged (and not just connected to the PC/Power together wit the percentage and a bar. (see screenshot)
The information is updated every 30 sec to save CPU-Cycles.

Nice! I did it with the temp-file only because of the cpu cycle issue and because I didn't know you can execute something every n seconds this way. I also haven't seen references to hal-device on the n900 before, so very interesting indeed!

I will be using your hack... er... solution now :)

DaSilva 2010-01-04 08:39

Re: Conky now in fremantle extras-testing
 
Quote:

Originally Posted by Snafu (Post 445851)
First of all: Thank you fnordianslip and rcull for your wonderful work here. :)


Of yourse you can see the Information on the status bar. But unfortunatly it is not very acurate (with just 8 Bars)



And Jaysire is using a second script and a temporary file to update the info.

Before finding this thread I thought about a similar solution. I just added
Code:

${color yellow}Battery:$color ${goto 110}${color red}${execi 30 if [ "`hal-device bme |grep "is_charging\|is_discharging" |awk '{print $3;}' |sed -e :a -e '$!N;s/\n/ /;ta'`" = "false true" ]; then  echo "Charging!"; fi}$color${goto 310}${execi 30 hal-device bme |grep "percentage" |awk '{print $3;}'}%${goto 350}${color green}${execibar 30 hal-device bme |grep "percentage" |awk '{print $3;}'}





.

to my config, just underneath the SWAP-Info.

This displays the string "Charging!" if the battery is being charged (and not just connected to the PC/Power together wit the percentage and a bar. (see screenshot)
The information is updated every 30 sec to save CPU-Cycles.

The only thing I miss is the option "default_bar_size" which is not available in the current build. With this option the bar would be the right size.

Have fun!

It doesn't work for me if it is charging (displays an empty bar and no "Charging!" message) and I would like to fill the lower right area which is currently unused for this.
How can I do that?

Only the following works (without the charging) and the bar is smaller than the others:

Code:

${color lightgrey}Name                  PID  CPU%  MEM%                        ${goto 380}${color yellow}Battery: ${execi 60 hal-device | grep percen | awk '{print $3"%"}'}
${color #ff6000} ${top name 1}    ${top pid 1} ${top cpu 1} ${top mem 1}    ${goto 380}${color green}${execibar 60 hal-device bme |grep "percentage" |awk '{print $3;}'}


les_garten 2010-01-12 17:09

Re: Conky now in fremantle extras-testing
 
FYI

When I updated to 44-1, it still says 42-11 in Conky.

Death Scythe 2010-01-17 23:54

Re: Conky now in fremantle extras-testing
 
Just a question about conky as I was trying to figure out if my wifi remained connected even after I'd already disconnected (wifi bug); will the "wlan0" field show a connection even after wifi has been disconnected?

fnordianslip 2010-01-18 00:03

Re: Conky now in fremantle extras-testing
 
Quote:

Originally Posted by Death Scythe (Post 478880)
Just a question about conky as I was trying to figure out if my wifi remained connected even after I'd already disconnected (wifi bug); will the "wlan0" field show a connection even after wifi has been disconnected?

It should say "Not connected" like the gprs0 connection does when it is not connected, if you are using the default conf file from the package in extras.

Death Scythe 2010-01-18 20:13

Re: Conky now in fremantle extras-testing
 
Quote:

Originally Posted by fnordianslip (Post 478894)
It should say "Not connected" like the gprs0 connection does when it is not connected, if you are using the default conf file from the package in extras.

Will N900's with the wifi bug (wifi staying connected even after connection has been terminated) show an active conncetion?

NotTheMessiah 2010-01-18 20:17

Re: Conky now in fremantle extras-testing
 
one thing ive noticed is conky mis-reports the firmware version. guessing the 1.2009.42 is a hard coded string cos im running 2.2009.51

fnordianslip 2010-01-18 20:35

Re: Conky now in fremantle extras-testing
 
Nope, it should work just fine. My guess is that your device does not know what version it is. That happened to me when i attempted to force the 1.1 upgrade with apt-get.
Try running "uname -a" in xterm and see what it says.

les_garten 2010-01-18 20:51

Re: Conky now in fremantle extras-testing
 
Quote:

Originally Posted by fnordianslip (Post 480682)
Nope, it should work just fine. My guess is that your device does not know what version it is. That happened to me when i attempted to force the 1.1 upgrade with apt-get.
Try running "uname -a" in xterm and see what it says.

Here's what I noticed with that.

Mine said 42-11 or whatever.

I updated to 44-1 and Uname-a did not change

I updated to 52-1 and it now says unknown. I did all upgrades OTA. Also my Conky still said 42-11 after the first update, and now doesn't say anything at all about FW level. That's just an echo of the hostname I believe. Mine says the Hostname, which I changed.

Reason I changed the Hostname was that after all the upgrades it never changed from 42-11. Also, it was just too freakin' long for my Tastes. Nw it is "Nokia-N900" Short and sweet. I figured if Nokia was going to "miss" it during the upgrades it would read what I wanted rather than an obsolete/incorrect FW level.

N.B to change hostname, open your favorite editor and change /etc/hostname

fnordianslip 2010-01-18 21:02

Re: Conky now in fremantle extras-testing
 
Ah. Makes sense. I should have looked in the conf file. I'm a bit embarassed now. The host name shouldn't change with an update, but would do with a reflash.

les_garten 2010-01-19 03:28

Re: Conky now in fremantle extras-testing
 
Quote:

Originally Posted by fnordianslip (Post 480750)
Ah. Makes sense. I should have looked in the conf file. I'm a bit embarassed now. The host name shouldn't change with an update, but would do with a reflash.


You're correct there. I just borked my install this evening and had to reflash. Now the Hostname is current FW level and my Ol' friend Conky has the proper FW name! I'm a bit curious why if the Hostname originally had the FW name in it why Nokia didn't have a plan in place to Update the Hostname when the FW updated.

fnordianslip 2010-01-19 09:08

Re: Conky now in fremantle extras-testing
 
Well, end users would normally be expected/allowed to choose their own hostname. You wouldn't want two hosts with the same name on the same network, for example. So modifying the hostname via update would be a bad plan. A reflash is a fresh install, though, so understandable under those circumstances.

xman 2010-03-02 03:08

Re: Conky now in fremantle extras-testing
 
Quote:

to my config, just underneath the SWAP-Info.

This displays the string "Charging!" if the battery is being charged (and not just connected to the PC/Power together wit the percentage and a bar. (see screenshot)
The information is updated every 30 sec to save CPU-Cycles.

The only thing I miss is the option "default_bar_size" which is not available in the current build. With this option the bar would be the right size.

Have fun!
Thank Snafu! I've been trying to figure out how to get the battery percent on here for awhile gave up till I found your old post.

I used just

${color yellow}Battery:$color ${goto 110}${execibar 30 hal-device bme |grep "percentage" |awk '{print $3;}'}

Which gave me "battery: 100%"

I'm a happy camper now.

x

roger_27 2010-03-02 03:49

Re: Conky now in fremantle extras-testing
 
http://organpron.files.wordpress.com/2008/06/conky1.jpg

every time i see this program I think of Conky from Pee Wee's Playhouse

Ronaldo 2010-03-02 03:58

Re: Conky now in fremantle extras-testing
 
1 Attachment(s)
Conky icon looks freaky, so i changed mine .

the monitor icon with green wave

DaSilva 2010-05-25 22:35

Re: Conky now in fremantle extras-testing
 
1 Attachment(s)
Thanks.
Here is my advanced config based on biggzys work:

Code:

# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#

# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2007 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# Please see COPYING for details
## This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# $Id: conky.conf 1193 2008-06-21 20:37:58Z ngarofil $

alignment top_left
background no
maximum_width 800
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
default_graph_size 15,50
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
use_xft yes
xftfont Droid Sans Mono:size=11
xftalpha 0.8
double_buffer yes
gap_x 20
gap_y 60
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
own_window yes
own_window_class Conky
own_window_type normal
own_window_transparent yes
own_window_hints below,sticky
stippled_borders 0
update_interval 3.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

TEXT
$alignc $nodename - $sysname $kernel on $machine ${color light blue}Uptime:$color $uptime
${color 0084C9}$stippled_hr
${color light blue}Frequency:$color  ${freq}MHz ${color light blue}Temperature: ${goto 290} $color${execi 3 cat /sys/class/power_supply/bq27200-0/temp}°C  ${goto 340} ${color light blue}Load:$color $loadavg  ${color light blue}Processes:$color $processes  ${color light blue}Running:$color $running_processes
${color light blue}CPU Usage:$color  $cpu% ${color light blue} ${goto 168} Current: ${goto 280} $color${execi 3 cat /sys/class/power_supply/bq27200-0/current_now}mA ${goto 350}${color grey}${cpubar 5}
${color light blue}CPU Graph: ${color black}${cpugraph 16,232 ffffff 0094ff}${color light blue} ${goto 340} Lo:${color black}${loadgraph 1 16,105 ffe400 ffe400}${color light blue} Dio:${color black}${diskiograph /dev/mmcblk0 16,105 00ff00 00ff00}${color light blue} Mem:${color black}${memgraph 15,105 ff0000 ff0000}
${color light blue}RAM  Usage:$color${goto 110}$mem${goto 190} | $memmax${goto 310}$memperc%${goto 350}${color grey}${membar 5}
${color light blue}Swap Usage:$color${goto 110}$swap${goto 190} | $swapmax${goto 310}$swapperc%${goto 350}${color grey}${swapbar 5}
${color 0084C9}$stippled_hr
${color light blue}rootfs${goto 110}$color${fs_free /}${goto 190} | ${fs_size /} ${color grey}${goto 310}${fs_free_perc /}%${goto 350}${color grey}${fs_bar 5 /}
${color light blue}home${goto 110}$color${fs_free /home}${goto 190} | ${fs_size /home} ${color grey}${goto 310}${fs_free_perc /home}%${goto 350}${color grey}${fs_bar 5 /home}
${if_mounted /home/user/MyDocs}${color light blue}MyDocs${goto 110}$color${fs_free /home/user/MyDocs}${goto 190} | ${fs_size /home/user/MyDocs} ${color grey}${goto 310}${fs_free_perc /home/user/MyDocs}%${goto 350}${color grey}${fs_bar 5 /home/user/MyDocs}$endif
${color light blue}Battery:$color ${goto 110}${color green}${execi 30 if [ "`hal-device bme |grep "is_charging" |awk '{print $3;}' |sed -e :a -e '$!N;s/\n/ /;ta'`" = "true" ]; then  echo "Charging..."; fi}$color${goto 310}${execi 30 hal-device bme |grep "percentage" |awk '{print $3;}'}%${goto 350}${color grey}${execibar 30 hal-device bme |grep "percentage" |awk '{print $3;}'}
${if_mounted /media/mmc1}${color light blue}mmc1${goto 110}$color${fs_free /media/mmc1}${goto 190}| ${fs_size /media/mmc1} ${color grey}${goto 310}${fs_free_perc /media/mmc1}%${goto 350}${color grey}${fs_bar 5 /media/mmc1}$endif
${color 0084C9}$stippled_hr
${if_up gprs0}${color light blue}gprs0: ${color light blue}Up:$color ${upspeed gprs0} kB/s${color grey} - ${color light blue}Down:$color ${downspeed gprs0} kB/s  $else${color light blue}gprs0: ${color light blue} Not Connected$endif
${if_empty ${wireless_essid wlan0}}${color light blue}wlan0:  ${color light blue}Not Connected $else${color light blue}wlan0 ESSID: $color${wireless_essid wlan0} ${color light blue}Rate: ${color}${wireless_bitrate wlan0} ${color light blue}Connection Quality: $color${wireless_link_qual_perc wlan0}% ${color light blue}Up:$color ${upspeed wlan0} kB/s ${color grey} - ${color light blue}Down:$color ${downspeed wlan0} kB/s $endif
${if_up gprs0}${color light blue}gprs0 Up: ${color black}${upspeedgraph gprs0 20,290 ff0000 00ff00}$alignr${color light blue}gprs0 Down: ${color black}${downspeedgraph gprs0 20,290 00ff00 ff0000}$else${if_empty ${wireless_essid wlan0}}$else${color light blue}wlan0 Up: ${color black}${upspeedgraph wlan0 20,290 00ff00 ff0000}$alignr${color light blue}wlan0 Down: ${color black}${downspeedgraph wlan0 20,290 ff0000 00ff00}$endif$endif
${color 0084C9}$stippled_hr
${color light blue}Process Top 1-3      PID  CPU%  MEM%                  ${goto 400}Process Top 4-6      PID  CPU%  MEM%
${color #ffffff} ${top name 1}    ${top pid 1} ${top cpu 1} ${top mem 1}    ${color #ffffff} ${top name 4}    ${top pid 4} ${top cpu 4} ${top mem 4}
${color #ffffff} ${top name 2}    ${top pid 2} ${top cpu 2} ${top mem 2}    ${color #ffffff} ${top name 5}    ${top pid 5} ${top cpu 5} ${top mem 5}
${color #ffffff} ${top name 3}    ${top pid 3} ${top cpu 3} ${top mem 3}    ${color #ffffff} ${top name 6}    ${top pid 6} ${top cpu 6} ${top mem 6}

Temperature and Current work only with the power Kernel.

Just copy / create the code to /home/user/MyDocs/conky.conf

Mr. Incredible 2010-05-25 22:42

Re: Conky now in fremantle extras-testing
 
@ DaSilva
Looks good! What file do I have to modify/paste your settings?

DaSilva 2010-05-25 22:47

Re: Conky now in fremantle extras-testing
 
Just copy / create the code to /home/user/MyDocs/conky.conf

Mr. Incredible 2010-05-26 10:15

Re: Conky now in fremantle extras-testing
 
Thanks DaSilva, but there is a small error.
The temp says "38°C". How can I remove the �

DaSilva 2010-05-26 11:38

Re: Conky now in fremantle extras-testing
 
I am not sure why you have that but I have updated the config a little bit and maybe the problem was solved by that!?
Please try the updated version from my last post (edited).

Mr. Incredible 2010-05-26 12:02

Re: Conky now in fremantle extras-testing
 
1 Attachment(s)
Thanks, but it's still there. No big problem for me.
I made a screenshot.

DaSilva 2010-05-26 12:04

Re: Conky now in fremantle extras-testing
 
What is the output for

cat /sys/class/power_supply/bq27200-0/temp

?

Mr. Incredible 2010-05-26 12:07

Re: Conky now in fremantle extras-testing
 
The output is just 40

DaSilva 2010-05-26 12:55

Re: Conky now in fremantle extras-testing
 
That is correct.
Maybe you can take a look at the line in your config. It could be related with Windows <-> Unix format but I am not sure, sorry.

Mr. Incredible 2010-05-26 15:30

Re: Conky now in fremantle extras-testing
 
I had a look but cannot find anything wrong. I copied/paste your code with my N900.

Edit:
When there is a call while Conky is running Conky won't work/update the data after the call.

mattyparanoid 2010-07-04 22:38

Re: Conky now in fremantle extras-testing
 
My Temp displays incorrectly as well in Conky and I copied/pasted from the forum as well. Could it be a text formatting issue? Everything else in Conky displays well, although I had to massage the way things lined up with spaces...

My output for cat /sys/class/power_supply/bq27200-0/temp is:

can't open 'cat /sys/class/power_supply/bq27200-0/temp': No such file or directory

Can someone help, it seems it is a syntax issue or something...Love to get my temp up and running....

DaSilva 2010-07-05 14:57

Re: Conky now in fremantle extras-testing
 
You have to do this in X-Terminal first to enable it (and then reboot):

Code:

sudo gainroot
echo bq27x00_battery >> /etc/modules

http://wiki.maemo.org/Kernel_Power#Battery

mattyparanoid 2010-07-05 16:17

Re: Conky now in fremantle extras-testing
 
DaSilva, Thanks for the heads up on that, it now displays the temp.

HOWEVER...

I still have the A with the accent over it along with the temp...getting closer...any ideas?

I saw in the forums that someone else had the A with the accent over it along with the temp, but did not see if they fixed it or how.

Appreciate your help.

DaSilva 2010-07-05 16:20

Re: Conky now in fremantle extras-testing
 
Sorry but I don't have that problem here and I don't know where it comes from.
Maybe someone else can help!?

mattyparanoid 2010-07-05 17:13

Re: Conky now in fremantle extras-testing
 
I did some tinkering with that line in the past few minutes and it is the degree symbol that brings up the A with the accent. If I take the degree symbol out, the A dissappears...

I only see one degree symbol in the extended keyboard....am I missing something? Is there perhaps a degree symbol and another symbol that are similar, yet signal different things to the software?

DaSilva 2010-07-05 18:01

Re: Conky now in fremantle extras-testing
 
I have used the only (and "official") degree symbol that I know and which is available on every keyboard.

mortak 2010-07-13 12:17

Re: Conky now in fremantle extras-testing
 
conky seems to start always in own window, i fiddled around a bit with it, but i cant start it on the desktop as a "background".

is there a way to do that?

tia mortak

fnordianslip 2010-07-13 14:04

Re: Conky now in fremantle extras-testing
 
I've not got that to work on Maemo5 and figured that it was more useful in an app window anyway.

mortak 2010-07-13 23:56

Re: Conky now in fremantle extras-testing
 
i just want to display some basic stuff in the background, like on a desktop pc.

Mr. Incredible 2010-07-23 11:18

Re: Conky now in fremantle extras-testing
 
Quote:

Originally Posted by Mr. Incredible (Post 678794)
The temp says "38°C". How can I remove the �

Today I finally solved the problem. I connected the N900 to my PC in mass storage mode and had a look at the conky.conf file. It was corrupted due to copy/paste the text with my N900 from this thread. With my finger I couldn't mark/copy all the text I think.
I have now copied the code with my PC and saved it into conky.conf. Now the  is gone.

DaSilva 2010-07-23 11:29

Re: Conky now in fremantle extras-testing
 
Good to know, then have fun with the config! :)

Creamy Goodness 2010-08-13 07:40

Re: Conky now in fremantle extras-testing
 
Uhh, so we can't change the color of bars in this version? top_io doesn't work? alignr can't take an offset?
Seriously, I'm going to smash something if i keep trying to make this thing look good. 1.6.1 is only about 11 months old, they must have added a lot to this thing recently! I see this getting updated in the near future, better use of my time than discovering all the stuff that is broken.

fnordianslip 2010-08-13 08:04

Re: Conky now in fremantle extras-testing
 
Quote:

Originally Posted by Creamy Goodness (Post 785006)
Uhh, so we can't change the color of bars in this version? top_io doesn't work? alignr can't take an offset?
Seriously, I'm going to smash something if i keep trying to make this thing look good. 1.6.1 is only about 11 months old, they must have added a lot to this thing recently! I see this getting updated in the near future, better use of my time than discovering all the stuff that is broken.

Ah. Well, If I was you, I'd start smashing. *****ing isn't going to motivate me to solve your problems.

On the other hand, if you were to tell me that the increased dependencies of latter versions (e.g. Lua) that gave me issues are now satisfied, or that you have satisfied them yourself, then I might be tempted to revisit my earlier efforts and try again with a more modern version. I've been thinking about looking at updating the package anyway, but I'm less inclined to do it soon now.


All times are GMT. The time now is 18:04.

vBulletin® Version 3.8.8