Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Conky Helps and Stuff

Message
Author
User avatar
male
Forum Regular
Forum Regular
Posts: 256
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#251 Post by male » Thu Oct 11, 2018 1:39 pm

@eadwine

most important changes for both Conky's to run on your system are (this must be the same): :exclamation:

Code: Select all

own_window_type = 'normal',
and

Code: Select all

no_buffers = true,
Here's your system conky with these changes (small things to make it run on my system are commented out. Compare your original).

Code: Select all

conky.config = {
    alignment = 'bottom_left',
    background = false,
    border_width = 1,
    cpu_avg_samples = 2,
    default_color = 'DDDDDD',
    default_outline_color = 'white',
    default_shade_color = 'black',
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    xftalpha = 0.8,
    font = 'Monospace:size=8',
    gap_x = 50,
    gap_y = 50,
    minimum_height = 5,
    minimum_width = 5,
    maximum_width = 500,
    net_avg_samples = 2,
    no_buffers = true,  --false,
    double_buffer = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    imlib_cache_size =0,
    override_utf8_locale = true,
    own_window = true,
    own_window_class = 'conky-semi',
    own_window_type = 'normal',  --'override',
    own_window_transparent = true,
    own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',  --sticky,
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    total_run_times = 0,
    show_graph_scale = false,
    show_graph_range = false
};

