Page 1 of 1

Display CPU/HD temperature on desktop

Posted: Mon Jun 14, 2021 9:09 am
by michaelbr
What's the best way to display temperatures (CPU/HD) on desktop? I couldn't find anything suitable in Conky (someone reported that Conky's temperature lot of time differs from the real ones, etc.), does it mean that I need to create/modify one or there's a better way to do it? Where can I find documentation on how to start?

Code: Select all

System:    Host: <filter> Kernel: 5.10.0-5mx-amd64 x86_64 bits: 64 compiler: N/A 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-5mx-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.14.2 tk: Gtk 3.24.5 info: xfce4-panel wm: xfwm4 dm: LightDM 1.26.0 
           Distro: MX-19.4_ahs_x64 patito feo March 31  2021 base: Debian GNU/Linux 10 (buster) 
Machine:   Type: Desktop Mobo: BESSTAR TECH LIMITED model: UM250 v: V1.0 serial: <filter> 
           UEFI: American Megatrends v: 5.13 date: 01/07/2021 
CPU:       Topology: Quad Core model: AMD Ryzen 5 PRO 2500U w/ Radeon Vega Mobile Gfx bits: 64 
           type: MT MCP arch: Zen family: 17 (23) model-id: 11 (17) stepping: N/A 
           microcode: 810100B L2 cache: 2048 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 31938 
           Speed: 1427 MHz min/max: 1600/2000 MHz boost: enabled Core speeds (MHz): 1: 1380 
           2: 1594 3: 1484 4: 1369 5: 1452 6: 1492 7: 1368 8: 1365 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           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 AMD retpoline, IBPB: conditional, STIBP: disabled, RSB filling 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: AMD Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] 
           driver: amdgpu v: kernel bus ID: 04:00.0 chip ID: 1002:15dd 
           Display: x11 server: X.Org 1.20.10 driver: amdgpu,ati 
           unloaded: fbdev,modesetting,vesa resolution: 1920x1080~60Hz 
           OpenGL: 
           renderer: AMD Radeon Vega 8 Graphics (RAVEN DRM 3.40.0 5.10.0-5mx-amd64 LLVM 11.0.1) 
           v: 4.6 Mesa 20.3.4 direct render: Yes 
Audio:     Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel v: kernel 
           bus ID: 04:00.1 chip ID: 1002:15de 
           Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A 
           bus ID: 04:00.5 chip ID: 1022:15e2 
           Device-3: AMD Family 17h HD Audio driver: snd_hda_intel v: kernel bus ID: 04:00.6 
           chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.10.0-5mx-amd64 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           v: kernel port: f000 bus ID: 01:00.0 chip ID: 10ec:8168 
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           v: kernel port: e000 bus ID: 02:00.0 chip ID: 10ec:8168 
           IF: eth1 state: down mac: <filter> 
           Device-3: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: e000 bus ID: 03:00.0 
           chip ID: 8086:2723 
           IF: wlan0 state: down mac: <filter> 
           IF-ID-1: virbr0 state: down mac: <filter> 
           IF-ID-2: virbr0-nic state: down mac: <filter> 
Drives:    Local Storage: total: 1.38 TiB used: 225.18 GiB (16.0%) 
           ID-1: /dev/sda vendor: Kingston model: OM8P0S3512F-00 size: 476.94 GiB block size: 
           physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> rev: N2.3 scheme: GPT 
           ID-2: /dev/sdb vendor: Seagate model: ST1000LM048-2E7172 size: 931.51 GiB block size: 
           physical: 4096 B logical: 512 B speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter> 
           rev: 0001 scheme: GPT 
Partition: ID-1: / raw size: 424.20 GiB size: 416.55 GiB (98.19%) used: 14.12 GiB (3.4%) 
           fs: ext4 dev: /dev/sda6 
           ID-2: swap-1 size: 3.91 GiB used: 0 KiB (0.0%) fs: swap swappiness: 15 (default 60) 
           cache pressure: 100 (default) dev: /dev/sda5 
