Форум русскоязычного сообщества Ubuntu


Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!

Автор Тема: Conky - не хотят запускаться.  (Прочитано 2232 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн SergGnom

  • Автор темы
  • Участник
  • *
  • Сообщений: 107
    • Просмотр профиля
Conky - не хотят запускаться.
« : 16 Января 2010, 12:46:03 »
Ни чего уже давно с ними не делал. Система обновлялась. И вот как то после какого то апдейта  - коньки не запустились. В чем дело - понять не могу. Инет молчит или плохо искал. прошу помощи. Лог ниже:

sergey@serggnom ~ $ conky
Conky: desktop window (10c) is root window
Conky: drawing to desktop window
Conky: drawing to double buffer
***** Imlib2 Developer Warning ***** :
   This program is calling the Imlib call:

   imlib_get_visual_depth();

   With the parameter:

   visual

   being NULL. Please fix your program.
X Error of failed request:  BadColor (invalid Colormap parameter)
  Major opcode of failed request:  91 (X_QueryColors)
  Resource id in failed request:  0x0
  Serial number of failed request:  826
  Current serial number in output stream:  826
sergey@serggnom ~ $

Оффлайн dsf1

  • Новичок
  • *
  • Сообщений: 24
    • Просмотр профиля
Re: Conky - не хотят запускаться.
« Ответ #1 : 16 Января 2010, 14:39:46 »
перед text поставь это


# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

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

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

# Minimum size of text area
minimum_size 180 0
#maximum_width 200

# 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_inner_margin 1

# border width
border_width 1

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

# 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
# same thing as passing -x at command line

# Subtract file system buffers from used memory?
no_buffers yes

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

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none
default_color DCDCDC #Gainsboro
color0 7FFFD4 #Aquamarine
color1 CD5C5C #IndianRed #00CED1 DarkTurquoise #FFA07A LightSalmon #00FFFF Cyan
color2 FF8C00 #Darkorange #D2691E #Chocolate
color3 7FFF00 #Chartreuse
color4 778899 #LightSlateGrey
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
#   colours below used by colorize script
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red

alignment tl  # Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr
gap_x 30
gap_y 30
text_buffer_size 6076 # large buffer needed
no_buffers yes  # Subtract file system buffers from used memory?
short_units yes
pad_percents 2

Оффлайн SergGnom

  • Автор темы
  • Участник
  • *
  • Сообщений: 107
    • Просмотр профиля
Re: Conky - не хотят запускаться.
« Ответ #2 : 16 Января 2010, 17:11:56 »
что то не совсем понял - что это то?

Оффлайн olgmen

  • Активист
  • *
  • Сообщений: 493
    • Просмотр профиля
Re: Conky - не хотят запускаться.
« Ответ #3 : 16 Января 2010, 17:24:51 »
Видно не подумав дали ответ.

Судя по всему в conkyrc есть ссылка на imlib

  imlib_get_visual_depth();

имеющий параметр

  visual
Без текста conkyrc тяжело что то посоветовать
кто хочет, тот добьется,
кто ищет, тот всегда найдет

Оффлайн SergGnom

  • Автор темы
  • Участник
  • *
  • Сообщений: 107
    • Просмотр профиля
Re: Conky - не хотят запускаться.
« Ответ #4 : 16 Января 2010, 18:38:11 »
вот! :

alignment bottom_right
background no
border_width 1
cpu_avg_samples 2
default_color green
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
# font 6x10
gap_x 5
gap_y 60
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
own_window no
own_window_class Conky
own_window_type normal
stippled_borders 0
update_interval 3.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
double_buffer yes
use_xft yes
xftfont Courier caps:size=8
override_utf8_locale yes

#uppercase yes

TEXT
${color slate grey} $nodename - $sysname
$hr
${color grey} ${font StyleBats:size=14}P${font} Uptime: $uptime
${color grey}Frequency (in MHz): $freq
#${color grey}RAM Usage: $mem/$memmax - $memperc% ${membar 4}
#${color grey}Swap Usage: $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}RAM Usage: $mem/$memmax - $memperc%
${color grey}Swap Usage: $swap/$swapmax - $swapperc%
${color grey}CPU Usage: $cpu% ${cpubar 4}
${color grey}CPU temp in C: $acpitemp
${color grey}Processes: $processes  ${color grey}Running: $running_processes
${color grey}File systems:
 / ${fs_free /}/${fs_size /} ${fs_bar 6 /}
 home ${fs_free /home}/${fs_size /home} ${fs_bar 6 /home}
${color grey}Networking:
${font PizzaDude Bullets:size=14}v${font} Up: ${upspeed ppp0} k/s
${font PizzaDude Bullets:size=14}r${font} Down: ${downspeed ppp0} k/s
$hr
${color grey}Name                  PID   CPU%   MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color lightgrey} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}