conky.text = [[
${color Tan1}Uptime             ${color}${uptime}${color Tan1}${alignr}TOP              PID    CPU    MEM 
${color Tan1}CPU temperature    ${color}${execi 60 sensors | grep 'CPU Temperature' | cut -c22-25}C${color}${alignr}${top name 1}${alignr}${color}${top pid 1} ${top cpu 1} ${top mem 1}
${color Tan1}CPU fan speed      ${color}${execi 60 sensors | grep 'CPU FAN'| cut -b 20-27}  ${color}${alignr}${top name 2}${alignr}${color}${top pid 2} ${top cpu 2} ${top mem 2}
${color Tan1}Core 1             ${color}${cpu cpu1}% ${color}${alignr}${top name 3}${alignr}${color}${top pid 3} ${top cpu 3} ${top mem 3}
${color Tan1}Core 2             ${color}${cpu cpu2}% ${color}${alignr}${top name 4}${alignr}${color}${top pid 4} ${top cpu 4} ${top mem 4}
${color Tan1}Core 3             ${color}${cpu cpu3}% ${color}${alignr}${top name 5}${alignr}${color}${top pid 5} ${top cpu 5} ${top mem 5}
${color Tan1}Core 4             ${color}${cpu cpu4}% ${color}${alignr}${top name 6}${alignr}${color}${top pid 6} ${top cpu 6} ${top mem 6}
${color Tan1}MB temperature     ${color}${execi 60 sensors | grep 'MB Temperature' | cut -c22-25}C ${color}${alignr}${top name 7}${alignr}${color}${top pid 7} ${top cpu 7} ${top mem 7}
${color Tan1}Chassis fan speed ${color}${execi 60 sensors | grep 'CHASSIS FAN'| cut -c 20-27} ${color}${alignr}${top name 8}${alignr}${color}${top pid 8} ${top cpu 8} ${top mem 8}
${color Tan1}Ram in use         ${color}${mem}/$memmax ${color}${alignr}${top name 9}${alignr}${color}${top pid 9} ${top cpu 9} ${top mem 9}
# calculate down and up speed scale (105*1000000)/8/1024 where 105 is the amount of mbits the eth0 connection has
# calculate down and up speed scale (25*1000000)/8/1024 where 25 is the amount of mbits the wlan0 connection has
${color Tan1}Eth0 down          ${color}${downspeedgraph eth0 10,70 00ff00 00ff00} ${downspeed eth0}
${color Tan1}Eth0 up            ${color}${upspeedgraph eth0 10,70 ff0000 ff0000} ${color}${upspeed eth0}
${color Tan1}Wlan0 down         ${color}${downspeedgraph wlan0 10,70 00ff00 00ff00 3052KiB} ${downspeed wlan0}
${color Tan1}Wlan0 up           ${color}${upspeedgraph wlan0 10,70 ff0000 ff0000 3052KiB} ${color}${upspeed wlan0}
${color Tan1}PCI adapter temp   ${color}${execi 60 sensors | grep 'temp1' | cut -c16-17}°C 
#${color Tan1}HDD A temperature  ${color}${hddtemp /dev/sda}°C
#${color Tan1}HDD B temperature  ${color}${hddtemp /dev/sdb}°C
#${color Tan1}GeForce GT640-1GD5 ${color}${nvidia temp}C
#${color Tan1}GeForce ram in use ${color}${exec nvidia-smi -q -d MEMORY | grep Used | cut -c39-45}
#${color Tan1}GeForce MiB in use ${color}${exec nvidia-smi -q -d memory | grep Used | sed 's:^[^0-9]*\([0-9]*\)[^0-9]*:\1:'}
${font Verdana:size=8}${color Tan1}Omroep Brabant ${color}${rss http://www.omroepbrabant.nl/rss/?feed=west 15 item_titles 3}
${color Tan1}BN DeStem ${color}${rss http://www.bndestem.nl/roosendaal/rss.xml 15 item_titles 3}
#${color Tan1}Nieuws.nl ${color}${rss http://nieuws.nl/feed/ 15 item_titles 3}
${color Tan1}Brabants Dagblad ${color}${rss http://www.bd.nl/brabant/rss.xml 15 item_titles 3}
#${color Tan1}Nu.nl ${color}${rss http://www.nu.nl/rss/algemeen 15 item_titles 3}
#${color Tan1}GeenStijl ${color}${rss https://www.geenstijl.nl/feeds/recent.atom 15 item_titles 3}
#${color Tan1}CNN ${color}${rss http://rss.cnn.com/rss/cnn_latest.rss 15 item_titles 3}

#${color}${exec tail -n5 /var/log/syslog | fold -w79}
]]; 
one picture (works fine with three Conky's)
Image
i had the freeze with no_buffers false

the utilization of the entire system is ok with 1.10 :bagoverhead:
Image
Male is the capital of the Maldives and its wonderful people.

User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 6050
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#252 Post by Eadwine Rose » Thu Oct 11, 2018 4:10 pm

male wrote:
Thu Oct 11, 2018 1:39 pm
@eadwine

most important changes for both Conky's to run on your system are (this must be the same): :exclamation:

Code: Select all

own_window_type = 'normal',
and

Code: Select all

no_buffers = true,
I have adjusted these two in my basic conky (made a backup first haha), now they are both the same on the two. Wait and see!



Interesting btw that the codes need to be adjusted for various systems for things to show up nicely.

This is what it SHOULD look like:
conky.jpg


Edit: still locks
You do not have the required permissions to view the files attached to this post.
MX-17.1_x64 Horizon 14-3-2018 * 4.15.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 384.130 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingst * 22" Samsung SyncM P2250 * HP F2280

User avatar
male
Forum Regular
Forum Regular
Posts: 256
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#253 Post by male » Fri Oct 12, 2018 5:19 am

Eadwine Rose wrote: This is what it SHOULD look like:
superb ;)
Male is the capital of the Maldives and its wonderful people.

User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 6050
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#254 Post by Eadwine Rose » Fri Oct 12, 2018 5:53 am

Yep.. but still not prob solved ;) Running the weather conky locks up the standard conky still.
MX-17.1_x64 Horizon 14-3-2018 * 4.15.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 384.130 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingst * 22" Samsung SyncM P2250 * HP F2280

User avatar
male
Forum Regular
Forum Regular
Posts: 256
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#255 Post by male » Fri Oct 12, 2018 8:52 am

Eadwine Rose wrote:Running the weather conky locks up the standard conky still.
Evidence? :p
Male is the capital of the Maldives and its wonderful people.

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 3336
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#256 Post by asqwerth » Fri Oct 12, 2018 10:24 am

She has said before that whenever she doesn't run the weather conky, her standard conky doesn't freeze.

I don't know why though.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 6050
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#257 Post by Eadwine Rose » Fri Oct 12, 2018 10:40 am

Exactly. I have been running the basic conky only for hours and hours now, no lockup.
MX-17.1_x64 Horizon 14-3-2018 * 4.15.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 384.130 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingst * 22" Samsung SyncM P2250 * HP F2280

User avatar
male
Forum Regular
Forum Regular
Posts: 256
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#258 Post by male » Fri Oct 12, 2018 11:15 am

Okay. Okay. We can continue the game indefinitely. ;)

With me nothing freezes with the two Conky's. They run correctly. No one "obstructs" the other. :exclamation:

However, I still don't know what @eadwine has changed in the configuration of the weather conky. That's why this is like "breadless art" here
Also I don't know how to start the Conky's, which command is entered where etc. ppp.
Male is the capital of the Maldives and its wonderful people.

User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 6050
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#259 Post by Eadwine Rose » Fri Oct 12, 2018 3:05 pm

I start the conky like you told: conky -c /home/eadwine/.conkyrc and conky -c /home/eadwine/eadwine/conkyrc10

Nothing strange there.


The code for the weather conky, yes I adjusted it, it was a pain in the butt on some points, because everything seemed related to the other thing, but I doubt I adjusted something that makes the other one lock up:

Code: Select all

conky.config = {
-- 2018-06-26 @male for @Eadwine Rose

	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = true,
	own_window_hints = 'undecorated,skip_taskbar,skip_pager,below',
--own_window_colour 000000
--own_window_argb_visual yes
--own_window_argb_value 80
	own_window_class = 'Conky',

	minimum_width = 650, minimum_height = 220,
--maximum_width 655
	gap_x = 25,-- l|r
	gap_y = 225,-- u|d
--alignment tl
--alignment mr
	alignment = 'top_left',

	use_xft = true,
	font = 'GE Inspira:size=9',
	xftalpha = 1,

	override_utf8_locale = true,

	draw_shades = false,
	default_shade_color = '#000000',
	draw_outline = false,
	default_outline_color = '#000000',

	default_color = '#ffffff',
	color1 = '#778899',
	color2 = '#FFA07A',
	color3 = '#87CEFA',
	color4 = '#48D1CC',
	color5 = '#FFDEAD',
	color6 = '#00BFFF',
	color7 = '#ffffff',
	color8 = '#FFD700',
	color9 = '#ffffff',

	draw_borders = false,
	stippled_borders = 5,
	border_inner_margin = 5,
	border_outer_margin = 0,
	border_width = 2,
	draw_graph_borders = false,
	background = false,
	use_spacer = 'none',
	no_buffers = true,
	double_buffer = true,

	update_interval = 1,

	lua_load = '~/LUA/image.lua',

};

conky.text = [[
##### Start #####
${execi 600 bash $HOME/1_accuweather/1_accuweather -f2015 -h2015}
##### Time #####
${voffset -38}${font GE Inspira:size=55}${font GE Inspira:size=18}${goto 25}City name$color$font
##### Date #####
${voffset -49}${font GE Inspira:size=12}${goto 300}${time %A, %d %B %Y}$font
##### Wind-Info ######
${goto 300}${font GE Inspira:size=12}Wind : ${execi 600 sed -n '5p' $HOME/1_accuweather/curr_cond} ${execi 600 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 300}Humidity : ${execi 600 sed -n '7p' $HOME/1_accuweather/curr_cond}
${goto 300}Pressure : ${execi 600 sed -n '8p' $HOME/1_accuweather/curr_cond}
#### Stadt ####
${voffset -5}${font GE Inspira:size=14}           ${font} ${execi 600 sed -n '1p' $HOME/1_accuweather/aktualisiert}
${font}${goto 25}Current :${voffset -10}${font GE Inspira:size=18}${goto 100}${execi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}°C         ${font}${goto 250}Today :${voffset -10}${font GE Inspira:size=18}${goto 325}${execi 600 sed -n '3p' $HOME/1_accuweather/first_days}°C / ${execi 600 sed -n '4p' $HOME/1_accuweather/first_days}°C
${goto 555}${voffset -124}${font ubuntu:size=11}  $font
${goto 522}${voffset 8}${font Ubuntu:size=6}  ${goto 583} $font
${goto 493}${voffset -6}${font Ubuntu:size=9}  ${goto 611} $font
${goto 486}${voffset 10}${font Ubuntu:size=6}  ${goto 618} $font
${goto 468}${voffset 5}${font Ubuntu:size=11}  ${goto 641} $font
${goto 486}${voffset 9}${font Ubuntu:size=6}  ${goto 618} 
${goto 493}${voffset 16}${font Ubuntu:size=9}  ${goto 611} $font
${goto 522}${voffset -4}${font Ubuntu:size=6}  ${goto 583} 
${goto 555}${voffset 4}${font Ubuntu:size=11}  $font
#### Showing next two hours and four days ####
${voffset -64}${goto 20}\
${goto 25}${tztime GMT-3 %H} h\
${goto 100}${tztime GMT-4 %H} h\
${goto 175}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3}'`}\
${goto 250}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3}'`}\
${goto 325}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3}'`}\
${goto 400}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$3}'`}
##### Temperatures #####
${voffset 25}
${goto 20}\
${goto 25}${execi 600 sed -n '30p' $HOME/1_accuweather/hourly1}°\
${goto 100}${execi 600 sed -n '31p' $HOME/1_accuweather/hourly1}°\
${goto 175}${color9}${execi 600 sed -n '8p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 600 sed -n '9p' $HOME/1_accuweather/first_days}°${color}\
${goto 250}${color9}${execi 600 sed -n '13p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 600 sed -n '14p' $HOME/1_accuweather/first_days}°${color}\
${goto 325}${color9}${execi 600 sed -n '18p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 600 sed -n '19p' $HOME/1_accuweather/first_days}°${color}\
${goto 400}${color9}${execi 600 sed -n '23p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 600 sed -n '24p' $HOME/1_accuweather/first_days}°${color}
#### Icons aktuelle Bedingungen und Wind main image h160 v8 h132 w80 rotation0 ####
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_0.png 160 8 132 80 0}#${lua fDrawImage $HOME/1_accuweather/forecast_2015/wind_0.png 465 4 190 190 0}\
#### Icons for the next two hours and four days ####
${lua fDrawImage 0 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/hourly_2015/hourly_2.png 3 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/hourly_2015/hourly_3.png 78 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_2.png 155 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_3.png 230 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_4.png 305 145 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_5.png 380 145 70 40 0}
${voffset -800}
]];
MX-17.1_x64 Horizon 14-3-2018 * 4.15.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 384.130 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingst * 22" Samsung SyncM P2250 * HP F2280

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 3336
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#260 Post by asqwerth » Sat Oct 13, 2018 3:57 am

