Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Conky и что есть i2c?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
dasV
n00b
n00b


Joined: 24 Jul 2005
Posts: 50

PostPosted: Mon May 29, 2006 7:16 am    Post subject: Conky и что есть i2c? Reply with quote

При загрузке выползает такая ошибка.

Code:

das@alika ~ $ conky -c .conky.conf -u 1 -b
Conky: .conky.conf: 95: no such configuration: 'min_port_monitors'
Conky: .conky.conf: 98: no such configuration: 'min_port_monitor_connections'
Conky: can't open '/sys/bus/i2c/devices/1-002d/temp2_input': No such file or directory
please fix i2c or remove it from Conky


Помогите plz, вообще я не знаю что есть i2c, а главное где бы его взять и как поставить, а очень знаете ли хочется помониторить да и интересно =)

С уважением
Back to top
View user's profile Send private message
ZByte
Tux's lil' helper
Tux's lil' helper


Joined: 18 Aug 2004
Posts: 141
Location: Moscow, Russia

PostPosted: Mon May 29, 2006 8:34 am    Post subject: Reply with quote

Code:
cat .conky.conf
Back to top
View user's profile Send private message
dasV
n00b
n00b


Joined: 24 Jul 2005
Posts: 50

PostPosted: Mon May 29, 2006 9:08 am    Post subject: Reply with quote

если имелось в виду что "а в нутре у ней неонка" то вот .conky.conf

Code:

background yes
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
use_xft yes
xftfont  Bitstream Vera Sans Mono:size=9
own_window_transparent yes
xftalpha 0.8
on_bottom yes
mail_spool $MAIL
update_interval 2
own_window no
double_buffer yes
minimum_size 320 10
maximum_width 320
draw_shades no
draw_outline no
draw_borders no
stippled_borders 2
border_width 1
default_color lightslategrey
default_shade_color white
default_outline_color white
gap_x 25
gap_y 15
alignment top_right
use_spacer yes
no_buffers yes
uppercase no

min_port_monitors 8

min_port_monitor_connections 64

TEXT
${color #0077ff}$nodename - $sysname $kernel ${alignr}$color${time %l:%M:%p}

${color #0077ff}Uptime:$color $uptime ${color #0077ff} Load:$color $loadavg
${color #0077ff}CPU Usage:$color ${cpu}% ${color #0077ff}${cpubar}
${color black}${cpugraph 0 32, 350 104E8B 0077ff}
${color #0077ff}RAM Usage:$color $mem/$memmax - $memperc% ${color #0077ff}$membar
${color #0077ff}Swap Usage:$color $swap/$swapmax - $swapperc% ${color #0077ff}${swapbar}
${color #0077ff}Procs:$color $processes ${color #0077ff}Running:$color $running_processes ${color #0077ff}CPU:$color ${i2c 1-002d temp 2}C${color #0077ff}  MB:$color ${i2c 1-002d temp 1}C

${color #0077ff}Net Down:$color ${downspeed eth0} k/s${color #0077ff} ${offset 62}Net Up:$color ${upspeed eth0} k/s
${color black}${downspeedgraph eth0 32,150 104E8B 0077ff} $alignr${color black}${upspeedgraph eth0 32,150 104E8B 0077ff}
${color #0077ff}File systems:
 ${color #0077ff}/          $color${fs_used /}/${fs_size /}${alignr}${color #0077ff}${fs_bar 5,140 /}
 ${color #0077ff}/home      $color${fs_used /home}/${fs_size /home}${alignr}${color #0077ff}${fs_bar 5,140 /home}
 ${color #0077ff}/opt       $color${fs_used /opt}/${fs_size /opt}${alignr}${color #0077ff}${fs_bar 5,140 /opt}
 ${color #0077ff}/usr/local $color${fs_used /usr/local}/${fs_size /usr/local}${alignr}${color #0077ff}${fs_bar 5,140 /usr/local}
 ${color #0077ff}/var       $color${fs_used /var}/${fs_size /var}${alignr}${color #0077ff}${fs_bar 5,140 /var}
 ${color #0077ff}/share1    $color${fs_used /share1}/${fs_size /share1}${alignr}${color #0077ff}${fs_bar 5,140 /share1}

${color #0077ff}Top Processes:
${color #0077ff}Name              PID     CPU%   MEM%
$color ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
$color ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
$color ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
$color ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$color ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color #0077ff}Mem usage
$color ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
$color ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
$color ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
 
${color #0077ff}Port(s)${alignr}#Connections
$color ALL:     ${alignr}$color ${tcp_portmon 1 65535 count}
$color mpd:     ${alignr}$color ${tcp_portmon 6600 6600 count}
$color sshd:    ${alignr}$color ${tcp_portmon 22 22 count}
$color torrent: ${alignr}$color ${tcp_portmon 6881 6999 count}
${color #0077ff}Remote Address ${alignr} Local Service/Port$color
 ${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}
 ${tcp_portmon 1 65535 rhost 11} ${alignr} ${tcp_portmon 1 65535 lservice 11}
 ${tcp_portmon 1 65535 rhost 12} ${alignr} ${tcp_portmon 1 65535 lservice 12}
 ${tcp_portmon 1 65535 rhost 13} ${alignr} ${tcp_portmon 1 65535 lservice 13}
 ${tcp_portmon 1 65535 rhost 14} ${alignr} ${tcp_portmon 1 65535 lservice 14}


С уважением
Back to top
View user's profile Send private message
ZByte
Tux's lil' helper
Tux's lil' helper


Joined: 18 Aug 2004
Posts: 141
Location: Moscow, Russia

PostPosted: Mon May 29, 2006 3:42 pm    Post subject: Reply with quote

Ну, как ты уже наверно догадался, всё дело вот в этих строчках:
Code:

${i2c 1-002d temp 2}C${color #0077ff}  MB:$color ${i2c 1-002d temp 1}C

для просвещения, что это такое можешь почитать вот это:
http://gentoo-wiki.com/HARDWARE_Sensors
да и у гугла спросить можно.

Но если кратко, то тебе нужно просто в конфиге прописать твои датчики
При включённой поддержке i2c в ядре смотреть можно здесь:
Code:
ls /sys/bus/i2c/devices/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum