Blog Forum Wiki Links Contact Us NetbookUser
RunCore Pro IV SSD Transforms your ASUS EEE PC by increasing 
performance 5-40X. Your satistfaction guaranteed RunCore Pro 70mm SATA Mini PCI-e SSD
RunCore Pro IV 70mm SATA II Mini PCI-e SSD
RunCore Pro IV 2.5 Inch SATA II SSD

You are not logged in.

#1 2008-01-03 6:46:36 am

ShaqARif
Senior Member
From: London
Registered: 2007-11-14
Posts: 383

Conky

not a beginner's question, but something for beginners as I imagine linux old hands are aware of conky already...

conky is a system monitoring program that can run on your desktop and give you all sorts of useful info.  It is highly configurable, and is even able to display the output from any scripts that you have written yourself.

The conky homepage is at http://conky.sourceforge.net/.

For ideas on how to write your conky script, there are hundreds of examples (screenshots and .conkyrc scripts) here:
http://ubuntuforums.org/showthread.php?t=281865

The variables that I have found most useful are:
${battery} - Shows the battery state, whether charging, discharging
${acpitemp} - Shows the internal temp
${wireless_essid <connection>} - Shows the ESSID.  For this I have ${wireless_essid ath0} - amend according to your connection
${wireless_link_bar <connection>} - Shows the quality of the connection