I'm booted into MX15 right now, which does not have Conky Manager.

I'm running a slightly modified version of male's gisweather-like conky plus another conky, via this conky-startup script which I autostart:

Code: Select all

#!/bin/bash

killall conky

sleep 4 && conky -c $HOME/.conkyrc &
sleep 6 && conky -c $HOME/conkystuff/AP-orange-red-ARGBmod-Roboto-debianUpdates-compiz-b_r.conkyrc &

exit 0
Both conkies use own desktop normal and no buffers yes

but one is old syntax conky and the other is new syntax conky.

No freeze. I'm wondering if it's the complexity of your main conky. Maybe there's some command or line within that just doesn't go with the weather script. Or you could also try to start your 2 conkies with the script above instead of the command you are using. No harm trying, right?

Image

https://imgur.com/Cl3K3wY

Code: Select all

 apt-cache policy conky-all
conky-all:
  Installed: 1.10.0-1mx150+1
  Candidate: 1.10.0-1mx150+1
  Version table:
 *** 1.10.0-1mx150+1 0
        500 http://iso.mxrepo.com/mx/repo/ mx15/main amd64 Packages
        100 /var/lib/dpkg/status
     1.9.0-6 0
        500 http://ftp.us.debian.org/debian/ jessie/main amd64 Packages
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

Post Reply

Return to “Software / Configuration”