Announcement

Collapse
No announcement yet.

conky thread :]

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Originally posted by vinnywright View Post
    my
    Code:
    Intel(R) Core(TM) i7-4910MQ CPU @ 2.90GHz
    (that speed steps to 3.99GHz) will do a CD's worth of FLAC to Mp3 in about a second and never notices it

    with a
    Code:
     for f in *.flac
          do 
          ffmpeg -i "$f" -b 320k "${f%.flac}.mp3"
    done
    of course if you have/use avconv then just replace the ffmpeg with avconv ,,,,,,

    but my laptop ,,,,a system76 Bonox8 has heat vents in the back that look like the air intakes of a fancy sports car ,,,,,
    and have never seen it hotter than about 140F-150F

    VINNY
    OK so I thought about it a minute ,,,,and tested this (the flac 2 mp3 thing) and it was more than a second ,,,,,,,,,,more like 5-10 seconds a track for 9 tracks in about 1 minute

    but the box never blinked or broke a sweat .

    VINNY
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

    Comment


      #32
      Gonna mess with things a little later today; am seeing (and not liking) gradual increase in CPU utilization when idle and conky appears to be the culprit.

      I have some ideas for optimizing things without compromising anything and will be playing with that today
      we see things not as they are, but as we are.
      -- anais nin

      Comment


        #33
        Originally posted by wizard10000 View Post
        Gonna mess with things a little later today; am seeing (and not liking) gradual increase in CPU utilization when idle and conky appears to be the culprit.

        I have some ideas for optimizing things without compromising anything and will be playing with that today
        yes I saw that as well ,,,,,I think it is the poling interval of all those cpu monitors ,,,,,,,,my conky runs about 0.3 % cpu max as seen by top ,,,,yours , up to 8or9.0 %

        VINNY
        i7 4core HT 8MB L3 2.9GHz
        16GB RAM
        Nvidia GTX 860M 4GB RAM 1152 cuda cores

        Comment


          #34
          I set my update interval on that to 4 secs due to odd behavior. Seems OK here with that.

          Comment


            #35
            Originally posted by vinnywright View Post
            yes I saw that as well ,,,,,I think it is the poling interval of all those cpu monitors ,,,,,,,,my conky runs about 0.3 % cpu max as seen by top ,,,,yours , up to 8or9.0 %
            Yeah. I restarted conky before going to bed last night and CPU utilization was < 1%. Got up this morning and it was idling at 7%; restarting conky brought it back down to <1%. Will dig a little and see if I can come up with a solution
            we see things not as they are, but as we are.
            -- anais nin

            Comment


              #36
              Not seen any perceptible increase here.
              On #kubuntu-devel & #kubuntu on libera.chat - IRC Nick: RikMills - Launchpad ID: click

              Comment


                #37
                Originally posted by acheron View Post
                Not seen any perceptible increase here.
                I think my own issue may be with the number of cores and the number of queries on my own machine. Reporting eight cores with half a dozen queries for each running every half second causes a single core to run at ~75% after about eight hours. Restarting conky resolves the issue

                Still working on reducing the number of queries without compromising stuff too much.
                we see things not as they are, but as we are.
                -- anais nin

                Comment


                  #38
                  Okay, I has more information.

                  I installed conky v1.10.4 yesterday afternoon and saw no improvement. 1.10.4 just landed in Sid repos yesterday so it might be a day or two before it makes it into Kubuntu repos. I cold-booted the machine and left it alone for ten hours; CPU utilization after boot was <1% and when I got up this morning it was back up to 9%. Restarting conky resolved the issue.

                  So - I removed all the CPU indicators, optimized the remaining conditionals, quit using conky to dispay static information (since my installed RAM or partition size is not likely to change without me knowing it I removed ${memmax}, ${swapmax} and ${fs_size}, replaced them with hard numbers} and things appear to be working pretty okay.

                  One thought, though - default_bar_size has been deprecated in conky v1.10 and was replaced with default_bar_height and default_bar_width. I couldn't find anything in Debian changelogs on this but did find the two new settings (and noted the old one was missing) in conky's man page. Wasn't able to find anything on teh intrawebz about it either

                  Anyway, it's not quite as neat as all those CPU counters, but here's where I ended up:
                  Code:
                  conky.config = {
                      
                  -- conky setup
                  	
                  update_interval = 1,
                  update_interval_on_battery = 3,
                  background = true,
                  total_run_times = 0,
                  cpu_avg_samples = 1,
                  no_buffers = true,
                  text_buffer_size = 4096,
                  temperature_unit = 'celsius',
                  override_utf8_locale = true,
                  	
                  -- set up window
                  	
                  alignment = 'top_right',
                  gap_x = 24,
                  gap_y = 100,
                  maximum_width = 198,
                  double_buffer = true,
                  background = true,
                  own_window = true,
                  own_window_transparent = true,
                  own_window_type = 'dock',
                  own_window_argb_visual = true,
                  own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
                  draw_borders = false,
                  draw_shades = false,
                  draw_outline = false,
                  use_xft = true,
                  font = 'Arial:size=11',
                  uppercase = false,
                  short_units = true,
                  default_bar_height = 22,
                  default_bar_width = 46,
                  	
                  -- colors
                  
                  color0 = '68696b', -- bar/graph color
                  color1 = 'cccccc', -- text color
                  color7 = '4dff4d', -- green
                  color8 = 'ffff4d', -- yellow
                  color9 = 'ff4d4d', -- red
                  
                  }
                  
                  -- text
                  
                  conky.text = [[
                  #
                  # date and time display
                  #
                  ${font Arial:size=24}${color1}${alignc}${time %l:%M %P}${font}
                  ${font Arial:size=9}${alignc}  ${time %A}, ${time %B} ${time %e}${font}
                  # 
                  # cpu frequency.  Note cpu freq is green unless running at less than max speed.
                  #
                  ${voffset 10}${color1}cpu freq:${alignr}${color7}${if_match ${freq 1} < 1734}${color8}${endif}${freq 1}${color1} mhz
                  # 
                  # cpu temperature.  Colors change to yellow at 75°C and red at 90°C.
                  #
                  ${color1}cpu temp:${alignr}${color7}${if_match ${i8k_cpu_temp} > 75}${color8}${else}${if_match ${i8k_cpu_temp} > 90}${color9}${endif}${i8k_cpu_temp}°C
                  #
                  # cpu load
                  #
                  ${color1}cpu load: ${goto 156}${color7}${if_match ${cpu cpu0} >= 3}${color7}${else}\
                  ${if_match ${cpu cpu0} >= 20}${color8}${else}${if_match ${cpu cpu0} >= 90}${color9}${endif}${alignr}${cpu cpu0}%
                  # 
                  # 1m, 5m and 15m cpu load.  Note color changes as load increases. 
                  # 
                  ${voffset 12}${color1}${alignc}1m: ${if_match ${loadavg 1} < 0.70}${color7}${else}${if_match ${loadavg 1} >= 0.70}${color8}${else}${if_match ${loadavg 1} >= 2.00}${color9}${endif}${loadavg 1}${color1} 5m: ${if_match ${loadavg 2} < 0.70}${color7}${else}${if_match ${loadavg 2} >= 0.70}${color8}${else}${if_match ${loadavg 2} >= 2.00}${color9}${endif}${loadavg 2}${color1} 15m: ${if_match ${loadavg 3} < 0.70}${color7}${else}${if_match ${loadavg 3} >= 0.70}${color8}${else}${if_match ${loadavg 3} >= 2.00}${color9}${endif}${loadavg 3}
                  # 
                  # memory bar.  Note conditional at the end of the line.
                  #
                  ${color1}${voffset 24}memory:${alignr}$mem / 7.74G
                  ${color0}${goto 6}${membar 7,198} ${if_existing /proc/swaps partition}
                  
                  # 
                  # swapbar only displays if there is a swap partition activated.  See conditional above.
                  # 
                  ${color1}swap:${alignr}$swap / 8.20G
                  ${color0}${goto 6}${swapbar 7,198}${endif}
                  
                  # 
                  # simple filesystem bar.  This one is for /
                  #
                  ${color1}root:${alignr}${fs_used /} / 19.6G
                  ${color0}${goto 6}${fs_bar 7,198 /}
                  
                  # 
                  # and another filesystem bar for /home
                  #
                  ${color1}/home:${alignr}${fs_used /home} / 192G
                  ${color0}${goto 6}${fs_bar 7,198 /home}${if_existing /mnt/external/archive}
                  
                  # 
                  # This filesystem bar only displays if a specific external drive is mounted.
                  # 
                  ${color1}external:${alignr}${fs_used /mnt/external} / 932G
                  ${color0}${goto 6}${fs_bar 7,198 /mnt/external}${endif}
                  # 
                  # disk i/o numbers
                  #
                  ${color0}${voffset 6}${alignc}disk i/o:
                  ${color1}${alignc}${diskio}
                  
                  # 
                  # wireless information.  only displays if wireless is connected.
                  #
                  ${color1}${if_existing /proc/net/route wlan0}
                  ${color1}${voffset -34}wlan:${alignr}${wireless_link_qual_perc wlan0}%
                  ${color0}${goto 6}${wireless_link_bar 7,198 wlan0}
                  ${alignc}${color0}${voffset 8}dn: ${color1}${downspeedf wlan0}${color0} kbps
                  ${alignc}up: ${color1}${upspeedf wlan0}${color0} kbps${endif}
                  
                  # 
                  # battery indicator.  battery bar turns yellow or red depending on battery percentage.
                  #
                  ${color1}${voffset -10}battery:${alignr}${battery_percent}%
                  ${color0}${goto 6}${if_match ${battery_percent} <= 99}${color8}${else}${if_match ${battery_percent} <= 10}${color9}${endif}${battery_bar 7,198}
                  ${font Arial:size=9}${alignc}${voffset -6}${battery_time}
                  
                  # 
                  # nodename, uptime, kernel version
                  #
                  ${font Arial:size=11}${color0}${alignc}${voffset -12}${nodename}
                  ${color1}${alignc}uptime: ${uptime}
                  ${color0}${alignc}kernel: ${kernel}
                  #
                  # and we end things with a couple of square brackets
                  #
                  ]]
                  and a screenshot. Also, attached is an lsof dump using conky's PID if anyone's interested.

                  Attached Files
                  Last edited by wizard10000; Sep 21, 2016, 09:04 AM.
                  we see things not as they are, but as we are.
                  -- anais nin

                  Comment


                    #39
                    hears mine ,,,,,,,,,



                    uses 0.03-0.07 %CPU no matter how long it runs .

                    .conkyrc

                    Code:
                    conky.config = {
                    
                    -- comments now start this way instead of with a #  :)
                    -- all config items require a trailing comma
                    -- all string variables are enclosed in single quotes
                    -- numbers and boolean operators don't get single quotes but yes = true and no = false now
                    -- i'm not sure whether minimum_size = '220 5', is a string or not - if it doesn't work try without single quotes.
                    
                    background = false,
                    use_xft = true,
                    font = 'Ubuntu Mono:size=9',
                    update_interval = 3.0,
                    total_run_times = 0,
                    own_window = true,
                    own_window_type = 'dock',
                    own_window_argb_visual = true,
                    own_window_transparent = true,
                    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
                    double_buffer = true,
                    -- minimum_size = '220 5',
                    maximum_width = 220,
                    draw_shades = false,
                    draw_outline = false,
                    draw_borders = false,
                    draw_graph_borders = true,
                    default_color = 'gray',
                    -- default_shade_color = 'black',
                    alignment = 'top_right',
                    gap_x = 12,
                    gap_y = 35,
                    cpu_avg_samples = 2,
                    override_utf8_locale = true,
                    uppercase = true, 
                    -- set to yes if you want all text to be in uppercase
                    -- display LDVS-0
                    }
                    
                    -- text goes here.  no changes to text format except opening and closing commands.
                    
                    conky.text = [[
                    
                    ${color gray}SYSTEM ${hr 1}${color}
                    
                    Hostname: $alignr$nodename
                    Kernel: $alignr$kernel
                    Release: $alignr${execi 300 lsb_release -rs | awk '{print $1}'}
                    Codename: $alignr${execi 300 lsb_release -cs | awk '{print $1}'}
                    Desktop: ${alignr}KDE ${execi 300 kf5-config -v | grep KDE | awk '{print $3}'}
                    Uptime: $alignr$uptime
                    
                    ${color 00af00}NVidia${color} ${execi 300 nvidia-settings -q gpus | grep '0] (' | cut -d '(' -f 2,2 | sed -e 's/.\{1\}$//'}
                    GPU Temperature : ${execi 2 nvidia-settings -q gpucoretemp | grep -m 1 Attribute | awk '{print $4}' | sed -e 's/\.//'}°C
                    
                    CPU: ${execi 300 cat /proc/cpuinfo | grep -m1   name | cut -c 14-54 | fmt -w 25 -g 25}
                    Avgerage: ${execi 8 sensors | grep -A 0 'temp1' | cut -c14-19 | sed '/^$/d'}°C $alignr${execi 8 sensors -f | grep -A 0 'temp1' | cut -c14-19 | sed '/^$/d'}°F
                    #Core 1  : ${execi 8 sensors | grep -A 0 'Core 0' | cut -c14-19 | sed '/^$/d'}°C $alignr${execi 8 sensors -f | grep -A 0 'Core 0' | cut -c14-19 | sed '/^$/d'}°F
                    #Core 2  : ${execi 8 sensors | grep -A 0 'Core 1' | cut -c14-19 | sed '/^$/d'}°C $alignr${execi 8 sensors -f | grep -A 0 'Core 1' | cut -c14-19 | sed '/^$/d'}°F
                    #Core 3  : ${execi 8 sensors | grep -A 0 'Core 2' | cut -c14-19 | sed '/^$/d'}°C $alignr${execi 8 sensors -f | grep -A 0 'Core 2' | cut -c14-19 | sed '/^$/d'}°F
                    #Core 4  : ${execi 8 sensors | grep -A 0 'Core 3' | cut -c14-19 | sed '/^$/d'}°C $alignr${execi 8 sensors -f | grep -A 0 'Core 3' | cut -c14-19 | sed '/^$/d'}°F
                    Processes: ${alignr}$processes ($running_processes running)
                    Load: ${alignr}$loadavg
                    
                    CPU: ${alignr}${freq} MHz
                    
                    #CPU1 ${alignr}${cpu cpu1}%
                    #${color 00af00}${cpubar 4 cpu1}${color}
                    #CPU2 ${alignr}${cpu cpu2}%
                    #${color 00af00}${cpubar 4 cpu2}${color}
                    #CPU3 ${alignr}${cpu cpu3}%
                    #${color 00af00}${cpubar 4 cpu3}${color}
                    #CPU4 ${alignr}${cpu cpu4}%
                    #${color 00af00}${cpubar 4 cpu4}${color}
                    
                    Ram ${alignr}$mem / $memmax ($memperc%)
                    ${color 00af00}${membar 4}${color}
                    swap ${alignr}$swap / $swapmax ($swapperc%)
                    ${color 00af00}${swapbar 4}${color}
                    
                    Highest CPU $alignr CPU% MEM%
                    ${color E40016}${top name 1}$alignr${top cpu 1}${top mem 1}${color}
                    ${color d2d00a}${top name 2}$alignr${top cpu 2}${top mem 2}${color}
                    ${color 0538ab}${top name 3}$alignr${top cpu 3}${top mem 3}${color}
                    
                    Highest MEM $alignr CPU% MEM%
                    ${color E40016}${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}${color}
                    ${color d2d00a}${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}${color}
                    ${color 0538ab}${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}${color}
                    
                    ${color gray}Filesystem ${hr 1}${color}
                    Root: ${alignr}${fs_free /} / ${fs_size /} 
                    ${color 00af00}${fs_bar 4 /}${color}
                    Disk: ${alignr}${fs_free /mnt/btrfs} / ${fs_size /mnt/btrfs}
                    ${color 00af00}${fs_bar 4 /mnt/btrfs}${color}
                    
                    ${color gray}NETWORK ${hr 1}${color}
                    Down ${downspeed wlp4s0} k/s ${alignr}Up ${upspeed wlp4s0} k/s
                    ${downspeedgraph wlp4s0 25,107 0000ff 00ff00 scale -t -l}${alignr}${upspeedgraph wlp4s0 25,107 d0c40c 6b0853}
                    Total ${totaldown wlp4s0} ${alignr}Total ${totalup wlp4s0}
                    
                    ${image /home/vinny/Downloads/conkyrc3.png -p 50,780 -s 125x125}
                    ${image /home/vinny/Downloads/banner1.png -p 0,910 -s 234x30}
                    
                    
                    
                    
                    
                    
                    
                    
                    
                    ]]
                    thank you @wizard10000 for fixing my conky.config section to the new way

                    some things I had running in conky are comented out "#" as their was no room for my images if theay were loaded and I decided the xtra info was unnesesary

                    VINNY
                    i7 4core HT 8MB L3 2.9GHz
                    16GB RAM
                    Nvidia GTX 860M 4GB RAM 1152 cuda cores

                    Comment


                      #40
                      I'm just beginning to look at Conky.
                      I guess it's not possible to make it do line graphs? Like Superkaramba?

                      Click image for larger version