I will put up my full conky script when I get home (my eee doesn't have internet connection at work).

Until then, happy conkying!!


---- eee pc 901 Glossy Black 1GB RAM 4/8GB SSD --------- CrunchBang Linux (adamms kernel)  ------

Offline

 

#2 2008-01-03 6:48:12 am

mrmot
ExtrEmE User
From: Berkshire, UK
Registered: 2007-11-15
Posts: 1933

Re: Conky

Nice tip. Thanks!


Search and Wiki first, Question later!

Offline

 

#3 2008-01-04 10:05:22 am

3lj
Member
Registered: 2007-12-04
Posts: 38

Re: Conky

i have used conky with fluxbox, looks great

i'll post my scripts with screenshot aswell in a bit

Offline

 

#4 2008-01-04 10:24:45 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Conky

good information, now learning to alter the default look.

but first, I start it with conky, how do I stop it ?

Last edited by o2smartphone (2008-01-04 10:26:09 am)


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#5 2008-01-04 10:53:15 am

ShaqARif
Senior Member
From: London
Registered: 2007-11-14
Posts: 383

Re: Conky

o2smartphone wrote:

good information, now learning to alter the default look.

but first, I start it with conky, how do I stop it ?

if in your .conkyrc you have a line which is something like:

background yes

then this will mean that conky is running in the background.  when you type conky, and hit return, does the command prompt return? If it does, then your conky is running as a background process.

In this case, to kill it, you can do:

killall conky

this saves having to look up the process id using

ps -ef | grep conky

and killing that way.


---- eee pc 901 Glossy Black 1GB RAM 4/8GB SSD --------- CrunchBang Linux (adamms kernel)  ------

Offline

 

#6 2008-01-04 11:07:16 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Conky

I type the word in the address bar rather than using terminal, so I do not have the luck to see the command prompt.
At last, I restart my eee smile

I can get rid of it by the line killall conky, but can I set hotkey for that ?


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#7 2008-01-04 1:26:30 pm

ShaqARif
Senior Member
From: London
Registered: 2007-11-14
Posts: 383

Re: Conky

don't know about setting a hotkey for it, but how often would you want to kill it anyway?
Why not keep it running in the background?  It is very light on system resources (and can be made to be even lighter by setting the update_interval to a higher value).


---- eee pc 901 Glossy Black 1GB RAM 4/8GB SSD --------- CrunchBang Linux (adamms kernel)  ------

Offline

 

#8 2008-01-04 4:52:15 pm

JerryF
Member
Registered: 2007-12-29
Posts: 25

Re: Conky

I really look forward to some sample conkyrc files, as I ( a total noob) have gotten it running, but haven't succeeded in getting it monitoring wireless or cpu temperature.  So bring on those samples. :-)

thx.

Offline

 

#9 2008-01-04 7:17:10 pm

quagga
Senior Member
From: Virginia, Earth
Registered: 2007-10-31
Posts: 411

Re: Conky

I took Tristan Green's conkyrc from this post: http://ubuntuforums.org/showpost.php?p= … count=1007 and modified it to my liking and the eee. 

Edit: Bah, preview distorts.  Click here for screenshot: http://quaggaspace.org/eee/eee-conky.png

And the conf file is here if anyone likes: http://quaggaspace.org/eee/conkyeee

Edit (another one): The conf file for the wireless is setup to use wlan0 as that is what the new madwifi-ng uses.  If you're using this on the classic Xandros it is called ath0.  Do a find and replace in your favorite text editor to switch them out. 

In vi (the Very Intuitive editor) that would be a :s%/wlan0/ath0/g

Last edited by quagga (2008-01-04 7:29:03 pm)

Offline

 

#10 2008-01-04 11:38:20 pm

JerryF
Member
Registered: 2007-12-29
Posts: 25

Re: Conky

Thanks quagga.

I tried your conkyrc file and it looks good.  But I still don't get cpu temp.  It shows 0 degrees.  For completeness, I am running my conky from the advanced desktop.

With your suggestion of changing wlan with ath, that got me basic info like my ip address, but the majority of the variables on the wireless section didn't work.  I hope someone can suggest variable names that work with our xandros distro.

Thx
Jerry

Last edited by JerryF (2008-01-04 11:58:38 pm)

Offline

 

#11 2008-01-05 12:54:43 am

JerryF
Member
Registered: 2007-12-29
Posts: 25

Re: Conky

Whoo-hoo!   I got the temperature to read out once I added acpitemp to /etc/modules.

Thanks again,

Jerry

Offline

 

#12 2008-01-05 10:59:31 am

quagga
Senior Member
From: Virginia, Earth
Registered: 2007-10-31
Posts: 411

Re: Conky

Hmm, the wireless thing does have me confused - I would have thought that would stay.  But I did modify a version which was on the ubuntu forums and I'm running ubuntu on my eee so that might explain why it all works smile

Now on my athlon desktop its a bit odd as the temperature always reads 40C.  I'm not sure I buy that.  The athlon has different ways of measuring temp of the CPU core but I can't seem to get that to work.

Offline

 

#13 2008-01-05 12:57:04 pm

psic
Member
Registered: 2008-01-05
Posts: 16

Re: Conky

This looks cool, I use Conky on my desktop (gentoo linux). I think I'll try it out here, but to keep it simpler. Thanks for the info about the temperature readings!

Offline

 

#14 2008-01-07 12:03:42 pm

JerryF
Member
Registered: 2007-12-29
Posts: 25

Re: Conky

Nobody got any Conkyrc files to share?

I'd welcome seeing one that has the wireless settings working.  I finally got the temp reading ok, but the majority of the wireless atributes don't work.

Thx..
Jerry

Offline

 

#15 2008-01-08 4:04:58 pm

psic
Member
Registered: 2008-01-05
Posts: 16

Re: Conky

I've just setup conky, working great. I'll share my config file (very simple, doesn't use much screen space) when I get home (in a cyber cafe at the moment), I'm just wondering how to start conky when KDE starts up. In Gentoo I have a small script that runs one or two things at startup, but I'm not sure what's the best way to go about it here in Xandros?

Offline

 

#16 2008-01-09 5:49:34 am

ShaqARif
Senior Member
From: London
Registered: 2007-11-14
Posts: 383

Re: Conky

JerryF wrote:

Nobody got any Conkyrc files to share?

I'd welcome seeing one that has the wireless settings working.  I finally got the temp reading ok, but the majority of the wireless atributes don't work.

Thx..
Jerry

.conkyrc files?  More than you can shake a stick at over here...

http://ubuntuforums.org/showthread.php?t=281865

Re. your wireless, are you using the correct device?  On mine it's ath0, what are you using?


---- eee pc 901 Glossy Black 1GB RAM 4/8GB SSD --------- CrunchBang Linux (adamms kernel)  ------

Offline

 

#17 2008-01-09 10:00:51 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Conky

I use ${wireless_essid ath0} it returns ${wireless_essid }, how is that ?


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#18 2008-01-09 10:51:38 am

ShaqARif
Senior Member
From: London
Registered: 2007-11-14
Posts: 383

Re: Conky

Can't see anything wrong with the syntax there, can you put up your full .conkyrc, and may be we'll spot something awry?

I thing it's more likely a runaway string from earlier in the file.


---- eee pc 901 Glossy Black 1GB RAM 4/8GB SSD --------- CrunchBang Linux (adamms kernel)  ------

Offline

 

#19 2008-01-09 11:27:45 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Conky

http://865gv.kornhill.hk/eeepc/snapshot89.png

Code:

# .conkyrc    2008/01/09

#update intervals
update_interval 3.0

# Use xft
use_xft yes
xftfont Sans:style=normal:size=8

maximum_width 270
alignment top_right
default_color white

# not all text in uppercase
uppercase no

TEXT
$nodename - $sysname $kernel on $machine
$color $stippled_hr
${color lightgrey}Uptime:$color $uptime $alignr${color lightgrey}Load:$color $loadavg
${color lightgrey}CPU: $color ${freq} Mhz $alignr${color lightgrey} Usage:$color $cpu% 
$color${cpubar}
${color lightgrey}Battery: $color ${battery}
${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${membar}
$color $stippled_hr
${color lightgrey}Processes:$color $processes ($running_processes running)
$color $stippled_hr
${color lightgrey}ath0 Signal $color${linkstatus ath0}% $alignr$color${addr ath0}
$color${wireless_essid ath0} $alignr$color${wireless_link_bar ath0} 
${color lightgrey}eth0: $alignr$color${addr eth0}
${color lightgrey}Down:$color ${downspeed eth0} k/s $alignr${color lightgrey}Up:$color ${upspeed eth0} k/s
${color lightgrey}Temp: $color${acpitemp} C

Last edited by o2smartphone (2008-01-09 11:31:32 am)


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#20 2008-01-09 12:36:35 pm

ShaqARif
Senior Member
From: London
Registered: 2007-11-14
Posts: 383

Re: Conky

Really can't see anything wrong with that.  What version of conky are you running?  If it's an older version, then it may be that those variables are not available in that version.

Do conky -v, and see what that comes up with, if it's not 1.4.9, try upgrading.

As an aside, 'killall -SIGUSR1 conky' reloads your .conkyrc file, saves having to kill and restart conky each time.

One other thing that might be worth trying - put the problem variable in another part of the file, say just after the 'TEXT' header, to see if it gets picked up there.

E.g. replace

TEXT
$nodename - $sysname $kernel on $machine

with

TEXT
${wireless_essid ath0}
$nodename - $sysname $kernel on $machine

and see if that works.

Last edited by ShaqARif (2008-01-09 1:05:03 pm)


---- eee pc 901 Glossy Black 1GB RAM 4/8GB SSD --------- CrunchBang Linux (adamms kernel)  ------

Offline

 

#21 2008-01-10 12:35:23 pm

JerryF
Member
Registered: 2007-12-29
Posts: 25

Re: Conky

I have the same issues with ESSID values in my IP section of my file. 

Thanks for the tip on version.  I'll check, but I think the ultimate question is "are you still running the original Xandros OS"?  If you say "yes, and it all works for me", well I'll be surprised.  I think most who have had success are running gentoo or xubunto or something.

I suspect the variables you're querying aren't loaded.  At least that's how I got my cpu temp to work, was by adding thermal to my modules file.

Re the wireless device of aht0, yes, I know I'm using the right variable, as i got the IP address to get posted right. 

Thanks for the effort.

Jerry

Offline

 

#22 2008-01-10 12:58:58 pm

quagga
Senior Member
From: Virginia, Earth
Registered: 2007-10-31
Posts: 411

Re: Conky

I'm guessing at this point this is a limitation of the driver shipped by ASUS as this guy:  http://ubuntuforums.org/showthread.php?t=535809 has an ath0 working on ubuntu. 

The solution might be as simple as replacing the stock wireless driver with the one Atheros/madwifi released.  I believe there was someone in this forum who had already compiled it for the eee kernel (so he could use kismet). 

Although really, I guess it depends on how hellbent you are on getting a SSID to appear in your conky smile.

Offline

 

#23 2008-01-10 7:46:38 pm

psic
Member
Registered: 2008-01-05
Posts: 16

Re: Conky

Here's my simple conky config, I'm using the default xandros OS with KDE (advanced desktop). It works really nice with a white backround.

# maintain spacing between certain elements
use_spacer no

# set to yes if you want tormo to be forked in the background
background yes

use_xft yes

# Xft font when Xft is enabled
#xftfont Vera-9:size=7
#xftfont Andale Mono-9
#xftfont Clean-8
xftfont cubicfive10:pixelsize=10
#xftfont squaredance10:pixelsize=14
#xftfont swf!t_v02:pixelsize=10

# Text alpha when using Xft
xftalpha 1
mail_spool $MAIL

# Update interval in seconds
update_interval 1.0

# Create own window instead of using desktop (required in nautilus)
own_window no
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_hints below

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 180 5
maximum_width 200

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no # amplifies text

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 3

# border margins
border_margin 4

# border widt5
border_width 4

# Default colors and also border colors, grey90 == #ff9900
default_color grey90
default_shade_color black
default_outline_color DarkGrey

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 4
gap_y 2

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# stuff after 'TEXT' will be formatted on screen

TEXT

${color #203ca6}System ${hr 1}
  ${color #ff9900}cpu usage ${color #ff9900} $alignr $cpu%
  ${color #ff9900}cpu temp ${color #ff9900} $alignr ${acpitemp}
  ${color #ff9900}memory $alignr $mem/${memmax}
      ${color #203ca6}${membar}

${color #203ca6}Wireless ${hr 1}
  ${color ff9900}down ${color #ff9900}${downspeedf wifi0} ${color ff9900}k/s ${alignr}${color ff9900}up ${color #203ca6}${upspeedf wifi0} ${color ff9900}k/s
  ${color ff9900}total down: ${totaldown wifi0} $alignr total up: ${totalup wifi0}

${color #203ca6}File System ${hr 1}
  ${color #ff9900}root  ${color white}${fs_free /} (${fs_free_perc /}%) ${color #ff9900}free of ${fs_size /}
       ${color #203ca6}${fs_bar /}

Offline

 

#24 2008-01-20 7:14:16 am

sjaglin
Member
From: Bristol, UK
Registered: 2007-12-28
Posts: 35

Re: Conky

to psic

That's a great simple and Eee fitted .conkyrc file, I'll drop gkrellm for now and stick conky in my Autostart...
Stef

:-)


Asus M2NPV-VM&QNAP 109&BT-HomeHub
Multi boot Mandriva 2008+XP
Asus Eee 1000H 80GB Multi boot 200.1/cooker/xp

Offline

 

#25 2008-01-31 5:45:13 am

yeleek
Member
Registered: 2007-11-19
Posts: 50

Re: Conky

If wireless isn't working make sure you have compiled conky with wireless support.  I tried the version in std repositories -- no joy.  Tried compiling my own 1.4.9 no joy.  Finally compiled with ./configure --prefix=/usr --enable-wlan and it works like a charm.

Offline

 

Board footer

Powered by PunBB 1.2.15
© Copyright 2002–2005 Rickard Andersson