Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 08/12/2006, à 16:00

XtrA

Conky prob refresh

Hello smile

C'est à propos de conky.
Pour ce qui est des graph CPU et tout ça marche nickel. mais dans le top processes ou autres ça foire pas mal.
J'ai essayé différentes conf et toujours pareil.  En fait ça réécrit sur l'ancien texte donc j'ai un espèce de grifouilli.
Voici un petit screen (ça vous dira sans doute +)
bugconkymi7.th.png
Regardez au niveau de CPU Usage/RAM Usage/Outbound Connection/Mem Usage...

Comment pourrait-on régler cela ?

Merci d'avance

Hors ligne

#2 Le 08/12/2006, à 19:31

Thesalan

Re : Conky prob refresh

Dans ton script .conkyrc rajoutes:

own_window yes
double_buffer yes

http://doc.ubuntu-fr.org/applications/conky

#3 Le 08/12/2006, à 20:02

XtrA

Re : Conky prob refresh

Merci pour la réponse mais ça fait toujours pareil voici mon .conkyrc
(j'avais déjà ces 2 options)

use_xft yes
xftfont Bitstream Vera Sans Mono:size=8
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar
background yes
double_buffer yes
minimum_size 280 5
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 0
border_width 0
default_color white
default_shade_color black
default_outline_color black
alignment top-right
gap_x 10
gap_y 20
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer no
min_port_monitors            0
min_port_monitor_connections        0

TEXT

${color white}Xtrace in d4 b0x
${time %A %d %B %Y} - ${time %H:%M:%S}
$sysname $kernel sur AMD 64 4000+
${color #040404}$stippled_hr
${color white}Uptime:$color $uptime ${color white}- Load:$color $loadavg
${color white}CPU Usage:${color white} $cpu% ${cpubar}
${color red}${cpugraph 0000ff 00ff00}
${color white}RAM Usage:$color $mem/$memmax - $memperc% ${membar}
${color white}Processes:$color $processes ${color white}Running:$color $running_processes
${color #040404}$stippled_hr
${color white}Reseau
Down:${color white} ${downspeed eth0} k/s${color white} ${offset 80}Up:${color white} ${upspeed eth0} k/s
${color #0000ff}${downspeedgraph eth0 32,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth0 32,150 0000ff ff0000}
${color #040404}$stippled_hr
${color white}Etat /hda - Libre/Total
$color${fs_free /}/${fs_size /} ${fs_bar /}
${color #040404}$stippled_hr
${color black}Process            PID    %CPU   %MEM
${color yellow} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color white} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color white} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color white} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color white} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color black}Memoire
${color yellow} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color white} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color white} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color white} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color white} ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
${color #040404}$stippled_hr
${color white}Temperature systeme
${color yellow}M/B: ${exec expr `cat /sys/bus/i2c/devices/9191-0290/temp1_input` / 1000} C  
${color green}CPU: ${exec expr `cat /sys/bus/i2c/devices/9191-0290/temp2_input` / 1000} C
${color #040404}$stippled_hr
${color black}Port(s) ouvert(s): ${color black}${tcp_portmon 1 65535 count}
${color blue} ${tcp_portmon 1 65535 rhost 0} $alignr${tcp_portmon 1 65535 lservice 0}
${tcp_portmon 1 65535 rhost 1} $alignr${tcp_portmon 1 65535 lservice 1}
${tcp_portmon 1 65535 rhost 2} $alignr${tcp_portmon 1 65535 lservice 2}
${tcp_portmon 1 65535 rhost 3} $alignr${tcp_portmon 1 65535 lservice 3}
${tcp_portmon 1 65535 rhost 4} $alignr${tcp_portmon 1 65535 lservice 4}
${tcp_portmon 1 65535 rhost 5} $alignr${tcp_portmon 1 65535 lservice 5}
${tcp_portmon 1 65535 rhost 6} $alignr${tcp_portmon 1 65535 lservice 6}
${tcp_portmon 1 65535 rhost 7} $alignr${tcp_portmon 1 65535 lservice 7}
${tcp_portmon 1 65535 rhost 8} $alignr${tcp_portmon 1 65535 lservice 8}
${tcp_portmon 1 65535 rhost 9} $alignr${tcp_portmon 1 65535 lservice 9}
${tcp_portmon 1 65535 rhost 10} $alignr${tcp_portmon 1 65535 lservice 10}
${color #040404}$stippled_hr

Dernière modification par XtrA (Le 08/12/2006, à 20:03)

Hors ligne

#4 Le 10/01/2007, à 19:54

Iktose

Re : Conky prob refresh

je me permet de relancer ce post ce soir, car c'est le seul d'apres mes recherches qui parle de ce probleme que j'ai moi aussi. J'ai deja googlé mon probleme et franchement j'ai rien trouvé de pertinent.

je suis sous Edgy avec Beryl 0.1.4 et Conky 1.4.2
que ce soit avec le .conkyrc de base (cf wiki) ou avec le meme que XtrA j'ai aussi ce probleme de persistence qui fait que toutes les infos de conky se réécrivent sur elles memes a chaque rafraichissement.

Autant vous dire : au bout de 3 secondes c'est illisible !

Ok j'ai trouvé un debut de solution... ne pas lancer beryl... mais on peut pas vraiment appeler ca une solution hmm Du coup j'ai cherché du coté de Beryl et j'ai eu beau trifouiller toutes les options, rien n'y a fait.

Y doit bien y avoir une astuce pour faire cohabiter Beryl ET Conky, si qq'un la connait je suis preneur. Sinon je resterai frustré de ne pas de ne pas avoir pu le faire roll


-- There's no place like 127.0.0.1 --

Hors ligne

#5 Le 12/01/2007, à 15:57

Titoubuntu

Re : Conky prob refresh

Bonjour, alors j'ai eu le meme problème, et en fait conky se lancait deux fois, causant les gribouillis, donc ca peut etre ça...

Sinon, j'ai récemment compilé la version 1.4.5, et j'ai l'impression que ca marche nettement mieux avec beryl (et aussi en ajoutant "own_window_type override " dans mon conkyrc)

voila, en esperant vous avoir aidé smile

#6 Le 12/01/2007, à 17:45

Iktose

Re : Conky prob refresh

Merci pour ta réponse.

Je suis sur de n'avoir qu'un seul proc conky qui tourne j'ai deja verifié.

Concernant la compilation de la version 1.4.5 je me suis penché dessus mais il me manque une librairie "glib-2.0" (au configure) que je n'ai pas pu installer par apt-get. J'avoue ne pas avoir poussé plus loin mes recherches pour le moment par manque de temps.

Je fais ça ce week end et je poste mes progrès.


-- There's no place like 127.0.0.1 --

Hors ligne

#7 Le 13/01/2007, à 18:20

Iktose

Re : Conky prob refresh

Bon j'ai compilé conky 1.4.5... Ben c'est pas mieux tongue

Mais j'ai trouvé un autre truc. En changeant cette ligne dans le .conkyrc :

own_window_transparent no

je n'ai plus l'effet de "persistance" en revanche ca clignote et là c'est agaçant hmm

Je vais faire un tour sur le wiki, je re...

Victoire !!!!

En activant le double-buffer ca marche !!
Attention pour "vraiment" activer le double buffer en plus de noter ca dans le .conkyrc

double_buffer yes

Il faut ajouter :

Load "dbe"

Dans le xorg.conf dans la section :

Section "Module"
...
EndSection

Redémarrage du serveur X et hop le tour est joué big_smile Mon conky ne fait plus de saletés il tourne parfaitement. Me reste plus qu'a le configurer.

Merci pour l'aide et j'espere que ca servira à d'autres.

PS : si l'auteur initial du sujet passe par là il peut toujours mettre à jour le topic wink


-- There's no place like 127.0.0.1 --

Hors ligne

#8 Le 23/05/2007, à 17:38

Astier

Re : Conky prob refresh

Une question aux compilateurs de conky : quelles options faut-il mettre au moment du ./configure pour que conky tourne bien avec Beryl ?

J'ai regardé dans la doc mais je m'y perds un peu : il faut ajouter des --enable....... pour quoi au juste ? Pour tout ce qu'on appelle dans son .conkyrc ? Si ça peut aider dans vos réponses voici mon .conkyrc :

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

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

override_utf8_locale yes

# X font when Xft is disabled, you can pick one with program xfontsel
#font 8x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
#font -*-luxi sans-medium-r-normal-*-13-*-*-*-*-*-iso8859-2
#font -*-helvetica-medium-r-normal-*-12-*-100-100-*-*-iso8859-2
#font -*-lucidatypewriter-medium-r-*-*-14-*-100-100-*-*-iso8895-2
#font -*-courier-medium-r-normal-*-14-*-100-100-*-*-iso8859-2
#font -*-lucida-medium-r-normal-*-13-*-*-*-*-*-iso8859-2

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont monospace-8
xftfont Sans -8.5



# Text alpha when using Xft
xftalpha 0.8


# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1

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

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

# Minimum size of text area
minimum_size 5 5
maximum_width 217

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 0

# drawn 1 pixel border around graphs or not
draw_graph_borders yes

# Default colors and also border colors
default_color black
default_shade_color black
default_outline_color black

# 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 5
gap_y 5 #margines gorny

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer yes

# Subtract file system buffers from used memory?
no_buffers yes

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

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
#      Variable         Arguments                  Description                
#  acpiacadapter                     ACPI ac adapter state.                   
#  acpifan                           ACPI fan state                           
#  acpitemp                          ACPI temperature.                        
#  adt746xcpu                        CPU temperature from therm_adt746x       
#  adt746xfan                        Fan speed from therm_adt746x             
#  battery           (num)           Remaining capasity in ACPI or APM        
#                                    battery. ACPI battery number can be      
#                                    given as argument (default is BAT0).     
#  buffers                           Amount of memory buffered                
#  cached                            Amount of memory cached                  
#  color             (color)         Change drawing color to color            
#  cpu                               CPU usage in percents                    
#  cpubar            (height)        Bar that shows CPU usage, height is      
#                                    bar's height in pixels                   
#  downspeed         net             Download speed in kilobytes              
#  downspeedf        net             Download speed in kilobytes with one     
#                                    decimal                                  
#  exec              shell command   Executes a shell command and displays    
#                                    the output in torsmo. warning: this      
#                                    takes a lot more resources than other    
#                                    variables. I'd recommend coding wanted   
#                                    behaviour in C and posting a patch :-).  
#  execi             interval, shell Same as exec but with specific interval. 
#                    command         Interval can't be less than              
#                                    update_interval in configuration.        
#  fs_bar            (height), (fs)  Bar that shows how much space is used on 
#                                    a file system. height is the height in   
#                                    pixels. fs is any file on that file      
#                                    system.                                  
#  fs_free           (fs)            Free space on a file system available    
#                                    for users.                               
#  fs_free_perc      (fs)            Free percentage of space on a file       
#                                    system available for users.              
#  fs_size           (fs)            File system size                         
#  fs_used           (fs)            File system used space                   
#  hr                (height)        Horizontal line, height is the height in 
#                                    pixels                                   
#  i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev   
#                                    may be omitted if you have only one I2C  
#                                    device. type is either in (or vol)       
#                                    meaning voltage, fan meaning fan or temp 
#                                    meaning temperature. n is number of the  
#                                    sensor. See /sys/bus/i2c/devices/ on     
#                                    your local computer.                     
#  kernel                            Kernel version                           
#  loadavg           (1), (2), (3)   System load average, 1 is for past 1     
#                                    minute, 2 for past 5 minutes and 3 for   
#                                    past 15 minutes.                         
#  machine                           Machine, i686 for example                
#  mails                             Mail count in mail spool. You can use    
#                                    program like fetchmail to get mails from 
#                                    some server using your favourite         
#                                    protocol. See also new_mails.            
#  mem                               Amount of memory in use                  
#  membar            (height)        Bar that shows amount of memory in use   
#  memmax                            Total amount of memory                   
#  memperc                           Percentage of memory in use              
#  new_mails                         Unread mail count in mail spool.         
#  nodename                          Hostname                                 
#  outlinecolor      (color)         Change outline color                     
#  pre_exec          shell command   Executes a shell command one time before 
#                                    torsmo displays anything and puts output 
#                                    as text.                                 
#  processes                         Total processes (sleeping and running)   
#  running_processes                 Running processes (not sleeping),        
#                                    requires Linux 2.6                       
#  shadecolor        (color)         Change shading color                     
#  stippled_hr       (space),        Stippled (dashed) horizontal line        
#                    (height)        
#  swapbar           (height)        Bar that shows amount of swap in use     
#  swap                              Amount of swap in use                    
#  swapmax                           Total amount of swap                     
#  swapperc                          Percentage of swap in use                
#  sysname                           System name, Linux for example           
#  time              (format)        Local time, see man strftime to get more 
#                                    information about format                 
#  totaldown         net             Total download, overflows at 4 GB on     
#                                    Linux with 32-bit arch and there doesn't 
#                                    seem to be a way to know how many times  
#                                    it has already done that before torsmo   
#                                    has started.                             
#  totalup           net             Total upload, this one too, may overflow 
#  updates                           Number of updates (for debugging)        
#  upspeed           net             Upload speed in kilobytes                
#  upspeedf          net             Upload speed in kilobytes with one       
#                                    decimal                                  
#  uptime                            Uptime                                   
#  uptime_short                      Uptime in a shorter format               
#
#  seti_prog                         Seti@home current progress
#  seti_progbar      (height)        Seti@home current progress bar
#  seti_credit                       Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
#${font Luxi Mono:size=10}justo como este texto que o google traduz fĂ?ÂŞz o portuguĂ?ÂŞs
# stuff after 'TEXT' will be formatted on screen

TEXT
${font Verdana:size=11}$alignc${color #DBAA82}${Time %d %B %Y} - ${color #FFFB00}${time %H:%M:%S}${font Sans:size=8.5}










${color #FF000C}Moniteur Systeme : ${color #DBAA82}${stippled_hr}
${color #DBAA82}$sysname : ${color #565868}$kernel ${color #DBAA82}on ${color #565868}$machine
${color #DBAA82}Uptime : ${color #B6A291}$uptime | ${color #DBAA82}Temp : ${color #B6A291}${acpitemp}°C

${color #DBAA82}Adaptateur : ${color #FFFB00}${acpiacadapter}
${color #DBAA82}Autonomie : ${color #FFFB00}${battery BAT1} ${battery_time BAT1}

${color #DBAA82}cpu: ${color #FFFB00}${cpu}% ${color #344299}$cpubar
${color #FFFFFF}${cpugraph DBAA82 344299}
${color #DBAA82}ram : ${color #3652FF}$mem ${color #DBAA82}/ $memmax - ${color #FFFB00}$memperc% ${color #344299}$membar
${color #DBAA82}swap : ${color #3652FF}$swap ${color #DBAA82}/ $swapmax - ${color #FFFB00}$swapperc% ${color #344299}$swapbar

${color #FFFB00}.: ${top name 1}
${color #DBAA82}PID: ${color #FFFB00}${top pid 1} ${color #DBAA82}%cpu : ${color #FFFB00}${top cpu 1}
${color #565868}.: ${top name 2}
${color #DBAA82}PID: ${color #3652FF}${top pid 2} ${color #DBAA82}%cpu : ${color #344299}${top cpu 2}
${color #565868}.: ${top name 3}
${color #DBAA82}PID: ${color #3652FF}${top pid 3} ${color #DBAA82}%cpu : ${color #344299}${top cpu 3} 

${color #FF000C}Disques : ${color #DBAA82}${stippled_hr}
${color #DBAA82}/ : ${color #3652FF}${fs_used /} ${color #DBAA82}/ ${fs_size /} (${color #FFFB00}${fs_free_perc /}% ${color #DBAA82}free)
${color #344299}${fs_bar /}

${color #DBAA82}/home : ${color #3652FF}${fs_used /home} ${color #DBAA82}/ ${fs_size /home} (${color #FFFB00}${fs_free_perc /home}% ${color #DBAA82}free)
${color #344299}${fs_bar /home}

${color #FF000C}Réseau : ${color #DBAA82}${stippled_hr}
${color #DBAA82}down: ${color #FFFB00}${downspeedf eth1} k/s        ${color #DBAA82}up: ${color #FFFB00}${upspeedf eth1} k/s
${color #FFFFFF}${downspeedgraph eth1 25,100 DBAA82 344299}    ${color #FFFFFF}${upspeedgraph eth1 25,100 344299 DBAA82}

${color #FF000C}Anniversaires : ${color #DBAA82}${stippled_hr}
${color #DBAA82}${execi 1800 birthday}

${color #FF000C}Musique : ${color #DBAA82}${stippled_hr}
$alignc${color #FFFB00}${gmb_title}
$alignc${color #DBAA82}${gmb_artist}
$alignc${color #DBAA82}${gmb_album}
$alignc${color #DBAA82}${mpd_elapsed} / ${mpd_length} (${mpd_percent}%)
${color #3652FF}${gmb_bar (20),(100)}

Pour ceux que ça intéresse, Quentin Sculo a écrit un patch pour conky pour afficher la piste lue par gmusicbrowser (http://squentin.free.fr/gmusicbrowser/gmusicbrowser.html) dans conky : http://sourceforge.net/forum/forum.php

Merci beaucoup et à bientôt

PS : Je poste également ici : http://forum.ubuntu-fr.org/viewtopic.php?id=10521

Dernière modification par Astier (Le 23/05/2007, à 17:40)

Hors ligne