Name:	cpumon.jpg
Views:	1
Size:	13.9 KB
ID:	643324 Click image for larger version

Name:	streamalg.jpg
Views:	1
Size:	7.4 KB
ID:	643325

                      I mean, graphs appear to have mandatory filled lines.

                      Comment


                        #41
                        Hi, Don - saw you over in the other thread. Welcome

                        Out of the box conky can do horizontal or vertical bar graphs or speedometer-type dials. You may be able to get to where you want to be with a lua script, but I'd be pretty useless helping out there The couple of times I've dabbled in lua scripting with conky didn't end real well, but that speaks more to my capability as a programmer than a problem with the language

                        Also, format for conky's configuration changed slightly with v1.10.

                        I did want to share a few references with you, though - these have helped me immensely - but read conky's man page if there are any discrepancies as the web documentation can be a little slow to update.

                        http://conky.sourceforge.net/config_settings.html - official resource for stuff above the text we're displaying (conky configuration)

                        http://conky.sourceforge.net/variables.html - official resource for text display

                        http://ifxgroup.net/conky.htm - all in one - has examples. highly recommended.

                        http://conky.pitstop.free.fr/wiki/in...nd_tricks_(en) - some more advanced conky stuff. this is where I learned to make elements change colors based on conditionals
                        Last edited by wizard10000; Oct 02, 2016, 07:52 AM.
                        we see things not as they are, but as we are.
                        -- anais nin

                        Comment


                          #42
                          Thank you very much.
                          So, what's your best Conky system monitor, then

                          Comment


                            #43
                            Originally posted by Don B. Cilly View Post
                            Thank you very much.
                            So, what's your best Conky system monitor, then
                            Running this one now - the green text below are all conditionals and will change to yellow or red based on thresholds I've set.



                            Best? Probably this one - but it'd hammer my processor over time. Too many conditionals



                            Modded someone else's lua script here - developed a memory leak I wasn't bright enough to fix Clickable if you want to see it at 1920x1080.

                            we see things not as they are, but as we are.
                            -- anais nin

                            Comment

                            Working...
                            X