• Important: We recently upgraded our forum software - please let us know if you run into any issues.

hddtemp always displays 50c in conky - Stretch - Mate

bj53kjh

New Member
I have a DELL e6330 Lattitude with a 500GB Samsung EVO 850 SSD.

When I first installed the SSD, hddtemp would not display anything in the conky window. To troubleshoot, I ran hddtemp /dev/sda from the command line. It stated that it could not find a temperature sensor. Then I checked the web for similar errors and located two different things that needed to be reconfigured. The first required running #dpkg-reconfigure hddtemp to run hddtemp as root on startup. The second required editing /etc/hddtemp.db to get hdd temp to read the correct port on the SSD, by adding the following line.

"Samsung SSD 850 EVO 500G B" 190 C "Samsung SSD 850 EVO 500G B"

After that, hddtemp was able to read the correct temperature from the SSD, as follows.

#hddtemp /dev/sda
/dev/sda: Samsung SSD 850 EVO 500G B �@: 37°C

I tried this a couple of times; and the temperature did indeed vary, like it should. Unfortunately, conky would only display 50c, all the time. This is an improvement, as originally, it wouldn't display anything in the conky window for hddtemp. So, now hddtemp works from the command line; but will not display correctly in the conky window. Here's the relevant line from my .conkyrc.

CPU Temp: ${acpitemp}°C HDD Temp: ${execi 2 hddtemp /dev/sda | cut -c 31-32}°C

I basically just need conky to read and display the value that hddtemp is already correctly reading.
 


wizardfromoz

Super Moderator
Staff member
Gold Supporter
Hi @bj53kjh and welcome to linux.org :)

I expect someone more expert in conkies than I will be along sooner or later, but I have a Debian 'Stretch' 9 MATE, in my stable so maybe I can tag along and see what is happening here?

Do I take it that you have installed a conky from outside the Repos, hence the ,conkyrc, else you might be using /etc/conky/conky.conf ?

Also can you give us a representative output from

Code:
sensors
?

Cheers

Chris Turner
wizardfromoz
 

bj53kjh

New Member
No, I place my custom rc in ~./, just like back in the day. This overides the default.

I installed conky-manager from the repo. It pulls in everything.

My rc:

# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# tail of /var/log/messages (TRY USING TAIL VARIABLE INSTEAD OF SHELL TAIL)
# netstat connections to your computer
#
# Pengo ([email protected])

#GENERAL STUFF
double_buffer yes
use_spacer none
update_interval 1.3
background yes
out_to_console no
total_run_times 0

#WINDOW STUFF
own_window yes
own_window_transparent yes
own_window_type normal #override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 0
own_window_colour black

#COLOR STUFF

default_color white
default_shade_color black
default_outline_color black

#TEXT AREA STUFF
minimum_size 200 200
maximum_width 260

#BORDER STUFF
draw_shades no
draw_outline no
draw_borders no

#FONT STUFF
use_xft yes
xftfont Bitstream Vera Sans Mono:size=8
xftalpha 0.8
uppercase no

#TEXT ALIGNMENT STUFF
alignment top_right
gap_x 10 #Horizontal Gap between borders of screen and text
gap_y 10 #Vertical Gap between borders of screen and text


#TEXT TO BE DISPLAYED IN CONKY WINDOW
##################################################

TEXT
$color
${color magenta}SYSTEM ${hr 2}$color
$sysname $kernel
Max Temperature: CPU 95°C HDD 60°C
CPU Temp: ${acpitemp}°C HDD Temp: ${execi 2 hddtemp /dev/sda | cut -c 31-32}°C
Load: ${loadavg}

${color yellow}Core 0: ${hr 2}$color
Freq: ${freq 1}MHz
${cpubar cpu1 8,70}
${color red}Core 1: ${hr 2}$color
Freq: ${freq 2}MHz
${cpubar cpu2 8,70}
${color yellow}Core 2: ${hr 2}$color
Freq: ${freq 3}MHz
${cpubar cpu3 8,70}
${color red}Core 3: ${hr 2}$color
Freq: ${freq 4}MHz
${cpubar cpu4 8,70}

NAME PID CPU% MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
${top name 7} ${top pid 7} ${top cpu 7} ${top mem 7}
${top name 8} ${top pid 8} ${top cpu 8} ${top mem 8}

${color yellow}MEMORY / DISK ${hr 2}$color
RAM: $memperc% ${membar 6}$color
Swap: $swapperc% ${swapbar 6}$color

${color yellow}NETWORK (${addr wlan0}) ${hr 2}$color
Down: $color${downspeed wlan0} Up: ${upspeed wlan0}
${downspeedgraph wlan0 25,115 000000 ff0000} ${alignr}${upspeedgraph wlan0 25,115 000000 00ff00}$color
Total: ${totaldown wlan0} Total: ${totalup wlan0}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count}${alignr} Total: ${tcp_portmon 1 65535 count}
#wlan0 eth0 wlan1 eth1 ppp0 virbr0 wlp2s0

CLI:

#hddtemp /dev/sda
/dev/sda: Samsung SSD 850 EVO 500G B �@: 38°C

Please see the attached photo of my conky window for comparison. It displays 50°C.

#sensors not that helpful:

#sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +60.0°C (high = +87.0°C, crit = +105.0°C)
Core 0: +59.0°C (high = +87.0°C, crit = +105.0°C)
Core 1: +59.0°C (high = +87.0°C, crit = +105.0°C)

acpitz-virtual-0
Adapter: Virtual device
temp1: +71.5°C (crit = +107.0°C)

dell_smm-virtual-0
Adapter: Virtual device
Processor Fan: 3128 RPM
CPU: +59.0°C
Ambient: +47.0°C
SODIMM: +42.0°C
 

Attachments

Top