Conky freezes XFCE constantly

Greetings dear,

I'm having a constant problem on FreeBSD when Conky is running and I don't know what it is, but if I close Conky it doesn't happen anymore.

I was having these freezes since FreeBSD 14.0 and continued to have them in FreeBSD 14.1, but until today I discovered that the cause was Conky...

To get out of the freeze I have to use Ctrl + Alt F1 and then Ctrl + Alt F9

I usually start with $startx



Thanks in advance to the experts at Conky for their recommendations and help.

System Information:


$ cat .xinitrc


Code:
exec /usr/local/bin/startxfce4 --with-ck-launch


# freebsd-version


Code:
14.1-RELEASE-p2


# uname -a


Code:
FreeBSD fbsd 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64


# pkg info | grep xfce


Code:
libxfce4menu-4.18.6            Widgets library for the Xfce desktop environment
libxfce4util-4.18.2            Extension library for the Xfce desktop environment
xfce-4.18_1                    Meta-port for the Xfce Desktop Environment
xfce-icons-elementary-0.19     Elementary icons, extended and maintained for Xfce
xfce4-appfinder-4.18.1_2       Application launcher and finder
xfce4-conf-4.18.3              D-Bus-based configuration storage system
xfce4-desktop-4.18.1_4         Xfce's desktop manager
xfce4-mixer-4.18.1_4           Volume control for the Xfce desktop
xfce4-notifyd-0.9.4_1          Visually-appealing notification daemon for Xfce
xfce4-panel-4.18.6             Xfce's panel
xfce4-power-manager-4.18.4     Power manager for the Xfce Desktop
xfce4-session-4.18.4           Xfce's session manager
xfce4-settings-4.18.6          Xfce 4 settings application
xfce4-terminal-1.1.3           Terminal emulator for the X windowing system
xfce4-tumbler-4.18.2_2         Thumbnail service for Xfce desktop
xfce4-wm-4.18.0_3              Xfce's window manager


# pkg info | grep conky


Code:
conky-1.21.3                   Advanced, highly configurable system monitor for X11

My Conky file attached (not working the attach?).


$ cat ~/.conkyrc


Code:
-- https://github.com/brndnmtthws/conky/blob/main/data/conky.conf

-- this is a comment

--[[
first comment line
second comment line
]]