Оффлайн olgmen

  • Активист
  • *
  • Сообщений: 493
    • Просмотр профиля
Re: Conky - не хотят запускаться.
« Ответ #5 : 16 Января 2010, 21:22:58 »
Ошибок нет.
Пробовал запустить с помощью

conky -c ~/название файла
запустилось без проблем, никаких выводов об ошибке не появилось.
кто хочет, тот добьется,
кто ищет, тот всегда найдет

Оффлайн SergGnom

  • Автор темы
  • Участник
  • *
  • Сообщений: 107
    • Просмотр профиля
Re: Conky - не хотят запускаться.
« Ответ #6 : 16 Января 2010, 22:07:50 »
то что ошибок нет я и сам знаю - он же работал! )))

какие есть еще версии что случилось?

Оффлайн valentin_13

  • Активист
  • *
  • Сообщений: 439
    • Просмотр профиля
Re: Conky - не хотят запускаться.
« Ответ #7 : 17 Января 2010, 00:14:19 »
А если попробовать полностью переустановить?
Или запустить с другим конфигом?

Оффлайн SergGnom

  • Автор темы
  • Участник
  • *
  • Сообщений: 107
    • Просмотр профиля
Re: Conky - не хотят запускаться.
« Ответ #8 : 17 Января 2010, 10:14:28 »
через синаптик переустанавливал сия приложения - результат нулевой.

а что подразумеваем под полной переустановкой? можно как то частями что ли? )

Оффлайн valentin_13

  • Активист
  • *
  • Сообщений: 439
    • Просмотр профиля
Re: Conky - не хотят запускаться.
« Ответ #9 : 17 Января 2010, 11:36:56 »
В Синаптике есть пункт "ометить для полного удаления"
или ~# aptitude purge в синаптике

Оффлайн SergGnom

  • Автор темы
  • Участник
  • *
  • Сообщений: 107
    • Просмотр профиля
Re: Conky - не хотят запускаться.
« Ответ #10 : 17 Января 2010, 17:03:03 »
не помогло...

Пользователь решил продолжить мысль 17 Января 2010, 16:52:56:
http://forums.linuxmint.com/viewtopic.php?f=47&t=39206&start=0

со старым конифгом почему таким методом у меня заработало. НО: хочется именно тот что указал я выше... есть мнение?

Пользователь решил продолжить мысль 17 Января 2010, 19:01:33:
с которым работает в данный момент на том же месте в ~


# 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
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2007 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# 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 bottom_right
background no
border_width 1
cpu_avg_samples 2
default_color green
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
font 6x10
gap_x 5
gap_y 60
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
own_window no
own_window_class Conky
own_window_type normal
stippled_borders 0
update_interval 3.0
uppercase no
use_spacer no
show_graph_scale no
show_graph_range no

double_buffer yes

TEXT
$nodename - $sysname
$hr
${color red}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}CPU temp in C:$color $acpitemp
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
${color grey}File systems:
 / $color${fs_free /}/${fs_size /} ${fs_bar 6 /}
 home $color${fs_free /home}/${fs_size /home} ${fs_bar 6 /home}