Sensors:   System Temperatures: cpu: 61.2 C mobo: N/A gpu: amdgpu temp: 61 C 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
           1: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ buster main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian buster-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian buster main contrib non-free
           2: deb http://deb.debian.org/debian-security buster/updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://ftp.cica.es/mirrors/Linux/MX-Packages/mx/repo/ buster main non-free
           2: deb http://ftp.cica.es/mirrors/Linux/MX-Packages/mx/repo/ buster ahs
           Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
           1: deb [arch=amd64] https://repo.skype.com/deb stable main
           No active apt repos in: /etc/apt/sources.list.d/various.list 
Info:      Processes: 310 Uptime: 1h 30m Memory: 15.41 GiB used: 2.51 GiB (16.3%) Init: SysVinit 
           v: 2.93 runlevel: 5 default: 5 Compilers: gcc: 8.3.0 alt: 8 Shell: quick-system-in 
           running in: quick-system-in inxi: 3.0.36 

Re: Display CPU/HD temperature on desktop

Posted: Mon Jun 14, 2021 9:48 am
by Jerry3904
On your last question: check the documentation on the Wiki entry for "MX-Conky"

Re: Display CPU/HD temperature on desktop

Posted: Mon Jun 14, 2021 11:53 am
by michaelbr
Jerry3904 wrote: Mon Jun 14, 2021 9:48 am On your last question: check the documentation on the Wiki entry for "MX-Conky"
Thanks for this tip, will read it and try.

Re: Display CPU/HD temperature on desktop  [Solved]

Posted: Mon Jun 14, 2021 6:29 pm
by Stevo
Would you be open to displaying them in one of the XFCE panel thingies so they are always visible, as I prefer? We have several different panel plugins that can display hardware temperatures from various sources.

If you prefer the desktop, gkrellm is another oldie but goodie.

Re: Display CPU/HD temperature on desktop

Posted: Mon Jun 14, 2021 10:51 pm
by figueroa
A lot of hard drives don't report accurate or user discernible temperatures. The whole sensors world is fraught with pitfalls. Nor is there much one can do about hard drive temperature beyond normal enclosure/case ventilation. If a hard drive is running to hot to touch comfortably, consider laying in a spare and double-down on backups.

Re: Display CPU/HD temperature on desktop

Posted: Tue Jun 15, 2021 12:34 am
by Real
That's for sure. Unless you can edit conky, good luck. Your best option is to get a fan controller that has actual temp leads you physically attach to the components. And that of course is for desktops only. Mine, a phobya 4port has them but I just never bothered attaching them.

Btw, which setup do you have? I see the ryzen 5 pro 2500 has all sorts of configs from minipc's on the cheap all the way up to HP elite laptops and some mini desktop ones too. Just curious. I need to attach a box to the back of my tv and I want to get rid of my desktop as well. The minipc config at that price would be a great decision for my tv me thinks.

Re: Display CPU/HD temperature on desktop

Posted: Tue Jun 15, 2021 1:40 am
by michaelbr
Stevo wrote: Mon Jun 14, 2021 6:29 pm Would you be open to displaying them in one of the XFCE panel thingies so they are always visible, as I prefer? We have several different panel plugins that can display hardware temperatures from various sources.

If you prefer the desktop, gkrellm is another oldie but goodie.
Thanks Stevo for this tip, I'm not that familiar with all those goodies that Linux offer, so yes, I'm open to XFCE panel, but have no clue how to start/do it. Is the documentation for a newbie in MX's manual section?

Re: Display CPU/HD temperature on desktop

Posted: Tue Jun 15, 2021 1:41 am
by michaelbr
figueroa wrote: Mon Jun 14, 2021 10:51 pm A lot of hard drives don't report accurate or user discernible temperatures. The whole sensors world is fraught with pitfalls. Nor is there much one can do about hard drive temperature beyond normal enclosure/case ventilation. If a hard drive is running to hot to touch comfortably, consider laying in a spare and double-down on backups.
Thanks for this tip, didn't know this, thanks for clarifying.

Re: Display CPU/HD temperature on desktop

Posted: Tue Jun 15, 2021 1:59 am
by michaelbr
Real wrote: Tue Jun 15, 2021 12:34 am That's for sure. Unless you can edit conky, good luck. Your best option is to get a fan controller that has actual temp leads you physically attach to the components. And that of course is for desktops only. Mine, a phobya 4port has them but I just never bothered attaching them.

Btw, which setup do you have? I see the ryzen 5 pro 2500 has all sorts of configs from minipc's on the cheap all the way up to HP elite laptops and some mini desktop ones too. Just curious. I need to attach a box to the back of my tv and I want to get rid of my desktop as well. The minipc config at that price would be a great decision for my tv me thinks.
Thanks, I'm not that good, so if I can avoid editing Conky, it'll be better.

I bought that minipc from Amazon ES, the setup is 16GB RAM, 512GB SSD (I added on my own 1TB HD as shared drive between Windows 8.1 and Linux), it came with 2 network connection, 4USB, 1 HDMI (supports up to 4 X 4K monitor), and the size is really small, and came with VESA fixtures to attach to the back of monitor, more details you can find it here.
ps: I waited in Amazon for a flash sale (I'm not a frequent buyer in Amazon, not sure if this flash is only available in Spain/Europe or US has too), and got a discount of 100€ off the listed price of 520€, if you need more purchase details, let me know.

Re: Display CPU/HD temperature on desktop

Posted: Tue Jun 15, 2021 9:53 am
by Leo
I've used gkrellm for over a decade. I've got CPU's frequency and temperature, video card temp, hard drive I/O, network, and RAM. Pretty customize-able...

:lion:

Re: Display CPU/HD temperature on desktop

Posted: Tue Jun 15, 2021 5:51 pm
by Stevo
michaelbr wrote: Tue Jun 15, 2021 1:40 am
Stevo wrote: Mon Jun 14, 2021 6:29 pm Would you be open to displaying them in one of the XFCE panel thingies so they are always visible, as I prefer? We have several different panel plugins that can display hardware temperatures from various sources.

If you prefer the desktop, gkrellm is another oldie but goodie.
Thanks Stevo for this tip, I'm not that familiar with all those goodies that Linux offer, so yes, I'm open to XFCE panel, but have no clue how to start/do it. Is the documentation for a newbie in MX's manual section?
Who reads the manual? :p

It's pretty discoverable--right click an empty spot on the panel, then Panel > Add New Items. There's a search box in the dialog box where you can enter terms such as temp, sensor, hardware, CPU, and so on, and relevant panel doodads will appear that you can add to the panel. Most of those can be right-clicked after addition to edit their properties...the hardware-monitor widget is quite capable, but takes a bit more expertise to manage. The wmdock plugin, not installed by default, can also be used to display "wmtemp" on the panel if you get a yen for one that looks a bit different.

Re: Display CPU/HD temperature on desktop

Posted: Tue Jun 15, 2021 11:30 pm
by Real
michaelbr wrote: Tue Jun 15, 2021 1:59 am
Real wrote: Tue Jun 15, 2021 12:34 am
Thanks, I'm not that good, so if I can avoid editing Conky, it'll be better.

I bought that minipc from Amazon ES, the setup is 16GB RAM, 512GB SSD (I added on my own 1TB HD as shared drive between Windows 8.1 and Linux), it came with 2 network connection, 4USB, 1 HDMI (supports up to 4 X 4K monitor), and the size is really small, and came with VESA fixtures to attach to the back of monitor, more details you can find it here.
ps: I waited in Amazon for a flash sale (I'm not a frequent buyer in Amazon, not sure if this flash is only available in Spain/Europe or US has too), and got a discount of 100€ off the listed price of 520€, if you need more purchase details, let me know.
Thank you for the description. That exact config sounds perf for my tv. Awesome possum.

Re: Display CPU/HD temperature on desktop

Posted: Wed Jun 16, 2021 1:57 am
by michaelbr
Stevo wrote: Tue Jun 15, 2021 5:51 pm It's pretty discoverable--right click an empty spot on the panel, then Panel > Add New Items. There's a search box in the dialog box where you can enter terms such as temp, sensor, hardware, CPU, and so on, and relevant panel doodads will appear that you can add to the panel. Most of those can be right-clicked after addition to edit their properties...the hardware-monitor widget is quite capable, but takes a bit more expertise to manage. The wmdock plugin, not installed by default, can also be used to display "wmtemp" on the panel if you get a yen for one that looks a bit different.
Thanks, will give it a try.

Re: Display CPU/HD temperature on desktop

Posted: Wed Jun 16, 2021 2:02 am
by michaelbr
Leo wrote: Tue Jun 15, 2021 9:53 am I've used gkrellm for over a decade. I've got CPU's frequency and temperature, video card temp, hard drive I/O, network, and RAM. Pretty customize-able...

:lion:
Thanks Leo for you feedback, for newbie, where should I start? I've found it's site, is this the place to start for a newbie? Is there any sample code/tutorial to speedup my learning curve? The theme site seems broken and plugin site has lot of links not working. I've installed the default but temp seems not working (reporting 0).

Re: Display CPU/HD temperature on desktop

Posted: Wed Jun 16, 2021 9:09 am
by Leo
Synaptic. There's lots of plugins available. I'm afraid I haven't been to the "theme" site in quite a while, I've used CoplandOS for a long time. Couldn't find much documentation on it, sorry. It does give you some information in the configuration. I guess just play around with it if you decide to. Good luck and have fun!

:lion:

Re: Display CPU/HD temperature on desktop

Posted: Wed Jun 16, 2021 2:30 pm
by michaelbr
Leo wrote: Wed Jun 16, 2021 9:09 am Synaptic. There's lots of plugins available. I'm afraid I haven't been to the "theme" site in quite a while, I've used CoplandOS for a long time. Couldn't find much documentation on it, sorry. It does give you some information in the configuration. I guess just play around with it if you decide to. Good luck and have fun!

:lion:
Thanks for this tip, I'll take a look.

Re: Display CPU/HD temperature on desktop

Posted: Wed Jun 16, 2021 6:04 pm
by Stevo
Here's what I have in my horizontal panel for monitors, from left to right:

Image


Wi-fi down and up via Hardware Monitor,
sda and sdb drive activity in wmhdplop in a wmdock square,
CPU and some other temps in degrees F using wmtemp in another wmdock,
RAM used, on top of swap used using Hardware Monitor--lots of RAM in use due to running virtual machine, swap use is shown after resume from hibernation,
CPU Frequency Monitor (lowest speed is 800MHz),
CPU Graph showing 12 threads and overall system usage.

Re: Display CPU/HD temperature on desktop

Posted: Thu Jun 17, 2021 4:42 am
by michaelbr
Stevo wrote: Wed Jun 16, 2021 6:04 pm Here's what I have in my horizontal panel for monitors, from left to right:

Image

Wi-fi down and up via Hardware Monitor,
sda and sdb drive activity in wmhdplop in a wmdock square,
CPU and some other temps in degrees F using wmtemp in another wmdock,
RAM used, on top of swap used using Hardware Monitor--lots of RAM in use due to running virtual machine, swap use is shown after resume from hibernation,
CPU Frequency Monitor (lowest speed is 800MHz),
CPU Graph showing 12 threads and overall system usage.
Thanks so much for posting your sample, I'll give it a try.

Re: Display CPU/HD temperature on desktop

Posted: Thu Jun 17, 2021 8:05 am
by Real
Great thread. It actually made me decide to use just conky making my system more simple and easier to use while also giving me more room in the bar.