conky.config = {

 -- conky configuration

    alignment = 'middle_right',
    background = false,
    border_inner_margin = 30,
    border_outer_margin = 0,
    border_width = 1,
    cpu_avg_samples = 2,
    color1 = '#00ff00',
    color2 = '#198844',
    color3 = '#cc342b',
    color4 = '#3971ed',
 -- default_color = '#c5c8c6',
    default_color = '#1AC2FF',
    default_outline_color = 'white',
    default_shade_color = 'white',
    double_buffer = true,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'Fantasque Sans Mono:size=8',
    gap_x = 30,
    gap_y = 0,
    maximum_width = 260,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,

 -- interface name template
    template0 = 're0',

    own_window = true,
    own_window_transparent = false,
    own_window_argb_visual = true,
    own_window_argb_value = 50,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',

    stippled_borders = 0,
    top_name_width = 10,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

conky.text = [[

## Output

${font Cantarell:size=48}${time %H:%M}$font
$alignc${font Roboto:style=Light:size=18}${time %a %d %B}$font
#${color}$alignc $nodename
${color}$alignc $nodename_short

${color1}CPU:
${color}Core 0: -> ${cpu cpu0}% ${alignr} $color2${cpugraph cpu0 10,100}
${color}Core 1: -> ${cpu cpu1}% ${alignr} $color2${cpugraph cpu1 10,100}
${color}Core 2: -> ${cpu cpu2}% ${alignr} $color2${cpugraph cpu2 10,100}
${color}Core 3: -> ${cpu cpu3}% ${alignr} $color2${cpugraph cpu3 10,100}
${color}Core 4: -> ${cpu cpu4}% ${alignr} $color2${cpugraph cpu4 10,100}
${color}Core 5: -> ${cpu cpu5}% ${alignr} $color2${cpugraph cpu5 10,100}

${color1}RAM:
$color3$alignr${memgraph 30,200}
$color3$alignr${membar 6,200}
${color} ${alignr}${mem} / ${memmax} ${color3} / ${memperc}%

${color1}SWAP:
$color3$alignr${swapbar 6,200}
${color} ${alignr}${swap} / ${swapmax} ${color3} / ${swapperc}%

${color1}Partitions:
$color / $color${fs_used /} / ${fs_size /} $color4 $alignr ${fs_bar 6,40 /}
$color /var $color${fs_used /var} / ${fs_size /var} $color4 $alignr ${fs_bar 6,40 /var}
$color /tmp $color${fs_used /tmp} / ${fs_size /tmp} $color4 $alignr ${fs_bar 6,40 /tmp}
$color /home $color${fs_used /home} / ${fs_size /home} $color4 $alignr ${fs_bar 6,40 /home}

${color1}Uptime and Processes:
${color}Uptime:$color $uptime
${color}Processes:$color $processes  ${color}Running:$color $running_processes

${color1}Top 3 sorted by CPU usage:
${color1}NAME $alignr PID      CPU%  MEM%
${color}${top name 1} $alignr ${top pid 1} ${top cpu 1} ${top mem 1}
${color}${top name 2} $alignr ${top pid 2} ${top cpu 2} ${top mem 2}
${color}${top name 3} $alignr ${top pid 3} ${top cpu 3} ${top mem 3}

${color1}Top 3 sorted by MEM usage:
${color1}NAME $alignr PID      CPU%  MEM%
${color} ${top_mem name 1} $alignr ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color} ${top_mem name 2} $alignr ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color} ${top_mem name 3} $alignr ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

${color1}CPU (freq, temp) and GPU (used, temp):
${color}CPU Frequency: ${alignr} ${freq_g}GHz
${color}Core0 Temperature: ${alignr} ${execi 30 sysctl -n dev.cpu.0.temperature | cut -c 1-2}${exec echo $'\xe2\x84\x83'}
${color}Core1 Temperature: ${alignr} ${execi 30 sysctl -n dev.cpu.1.temperature | cut -c 1-2}${exec echo $'\xe2\x84\x83'}
${color}Core2 Temperature: ${alignr} ${execi 30 sysctl -n dev.cpu.2.temperature | cut -c 1-2}${exec echo $'\xe2\x84\x83'}
${color}Core3 Temperature: ${alignr} ${execi 30 sysctl -n dev.cpu.3.temperature | cut -c 1-2}${exec echo $'\xe2\x84\x83'}
${color}Core4 Temperature: ${alignr} ${execi 30 sysctl -n dev.cpu.4.temperature | cut -c 1-2}${exec echo $'\xe2\x84\x83'}
${color}Core5 Temperature: ${alignr} ${execi 30 sysctl -n dev.cpu.5.temperature | cut -c 1-2}${exec echo $'\xe2\x84\x83'}
${color}GPU Utilization:   $alignr ${execi 30 nvidia-settings -q [gpu:0]/GPUUtilization | awk '{print $4}' | grep graphics | cut -c 10-13 | sed 's/,//'}%
${color}GPU Temperature:   $alignr ${execi 30 nvidia-settings -q [gpu:0]/GPUCoreTemp | grep '):' | awk '{print $4}' | sed 's/\.//'}${exec echo $'\xe2\x84\x83'}

${color1}Networking:
${if_up $template0}\
${color}IPv6: $alignr ${exec ifconfig $template0 | grep 'inet6' | sed '1d' | awk '{print $2}'} prefix ${exec cat /etc/rc.conf | grep ifconfig | grep 'inet6' | tail -c -4 | cut -c 1-2}
${color}GWv6: $alignr ${exec netstat -nr | grep default | head -2 | tail -1 | awk '{print $2}'}
${color}DNS1v6: $alignr ${exec sed -n 2p /etc/resolv.conf | awk '{print $2}'}
${color}DNS2v6: $alignr ${exec sed -n 3p /etc/resolv.conf | awk '{print $2}'}
${color}IPv4: $alignr ${exec ifconfig $template0 | grep 'inet ' | awk '{print $2}'} prefix ${exec cat /etc/rc.conf | grep ifconfig | grep 'inet ' | tail -c -4 | cut -c 1-2}
${color}GWv4: $alignr ${exec netstat -nr | grep default | head -1 | awk '{print $2}'}
${color}DNS1v4: $alignr ${exec sed -n 4p /etc/resolv.conf | awk '{print $2}'}
${color}DNS2v4: $alignr ${exec sed -n 5p /etc/resolv.conf | awk '{print $2}'}
$color2$alignr${downspeedgraph $template0 20,100}$color3${upspeedgraph $template0 20,100}
$color ${alignc}Down ${downspeed $template0} | Up ${upspeed $template0}
${color}${alignc}Total Down ${totaldown $template0} | Total Up ${totalup $template0}\
${endif}

]]
 
id try starting with a near empty conky config
with just the font and colours

and then gradually add in the rest of your config until it breaks
that way you could narrow down whats causing the issue

just a guess but maybe cpu section might the culprit
 
2 things I learned about conky:

1. I didn't check your conky-config in detail,
but if you watch too many things within a too short refresh rate conky itself may not only uses up most of your system's resources but can become a real burden to your system thus slowing it down.

2. I don't need conky.
Either the system's recources are fully sufficient, or they are not.
In neither case conky is useful.

If your system resources are insufficient, either there is one bottleneck you have an eye on until it's fixed with another, more meaningful, precise tool, or you need to reconsider your system's overall strategy, such as need a more powerful system.

Otherwise I don't need to look on no constant running indicator indicating constantly all my CPU-core loads are at 2.1%, temperatures are within green, storage capacity is at 7.4321%, CPU-fan-blades abrasion is at 0.000003%, gravitational constant unchanged...

To me conky is like having a RPM gauge in a car with an automatic transmission.
It's not actually showing the real truth, and you cannot make any use of it anyway.
It's just for showing-off, only.
 
Back
Top