${color grey}Networking:
Up:$color ${upspeed ppp0} k/s${color grey} - Down:$color ${downspeed ppp0} k/s
$hr
${color grey}Name                  PID   CPU%   MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color lightgrey} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
« Последнее редактирование: 17 Января 2010, 19:01:33 от SergGnom »

Оффлайн alibaba

  • Участник
  • *
  • Сообщений: 187
  • Нулевой уровень
    • Просмотр профиля
Re: Conky - не хотят запускаться.
« Ответ #11 : 23 Июля 2010, 00:29:06 »
Помогите вот что выдает у меня:
alexandr@alexandr-desktop:~$ conky
Conky: can't open '/sys/class/hwmon/hwmon0/temp2_input': No such file or directory
please check your device or remove this var from Conky
Ошибка сегментирования
Если сделать вот так: sudo sensors-detect и ответить да на все вопросы
то начинает работать, после перегрузки опять выдает ошибку, вот сами коньки:

# Use Xft?
use_xft yes
xftfont Sans:size=7
#xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

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

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

# Minimum size of text area
minimum_size 200 0
maximum_width 300

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_graph_borders yes

# Stippled borders?
stippled_borders 0

# border margins
#border_margin 5

# border width
border_width 5

# Default colors and also border colors
default_color 303030
#default_shade_color white
#default_outline_color black
own_window_colour 262626

# 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
# same thing as passing -x at command line
gap_x 10
gap_y 1

# Subtract file system buffers from used memory?
no_buffers yes

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

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 1

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 1

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none
TEXT
${image /etc/conky/scripts/tlo.png -p -1,0 -s 600x1023}
${color ff4848}${font OpenLogos:size=55}S${voffset -30}${color white}${font Arial Black:size=18}${offset 4}${time %H:%M}${color EE3A03}${font Arial Black:size=12}${time :%S}${font}
${color 98c2c7}${font Arial Black:size=10}${offset 60}${time %A %d %Y}${voffset 6}

${offset 35}${font Arial Black:size=8}${color white}$kernel $machine}${color white}
${font StyleBats:size=15}K${font} Core 0 ${alignr}${cpu cpu0}% ${cpugraph cpu0 cpu1 10,70 262626 CCCCCC}
${font StyleBats:size=15}k${font} Core 1 ${alignr}${cpu cpu1}% ${cpugraph cpu1 10,70 262626 CCCCCC}
${font StyleBats:size=15}y${font} RAM ${alignr}$memperc% ${memgraph 10,70 262626 CCCCCC}
${font PizzaDude Bullets:size=15}p${font} SWAP ${alignr}$swapperc% ${color white}${swapbar 10,70}${color white}${color white}
${font StyleBats:size=15}p${font} Uptime${alignr}${uptime}

${font Arial Black:size=8}TEMP ${hr 1}${color white}
${color DD0000}${font weather:size=45}y ${font}${color white} ${voffset -50}
${offset 20}CPU Temp: ${alignr}${color white}${hwmon  temp 1}°C${color white}
${offset 20}MB Temp: ${alignr}${color white}${hwmon  temp 2}°C${color white}
${offset 20}Core 0: ${alignr}${color white}${execi 300 sensors | grep Core\ 0 | cut -c15-16 ;}°C${color white}
${offset 20}Core 1: ${alignr}${color white}${execi 300 sensors | grep Core\ 1 | cut -c15-16 ;}°C${color white}
${offset 20}HDD: ${pre_exec nc localhost 7634 | sed -e 's/|[[:digit:]]\{2,4\}|C|/\n/g' | grep sda | sed -e 's/|.*|//'} ${alignr} ${hddtemp /dev/sda}°C
${offset 20}GPU GTX: ${alignr}${color white}${execi 20 nvidia-settings -q gpucoretemp |grep Attribute |awk '{print $4}' |cut -c1-2}°C
${offset 20}CPU fan speed (об/мин): ${alignr}${color white}${hwmon fan 1}
Не напрасно, не случайно
Жизнь от Бога нам дана
Не без воли Бога тайной И на казнь осуждена

 

Страница сгенерирована за 0.083 секунд. Запросов: 23.