Skip to content

MX-KoO - Core temperatures - truncated #36

@ricir

Description

@ricir

It seems that the core temperatures are not shown correctly. I do not know if this may be related to some versions only.
System info may be found at the end of this post.

An output of sensors is as follows:

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +27.8°C  (crit = +90.0°C)
temp2:        +29.8°C  (crit = +90.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +36.0°C  (high = +79.0°C, crit = +85.0°C)
Core 0:        +33.0°C  (high = +79.0°C, crit = +85.0°C)
Core 1:        +35.0°C  (high = +79.0°C, crit = +85.0°C)
Core 2:        +36.0°C  (high = +79.0°C, crit = +85.0°C)
Core 3:        +30.0°C  (high = +79.0°C, crit = +85.0°C)

Temperatures in Conky are truncated at second digit like this:
Istantanea_2021-11-02_19-21-08

The correct output is obtained by replacing -c18-24 with c16-24 in the lines such as:
${font}Core 0 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 0' | cut -c18-24} ${alignc 60}${color2}${cpubar cpu0}${color}

which become:

${font}Core 0 ${color3}${execi 4 sensors 2>/dev/null | grep 'Core 0' | cut -c16-24} ${alignc 60}${color2}${cpubar cpu0}${color}

System info

[code]
System: Host: Kernel: 5.10.0-9-amd64 x86_64 bits: 64 compiler: N/A
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-9-amd64
root=UUID= ro quiet splash
Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm4 dm: LightDM 1.26.0
Distro: MX-21_x64 Wildflower October 20 2021 base: Debian GNU/Linux 11 (bullseye)
Machine: Type: Desktop Mobo: MSI model: Z97I AC (MS-7851) v: 1.0 serial:
UEFI [Legacy]: American Megatrends v: 4.8 date: 06/02/2015
CPU: Topology: Quad Core model: Intel Core i7-4790T bits: 64 type: MT MCP arch: Haswell
family: 6 model-id: 3C (60) stepping: 3 microcode: 28 L2 cache: 8192 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 43201
Speed: 2914 MHz min/max: 800/3900 MHz Core speeds (MHz): 1: 2174 2: 3731 3: 2214
4: 3236 5: 3404 6: 3461 7: 3688 8: 2936
Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages
Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW,
STIBP: conditional, RSB filling
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics: Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics
vendor: Micro-Star MSI driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0412
Display: x11 server: X.Org 1.20.11 driver: modesetting unloaded: fbdev,vesa
resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 4600 (HSW GT2) v: 4.5 Mesa 20.3.5
compat-v: 3.0 direct render: Yes
Audio: Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio
vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus ID: 00:03.0
chip ID: 8086:0c0c
Device-2: Intel 9 Series Family HD Audio vendor: Micro-Star MSI driver: snd_hda_intel
v: kernel bus ID: 00:1b.0 chip ID: 8086:8ca0
Device-3: Logitech OrbiCam type: USB driver: snd-usb-audio,uvcvideo bus ID: 2-2:2
chip ID: 046d:0892 serial:
Sound Server: ALSA v: k5.10.0-9-amd64
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI driver: r8169 v: kernel port: e000 bus ID: 02:00.0
chip ID: 10ec:8168
IF: eth0 state: up speed: 1000 Mbps duplex: full mac:
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI driver: r8169 v: kernel port: d000 bus ID: 03:00.0
chip ID: 10ec:8168
IF: eth1 state: down mac:
Device-3: Intel Wireless 7260 driver: iwlwifi v: kernel port: d000 bus ID: 04:00.0
chip ID: 8086:08b1
IF: wlan0 state: up mac:
Drives: Local Storage: total: 223.57 GiB used: 87.65 GiB (39.2%)
ID-1: /dev/sda vendor: Kingston model: SV300S37A240G size: 223.57 GiB block size:
physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: rev: BBF0 scheme: MBR
Partition: ID-1: / raw size: 53.88 GiB size: 52.74 GiB (97.87%) used: 7.11 GiB (13.5%) fs: ext4
dev: /dev/sda1
ID-2: /home raw size: 107.77 GiB size: 105.58 GiB (97.97%) used: 50.89 GiB (48.2%)
fs: ext4 dev: /dev/sda3
ID-3: swap-1 size: 8.00 GiB used: 0 KiB (0.0%) fs: swap swappiness: 15 (default 60)
cache pressure: 100 (default) dev: /dev/sda2
Sensors: System Temperatures: cpu: 35.0 C mobo: N/A
Fan Speeds (RPM): N/A
Repos: No active apt repos in: /etc/apt/sources.list
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
Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
Active apt repos in: /etc/apt/sources.list.d/mx.list
1: deb http://it.mxrepo.com/mx/repo/ bullseye main non-free
Info: Processes: 367 Uptime: 6h 36m Memory: 15.52 GiB used: 9.58 GiB (61.7%) Init: SysVinit
v: 2.96 runlevel: 5 default: 5 Compilers: gcc: 10.2.1 alt: 10 Shell: quick-system-in
running in: quick-system-in inxi: 3.0.36
[/code]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions