Page 1 of 1

Custom conky edit

Posted: Thu Nov 17, 2022 4:12 pm
by ph3arr3t
First things first before I get flamed...

Code: Select all

Snapshot created on: 20220407_1725
System:    Kernel: 5.18.0-4mx-amd64 [5.18.16-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: root=UUID=<filter> ro quiet splash 
           init=/lib/systemd/systemd initrd=boot\initrd.img-5.18.0-4mx-amd64 
           Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.2.1_ahs_x64 Wildflower November 22  2021 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Laptop System: ASUSTeK product: ROG Strix G513QC_G513QC v: 1.0 serial: <filter> 
           Mobo: ASUSTeK model: G513QC v: 1.0 serial: <filter> UEFI: American Megatrends LLC. 
           v: G513QC.313 date: 03/29/2022 
Battery:   ID-1: BAT0 charge: 52.0 Wh (100.0%) condition: 52.0/56.0 Wh (92.9%) volts: 17.2 
           min: 15.9 model: AS3GWZC3KC G513-36 type: Li-ion serial: <filter> status: Full 
CPU:       Info: 8-Core model: AMD Ryzen 9 5900HX with Radeon Graphics bits: 64 type: MT MCP 
           arch: Zen 3 family: 19 (25) model-id: 50 (80) stepping: 0 microcode: A50000C cache: 
           L2: 4 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 105400 
           Speed: 1135 MHz min/max: 1200/3300 MHz boost: enabled Core speeds (MHz): 1: 1135 
           2: 1201 3: 1294 4: 1307 5: 1296 6: 1296 7: 1297 8: 1296 9: 1295 10: 1295 11: 1296 
           12: 1296 13: 1351 14: 1340 15: 1156 16: 1294 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: mmio_stale_data status: Not affected 
           Type: retbleed status: Not affected 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: always-on, 
           RSB filling, PBRSB-eIBRS: Not affected 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: NVIDIA GA107M [GeForce RTX 3050 Mobile] vendor: ASUSTeK driver: nvidia 
           v: 510.85.02 bus-ID: 01:00.0 chip-ID: 10de:25a2 class-ID: 0300 
           Device-2: AMD Cezanne vendor: ASUSTeK driver: amdgpu v: kernel bus-ID: 06:00.0 
           chip-ID: 1002:1638 class-ID: 0300 
           Display: x11 server: X.Org 1.20.14 compositor: compton v: 1 driver: 
           loaded: amdgpu,ati,nvidia unloaded: fbdev,modesetting,nouveau,vesa alternate: nv 
           display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
           s-diag: 582mm (22.9") 
           Monitor-1: eDP res: 1920x1080 hz: 144 dpi: 142 size: 344x194mm (13.5x7.6") 
           diag: 395mm (15.5") 
           OpenGL: renderer: AMD RENOIR (LLVM 14.0.5 DRM 3.46 5.18.0-4mx-amd64) v: 4.6 Mesa 22.0.5 
           direct render: Yes 
Audio:     Device-1: NVIDIA vendor: ASUSTeK driver: snd_hda_intel v: kernel bus-ID: 01:00.1 
           chip-ID: 10de:2291 class-ID: 0403 
           Device-2: AMD Renoir Radeon High Definition Audio vendor: ASUSTeK driver: snd_hda_intel 
           v: kernel bus-ID: 06:00.1 chip-ID: 1002:1637 class-ID: 0403 
           Device-3: AMD ACP/ACP3X/ACP6x Audio Coprocessor 
           vendor: ASUSTeK Raven/Raven2/FireFlight/Renoir Processor driver: N/A 
           alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x 
           bus-ID: 06:00.5 chip-ID: 1022:15e2 class-ID: 0480 
           Device-4: AMD Family 17h/19h HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus-ID: 06:00.6 chip-ID: 1022:15e3 class-ID: 0403 
           Sound Server-1: ALSA v: k5.18.0-4mx-amd64 running: yes 
           Sound Server-2: PulseAudio v: 15.0 running: yes 
           Sound Server-3: PipeWire v: 0.3.58 running: yes 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK 
           driver: r8169 v: kernel port: e000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200 
           IF: eth0 state: down mac: <filter> 
           Device-2: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter 
           vendor: AzureWave driver: mt7921e v: kernel modules: wl port: e000 bus-ID: 03:00.0 
           chip-ID: 14c3:7961 class-ID: 0280 
           IF: wlan0 state: down mac: <filter> 
Bluetooth: Device-1: IMC Networks Wireless_Device type: USB driver: btusb v: 0.8 bus-ID: 3-4:3 
           chip-ID: 13d3:3563 class-ID: e001 serial: <filter> 
           Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 3.0 lmp-v: 5.2 
           sub-v: 2209 hci-v: 5.2 rev: 821 
           Info: acl-mtu: 1021:6 sco-mtu: 240:8 link-policy: rswitch sniff link-mode: slave accept 
           service-classes: rendering, capturing, object transfer, audio, telephony 
Drives:    Local Storage: total: 3.22 TiB used: 993.39 GiB (30.2%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/nvme0n1 maj-min: 259:7 vendor: Western Digital 
           model: PC SN530 SDBPNPZ-1T00-1032 size: 953.87 GiB block-size: physical: 512 B 
           logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 21111000 
           temp: 46.9 C scheme: GPT 
           ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Intel model: SSDPEKNU512GZ size: 476.94 GiB 
           block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD 
           serial: <filter> rev: 002C temp: 40.9 C scheme: GPT 
           ID-3: /dev/sda maj-min: 8:0 type: USB vendor: Western Digital 
           model: WD My Passport 2627 size: 1.82 TiB block-size: physical: 512 B logical: 512 B 
           type: N/A serial: <filter> rev: 4008 scheme: GPT 
Partition: ID-1: / raw-size: 945.61 GiB size: 929.7 GiB (98.32%) used: 177.95 GiB (19.1%) fs: ext4 
           dev: /dev/nvme0n1p2 maj-min: 259:9 
           ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 3.6 MiB (1.4%) fs: vfat 
           dev: /dev/nvme0n1p1 maj-min: 259:8 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2 
           dev: /dev/nvme0n1p3 maj-min: 259:10 
Sensors:   Message: No sensor data found. Is lm-sensors configured? 
Repos:     Packages: 3843 note: see --pkg apt: 3827 lib: 1984 flatpak: 16 
           Active apt repos in: /etc/apt/sources.list 
           1: deb https://deb.parrot.sh/parrot/pool/ main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/apt-build.list 
           1: deb [trusted=yes] file: /var/cache/apt-build/repository apt-build main
           Active apt repos in: /etc/apt/sources.list.d/atom.list 
           1: deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian/ bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
           3: deb http://deb.debian.org/debian/ bullseye-backports main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/microsoft-prod.list 
           1: deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/debian/11/prod bullseye main
           Active apt repos in: /etc/apt/sources.list.d/mono-official-vs.list 
           1: deb https://download.mono-project.com/repo/debian vs-buster main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb https://mirror.csclub.uwaterloo.ca/mxlinux/mx/repo/ bullseye main non-free
           2: deb https://mirror.csclub.uwaterloo.ca/mxlinux/mx/repo/ bullseye ahs
           Active apt repos in: /etc/apt/sources.list.d/vscode.list 
           1: deb [arch=amd64] https://packages.microsoft.com/repos/vscode/ stable main
Info:      Processes: 346 Uptime: 1d 12m wakeups: 3 Memory: 15.04 GiB used: 6.18 GiB (41.1%) 
           Init: systemd v: 247 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: UEFI
Now my issue is more of a request for help as I understand most of conky script, but not all
conky = MX-Full
currently it displays each thread as a separate core so listed cores 0-16
I am curious as to if there is a way to correctly format so I can have 8 lines for cpu instead of 16. as in taking the average of cores (0+1)(2+3) etc
current conky lines..

Code: Select all

# CPU
${voffset -8}${font Open Sans:Bold:size=10}${color0}CPU   ${color EC0100}${hr 3}
#$color${font}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq} ${freq_g cpu0}GHz $alignr $cpu%  
$color${font}${execi 86400 sed -ne '/model name.*: /{s///;s/@.*//;p;q}' /proc/cpuinfo} ${freq_g cpu0}GHz $alignr $cpu% 
${font}Core 0 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 0' | cut -c18-24} ${alignc 60}${color2}${cpubar cpu0}${color}
${font}Core 1 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 1' | cut -c18-24} ${alignc 60}${color2}${cpubar cpu1}${color}
...

Code: Select all

${font}Core 16 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 16' | cut -c18-24} ${alignc 60}${color2}${cpubar cpu16}${color}
${font}AMDGPU ${color3}${execi 4 sensors 2>/dev/null | grep 'AMDGPU' | cut -c18-24} ${alignc 60}${color3}${cpubar amdgpu}${color}

Re: Custom conky edit

Posted: Fri Nov 18, 2022 2:31 am
by Eadwine Rose
See the code tags around the QSI bit?

Put those around the code of conky as well please, makes for easier reading, thanks! :)

Re: Custom conky edit

Posted: Fri Nov 18, 2022 4:38 am
by wdscharff
I think that system can not distinguish what is a real core and what is a thread, the system treats everything the same.

On an AMD Ryzen 9 3900X that's a lot of copy&paste and editing to make it look nice and clear.

Starting point for me was also mx-full, among others
11_jiw.jpg

Re: Custom conky edit

Posted: Fri Nov 18, 2022 4:19 pm
by ph3arr3t
Eadwine Rose ... QSI ?? sorry don't follow.

wdscharff
I like how you got CPU & GPU temp to display.. can I get a copy of the lines, if they'll work.
mine looks like this..
conky.png

Re: Custom conky edit

Posted: Fri Nov 18, 2022 5:28 pm
by Eadwine Rose
Quick System Info, found in the menu. To be pasted without editing.

Re: Custom conky edit

Posted: Fri Nov 18, 2022 7:56 pm
by siamhie
@ph3arr3t This is how I have my temps set in conky.

Code: Select all

${alignc} CPU Temp   ${color #00FF00}${hwmon 3 temp 1}${color ffff00}° C
${alignc} GPU Temp   ${color #00FF00}${hwmon 2 temp 1}${color ffff00}° C
${alignc} Nvme1 Temp  ${color #00FF00}${hwmon 0 temp 1}${color ffff00}° C 
${alignc}Nvme2 Temp  ${color #00FF00}${hwmon 1 temp 1}${color ffff00}° C

165059.jpg

Re: Custom conky edit

Posted: Fri Nov 18, 2022 11:47 pm
by wdscharff
ph3arr3t wrote: Fri Nov 18, 2022 4:19 pm
I like how you got CPU & GPU temp to display.. can I get a copy of the lines, if they'll work.
But: Font, size and color and positioning (I work with absolute values in goto) you have to adjust to your monitor.
Also the values for hwmon depend on motherboard, chipset and driver.
On my Intel Core I5 (in my laptop) I can read the temperature for the single cores, on my AMD Ryzen only for the whole chip.
For example, when I install the NVidia drivers, I have to change the values from "hwmon 3 temp 1" to "hwmon temp 1" for the CPU (yes, for the cpu, not for the gpu as expected).
So you can't just take the values from many concys 1 to 1.

Code: Select all

${font Open Sans:size=12} ${color}CPU: ${color}${execi 86400 sed -ne '/model name.*: /{s///;s/@.*//;p;q}' /proc/cpuinfo} ${freq_g cpu0}GHz $cpu%  ${goto 475}${color}CPU: ${color5}${hwmon 3 temp 1}°C ${goto 575}${color}GPU: ${color5}${hwmon 1 temp 1}°C ${voffset 2}
${color}CPU-average-load: $cpu%   ${alignr}${color5}${cpubar 10,550}${voffset 2}

Re: Custom conky edit

Posted: Sun Nov 27, 2022 9:51 am
by ph3arr3t
Well I was able to get most working, here's the edits.. still working on the REM sections..
# GPU
# ${color1}GPU:${color #FCAF3E}${exec nvidia-smi --query-gpu=gpu_name --format=csv,noheader,nounits} ${color}
# {color1}GPU Utilization ${color} ${exec nvidia-smi | grep % | cut -c 61-63} %
# ${color1}VRAM Utilization ${color} ${exec nvidia-smi | grep % | cut -c 37-40} MB
# ${color1}GPU Power Draw ${color} ${exec nvidia-smi | grep % | cut -c 21-23} W

# HDD Temp
${voffset -8}${font Open Sans:Bold:size=10}${color0}TEMP ${color EC0100}${hr 3} ${color}
#${font}M2 Temp: ${color3} ${execi 4 | grep 'temperture' | cut -c18-24}${alignl}${hwmon 0 temp 1}°C
${color5} CPU Fan ${color #00FF00}${hwmon 1 temp 1}${color ffff00} °C
${color5} CPU ${color #00FF00}${hwmon 0 temp 1}${color ffff00} °C
${color5} iGPU ${color #00FF00}${hwmon 3 temp 1}${color ffff00} °C
${color5} GPU ${color #00FF00}${hwmon 5 temp 1}${color ffff00} °C
${color5} Nvme0 ${color #00FF00}${hwmon 4 temp 1}${color ffff00} °C
${color5} Nvme1 ${color #00FF00}${hwmon 2 temp 1}${color ffff00} °C
# ${color0}Temperatures in Celsius:
# ${color1}HDDs ${color} ${hddtemp /dev/nvme0n1} ${hddtemp /dev/nvme1n1}
# ${color1}CPUs
# ${color1}PCH ${color} ${hwmon 1 temp 1}

and thank you for the help. here's a conky shot and what it shows.
Image

Re: Custom conky edit

Posted: Sat Dec 03, 2022 9:43 pm
by ph3arr3t
Ok, thanks for the advise in pointing me in the correct direction. Still editing but I really like the changes ... still can't get sensors for the fans to work. xsensors does load a small app that displays the correct info, just not sure how to format the string to extract the relevant info.
Thanks again wdscharff, I got the temperatures to show, nice touch !!
Here's what it looks like now;

conky.config = {
background = false,
use_xft = true,
font = 'Terminus:size=8',
xftalpha = 0.5,
update_interval = 1,
total_run_times = 0,
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_argb_visual = false,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
double_buffer = true,
--default_bar_size 0 6

maximum_width = 300,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
default_color = 'white',
default_shade_color = 'red',
default_outline_color = 'green',
alignment = 'top_right',
gap_x = 05,
gap_y = 25,
no_buffers = true,
uppercase = false,
cpu_avg_samples = 8,
net_avg_samples = 2,
override_utf8_locale = true,
use_spacer = 'none',

own_window_argb_value = 178,
own_window_colour = '000000',
minimum_width = 0, minimum_height = 0,

color0 = 'dodgerblue3',
color1 = 'EC0100',
color2 = 'E9E101',
color3 = '18FF00',
color4 = '66aaff',

-- network $templates
if_up_strictness = 'address',
template0 = 'eth0',
template1 = 'eth1',
template2 = 'wlan0',
template3 = 'wlan1',

};

-- fluxbox adjustment

return_code = os.execute('pidof -q fluxbox')
if _VERSION == 'Lua 5.1' and math.floor(return_code/256) == 0 or
_VERSION ~= 'Lua 5.1' and return_code then
conky.config.own_window_transparent = true
conky.config.own_window_argb_visual = false
end

conky.text = [[
# Name & Date
${alignc -0}${font Open Sans:size=15}${color0}Ph3arr3t$font$color
${voffset 4}$color${font}${font Open Sans:size=10}$alignr${voffset -15}$font
${voffset -4}${color0}${font Open Sans:Bold:size=10}DATE ${color1}${hr 3}$color$font
$color${font Open Sans:size=10}$alignc${time %A}, ${if_match "pmfix${time %p}" == "pmfix"}${time %d %B %Y %k:%M}${else}${time %d %B %Y %H:%M}${endif}$font$color

# SYS
${voffset -8}${font Open Sans:Bold:size=10}${color0}SYSTEM ${color EC0100}${hr 3}$color${font}
Kernel$alignr$sysname $kernel
OS $alignr${head /etc/mx-version 1 86400}\
Uptime $alignr $uptime

# MEMORY
${voffset -8}${font Open Sans:Bold:size=10}${color0}MEMORY ${color EC0100}${hr 3}
${color2}$memperc% ${membar 4}
$color${font Open Sans:bold:size=8}Used:$alignr$font $mem of $memmax
$color${font Open Sans:bold:size=8}Free:$alignr$font $memeasyfree
$color${font Open Sans:bold:size=8}Buffers / Cached:$alignr$font$buffers / $cached
# Battery
${color5}Battery :${color3} ${battery} ${color5} Strength:${color2} ${battery_bar 7,75}

# CPU
# Asus Strix G15 Ryzen 9 5900HX 8 core 16 threads
${voffset -8}${font Open Sans:Bold:size=10}${color0}CPU ${color EC0100}${hr 3}
#$color${font}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq}
$color${font}${execi 86400 sed -ne '/model name.*: /{s///;s/@.*//;p;q}' /proc/cpuinfo}
${freq_g cpu0}GHz $alignc $cpu%
#
${font}Core 0 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 0' | cut -c18-24} ${color2} ${cpubar 7,83 cpu0}${color} ${goto 150}${font}Core 1 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 1' | cut -c18-24} ${color2}${cpubar cpu1}${color}
${font}Core 2 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 2' | cut -c18-24} ${color2} ${cpubar 7,83 cpu2}${color} ${goto 150}${font}Core 3 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 3' | cut -c18-24} ${color2}${cpubar cpu3}${color}
${font}Core 4 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 4' | cut -c18-24} ${color2} ${cpubar 7,83 cpu4}${color} ${goto 150}${font}Core 5 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 5' | cut -c18-24} ${color2}${cpubar cpu5}${color}
${font}Core 6 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 6' | cut -c18-24} ${color2} ${cpubar 7,83 cpu6}${color}${goto 150}${font}Core 7 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 7' | cut -c18-24} ${color2} ${cpubar cpu7}${color}
${font}Core 8 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 8' | cut -c18-24} ${color2} ${cpubar 7,83 cpu8}${color}${goto 150}${font}Core 9 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 9' | cut -c18-24} ${color2} ${cpubar cpu9}${color}
${font}Core 10 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 10' | cut -c18-24} ${color2} ${cpubar 7,83 cpu10}${color}${goto 150}${font}Core 11 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 11' | cut -c18-24} ${color2} ${cpubar cpu11}${color}
${font}Core 12 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 12' | cut -c18-24} ${color2} ${cpubar 7,83 cpu12}${color}${goto 150}${font}Core 13 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 13' | cut -c18-24} ${color2} ${cpubar cpu13}${color}
${font}Core 14 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 14' | cut -c18-24} ${color2} ${cpubar 7,83 cpu14}${color}${goto 150}${font}Core 15 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 15' | cut -c18-24} ${color2} ${cpubar cpu15}${color}
${font}Core 16 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 16' | cut -c18-24} ${color2} ${cpubar 7,83 cpu16}${color}${goto 150}${font}AMDGPU ${color3}${execi 4 sensors 2>/dev/null | grep 'AMDGPU' | cut -c18-24} ${color3}${cpubar amdgpu}${color}

# GPU
${voffset -8}${font Open Sans:Bold:size=10}${color0}GPU ${color EC0100}${hr 3}
${font}${color5}GPU:${color}${exec nvidia-smi --query-gpu=gpu_name --format=csv,noheader,nounits} ${color}
${font}${color5}GPU Utilization ${color3} ${exec nvidia-smi | grep % | cut -c 61-63} ${color}%
${font}${color5}GPU Power Draw ${color3} ${exec nvidia-smi | grep % | cut -c 21-23} ${color}W
${font}${color5}VRAM Utilization ${color3} ${exec nvidia-smi | grep % | cut -c 37-40} ${color}MB

# HDD Temp
${voffset -8}${font Open Sans:Bold:size=10}${color0}TEMP ${color EC0100}${hr 3} ${color} ${font}
${color5}CPUFan ${alignr}${color5}GPU Fan ${color}
${color5}CPU ${color #00FF00}${hwmon 0 temp 1}${color ffff00} °C
${color5}GPU ${color #00FF00}${hwmon 3 temp 1}${color ffff00} °C ${alignr}${color5}iGPU ${color #00FF00}${hwmon 0 temp 1}${color ffff00} °C
${color5}Nvme0 ${color #00FF00}${hwmon 4 temp 1}${color ffff00} °C ${alignr}${color5}Nvme1 ${color #00FF00}${hwmon 2 temp 1}${color ffff00} °C

# Processes
${voffset -10}------Active---------------------------------${font Open Sans:Bold:size=10}${color0}${voffset -2}RAM${color}${font}${voffset -1} ------ ${font Open Sans:Bold:size=10}${color0}${voffset -2}CPU${color}${font}${voffset -1} -
${top_mem name 1}${alignr}${top_mem cpu 1} %
${voffset -13}${alignr}${offset -60}${top_mem mem 1} %
${top_mem name 2}${alignr}${top_mem cpu 2} %
${voffset -13}${alignr}${offset -60}${top_mem mem 2} %
${top_mem name 3}${alignr}${top_mem cpu 3} %
${voffset -13}${alignr}${offset -60}${top_mem mem 3} %
${top_mem name 4}${alignr}${top_mem cpu 4} %
${voffset -13}${alignr}${offset -60}${top_mem mem 4} %

${voffset -10}------Top-------------------------------------- ${font Open Sans:Bold:size=10}${color0}${voffset -2}RAM${color}${font}${voffset -1} ----- ${font Open Sans:Bold:size=10}${color0}${voffset -2}CPU${color}${font}${voffset -1} -
#${hr 1}
${top name 1}${alignr}${top cpu 1} %
${voffset -13}${alignr}${offset -60}${top mem 1} %
${top name 2}${alignr}${top cpu 2} %
${voffset -13}${alignr}${offset -60}${top mem 2} %
${top name 3}${alignr}${top cpu 3} %
${voffset -13}${alignr}${offset -60}${top mem 3} %
${top name 4}${alignr}${top cpu 4} %
${voffset -13}${alignr}${offset -60}${top mem 4} %
# ${top name 5}${alignr}${top cpu 5} %
#${voffset -13}${alignr}${offset -60}${top mem 5} %

# NETWORK
${voffset -8}${font Open Sans:Bold:size=10}${color0}NETWORK ${color EC0100}${hr 3}$color
$color${font Open Sans:bold:size=8}External IP ${font}${alignr}${execi 60 curl http://google.com --connect-timeout 2 | grep -o "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*"}${alignr}$font${goto 80}Location: ${execpi 600 python ~/.conky/MX-KoO/scripts/location.py}${voffset -14}$alignr${execpi 4 echo "\${font}\${color}ping: \${font Open Sans:bold:size=8}\${color6}$(ping -W 1 -c 1 8.8.8.8 -q | grep rtt | egrep [0-9]+\.[0-9]+ -o | head -n 2 | tail -n 1)\${font}\${color} ms"}
${if_existing /proc/net/route wlan0}${goto 40}${execpi 600 ethtool -P wlan0}${endif}
# External IP and ping rate displays, but nothing on the location..
${if_up $template0}\
${voffset -10}${font Open Sans:bold:size=8}Ethernet $font$alignr ${addr $template0}
↑ ${upspeedf $template0} kb/s $alignr ${totalup $template0}
${voffset -14}$alignc${upspeedgraph $template0 10,120 ff0000 0000ff}
↓ ${downspeedf $template0} kb/s $alignr ${totaldown $template0}
${voffset -14}$alignc${downspeedgraph $template0 10,120 ff0000 0000ff}

${else}${if_up $template1}\
${voffset -10}${font Open Sans:bold:size=8}Ethernet $font$alignr ${addr $template1}
↑ ${upspeedf $template1} kb/s $alignr ${totalup $template1}
${voffset -14}$alignc${upspeedgraph $template1 10,120 ff0000 0000ff}
↓ ${downspeedf $template1} kb/s $alignr ${totaldown $template1}
${voffset -14}$alignc${downspeedgraph $template1 10,120 ff0000 0000ff}
${endif}${endif}${if_up $template2}${voffset -10}${font Open Sans:bold:size=8}WiFi $font${wireless_bitrate $template2} $alignr ${addr $template2}
${voffset -14}$alignc${wireless_essid $template2}
$alignc${color2}${wireless_link_bar 4,260 $template2}${color E9E9E9}
↑ ${upspeedf $template2} kb/s $alignr ${totalup $template2}
${voffset -14}$alignc${upspeedgraph $template2 10,120 ff0000 0000ff}
↓ ${downspeedf $template2} kb/s $alignr ${totaldown $template2}
${voffset -14}$alignc${downspeedgraph $template2 10,120 ff0000 0000ff}${else}\
${voffset -10}${font Open Sans:bold:size=8}WiFi $font${wireless_bitrate $template3} $alignr ${addr $template3}
${voffset -14}$alignc${wireless_essid $template3}
$alignc${color2}${wireless_link_bar 4,260 $template3}${color E9E9E9}
↑ ${upspeedf $template3} kb/s $alignr ${totalup $template3}
${voffset -14}$alignc${upspeedgraph $template3 10,120 ff0000 0000ff}
↓ ${downspeedf $template3} kb/s $alignr ${totaldown $template3}
${voffset -14}$alignc${downspeedgraph $template3 10,120 ff0000 0000ff}${endif}
${color}link strength: ${color} ${wireless_link_bar 7,50 $template6}

# HDD
${voffset -8}${font Open Sans:Bold:size=10}${color0}DISKS ${color EC0100}${hr 3}
$color${font Open Sans:bold:size=8}${font Open Sans:bold:size=8}\
ROOT$font ${color}${fs_used /} / ${fs_size /}$alignr${fs_type /}
${color aaddff}write: ${diskio_write }${color6}${alignc -20} read:${diskio_read }$color$alignr ${fs_used_perc /}%
${color2}${fs_bar /}${color}
${if_mounted /home}
${voffset -10}${font Open Sans:bold:size=8}\
HOME $font $alignr${fs_type /home}
${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home} %
${fs_bar /home}
${endif}
# Mounted
${voffset -8}${font Open Sans:Bold:size=10}${color0}Disk Mounts ${color1}${hr 3}$color$font

${execpi 10 sh semplice-conky-harddisks.sh}
]];

the attempted lines are;
${color5}CPUFan ${execi 60 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t} %
${color5}GPUFan ${color 2} ${execi 60 xsensors 1 | grep % | cut -c asus}

xsensors shows;
k10temp = CPU
amdgpu = iGPU
nvme0
acpitz = acpi temp
usci = usb hub
asus = fans rpm
nvme1
BAT0 = battery

does grep work to get the info for the asus line ? Or am I trying the wrong command ?

Re: Custom conky edit

Posted: Sat Dec 03, 2022 9:55 pm
by ph3arr3t
@@siamhie I think I was able to assimilate both yours and @wdscharff And yes I got the info fore the GPU and CPU to load.
still shows 16 cores +iGPU ... I would still rather it show the cores instead of processes, but I have more room in conky, for now...

Re: Custom conky edit

Posted: Sun Dec 04, 2022 2:02 am
by Helen-Earth
You need to edit this line.
To fix your gpu 16 cores = ${font}Core 16 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 16' | cut -c18-24} ${color2} ${cpubar 7,83 cpu16}${color}${goto 150}${font}AMDGPU ${color3}${execi 4 sensors 2>/dev/null | grep 'AMDGPU' | cut -c18-24} ${color3}${cpubar amdgpu}${color}

[ Remember 0 is the first core not 1 ]

Fixed =

Code: Select all

${font}Core 15${color3}${execi 4 sensors 2>/dev/null | grep 'Core 15' | cut -c18-24} ${color2} ${cpubar 7,83 cpu15}${color}${goto 150}${font}Core 15 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 15' | cut -c18-24} ${color2} ${cpubar cpu15}${color}


As you see from below my fans woulds be set too.

Code: Select all

 ${hwmon 0 fan 1} rpm ${hwmon 0 fan 2} rpm
To find out which hwmon your fans are working from run this command from prompt. = for m in /sys/class/hwmon/* ; do echo -n "$m = " ; cat $m/name ; done



for m in /sys/class/hwmon/* ; do echo -n "$m = " ; cat $m/name ; done

Code: Select all

/sys/class/hwmon/hwmon0 = asuswmisensors     <<<<< my fans are on hwmon 0
/sys/class/hwmon/hwmon1 = asus
/sys/class/hwmon/hwmon2 = k10temp
/sys/class/hwmon/hwmon3 = amdgpu

10 files = 328K ~ >$sensors

Code: Select all

k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +39.0°C
Tdie:         +39.0°C
Tccd1:        +38.8°C

Code: Select all

asuswmisensors-isa-0000    <<<<<<  from the list above you can see = asuswmisensors is hwmon0
Adapter: ISA adapter
CPU Core Voltage:        959.00 mV
VPP MEM Voltage:           2.50 V
+12V Voltage:             10.19 V
+5V Voltage:               4.99 V
3VSB Voltage:              3.31 V
VBAT Voltage:              3.23 V
AVCC3 Voltage:             3.36 V
SB 1.05V Voltage:          1.07 V
CPU Core Voltage:        480.00 mV
CPU SOC Voltage:           1.05 V
CPU Fan:                  904 RPM     <<<<< fan 1
Chassis Fan 1:            693 RPM   <<<< fan 2
AIO Pump:                   0 RPM
CPU OPT:                    0 RPM
CPU Temperature:          +39.0°C
CPU Socket Temperature:   +39.0°C
Motherboard Temperature:  +39.0°C
Chipset Temperature:      +55.0°C
Tsensor 1 Temperature:   +216.0°C
CPU VRM Temperature:      +40.0°C
CPU VRM Output Current:  1000.00 mA

Code: Select all

amdgpu-pci-0800
Adapter: PCI adapter
vddgfx:      775.00 mV
fan1:           0 RPM  (min =    0 RPM, max = 3200 RPM)
edge:         +43.0°C  (crit = +100.0°C, hyst = -273.1°C)
                       (emerg = +105.0°C)
junction:     +43.0°C  (crit = +110.0°C, hyst = -273.1°C)
                       (emerg = +115.0°C)
mem:          +44.0°C  (crit = +105.0°C, hyst = -273.1°C)
                       (emerg = +110.0°C)
power1:        7.00 W  (cap = 135.00 W)
Hope this helps.

Re: Custom conky edit

Posted: Sun Dec 04, 2022 3:40 am
by Eadwine Rose
Can you please wrap code in code tags.. like so:

[code]stuffgoeshere[/code]

(ignore the bolding)


When in the preview screen in the row of buttons, there is </> next to the quotes. Select all the code and press that button.

Re: Custom conky edit

Posted: Sun Dec 04, 2022 9:19 am
by ph3arr3t
@Eadwine Rose sorry about that, still figuring out the correct formatting for the forums, that request is easy enough.
for m in /sys/class/hwmon/* ; do echo -n "$m = " ; cat $m/name ; done shows the following:
{code}
/sys/class/hwmon/hwmon0 = acpitz
/sys/class/hwmon/hwmon1 = BAT0
/sys/class/hwmon/hwmon2 = nvme
/sys/class/hwmon/hwmon3 = nvme
/sys/class/hwmon/hwmon4 = amdgpu
/sys/class/hwmon/hwmon5 = k10temp
/sys/class/hwmon/hwmon6 = ADP0
/sys/class/hwmon/hwmon7 = asus
/sys/class/hwmon/hwmon8 = asus_custom_fan_curve
/sys/class/hwmon/hwmon9 = ucsi_source_psy_USBC000:001
[/code]
So am I correct that hwmon8 is the speed adjustment controller ?

Re: Custom conky edit

Posted: Sun Dec 04, 2022 9:24 am
by Eadwine Rose
[ ] around code and /code , not { }

Re: Custom conky edit

Posted: Sun Dec 04, 2022 9:48 am
by Helen-Earth
ph3arr3t wrote: Sun Dec 04, 2022 9:19 am

Code: Select all

for m in /sys/class/hwmon/* ; do echo -n "$m = " ; cat $m/name ; done shows the following:
/sys/class/hwmon/hwmon0 = acpitz
/sys/class/hwmon/hwmon1 = BAT0
/sys/class/hwmon/hwmon2 = nvme
/sys/class/hwmon/hwmon3 = nvme
/sys/class/hwmon/hwmon4 = amdgpu
/sys/class/hwmon/hwmon5 = k10temp
/sys/class/hwmon/hwmon6 = ADP0
/sys/class/hwmon/hwmon7 = asus
/sys/class/hwmon/hwmon8 = asus_custom_fan_curve
/sys/class/hwmon/hwmon9 = ucsi_source_psy_USBC000:001
So am I correct that hwmon8 is the speed adjustment controller ?
What you can do now is run sensors.
All you have to do is try each one 7 or 8 conky will change in real time. You won't brake anything.

Code: Select all

for m in /sys/class/hwmon/* ; do echo -n "$m = " ; cat $m/name ; done

/sys/class/hwmon/hwmon0 = nvme
/sys/class/hwmon/hwmon1 = amdgpu
/sys/class/hwmon/hwmon2 = k10temp
/sys/class/hwmon/hwmon3 = asus
/sys/class/hwmon/hwmon4 = asus_wmi_sensors  <<<<<<<<<<<  hwmon4 

Code: Select all

sensors
asus_wmi_sensors-virtual-0        <<<<<<<<<<<<<<<< asus_wmi_sensors  hwmon4
Adapter: Virtual device
CPU Core Voltage:        916.00 mV 
VPP MEM Voltage:           2.48 V  
+12V Voltage:             10.14 V  
+5V Voltage:               4.96 V  
3VSB Voltage:              3.31 V  
VBAT Voltage:              3.23 V  
AVCC3 Voltage:             3.33 V  
SB 1.05V Voltage:          1.07 V  
CPU Core Voltage:        619.00 mV 
CPU SOC Voltage:           1.05 V  
CPU Fan:                 1068 RPM   <<<<<
Chassis Fan 1:            715 RPM <<<<<
AIO Pump:                   0 RPM
CPU OPT:                    0 RPM
CPU Temperature:          +44.0°C  
CPU Socket Temperature:   +42.0°C  
Motherboard Temperature:  +43.0°C  
Chipset Temperature:      +59.0°C  
Tsensor 1 Temperature:   +216.0°C  
CPU VRM Temperature:      +42.0°C  
CPU VRM Output Current:    2.00 A 

Re: Custom conky edit

Posted: Sun Dec 04, 2022 10:13 am
by ph3arr3t
@Helen-Earth the AMDGPU line is there as somewhat a residual line, not sure if it's correct though.
the original conky had only a few core lines so when I started incrementally mapping the cores line 0-16 I tried 17,18. There is no 18 but there is a 17 so I think it's the iGPU on the CPU.
I am still curious (and hopeful) there is a way to correctly show the 8 cores and iGPU and not the threads, as in something like

Code: Select all

 core 0 = ((thread0)+(thread1)/2) 
to display something like the average load of both in 1 bar, so then I have 9 bars, 8 Cores and 1 iGPU instead of the current 18.
And is there a way to add the nvidia gpu temp ?
here's what current conky looks like;
Image