Hddtemp vs drivetemp

Hi !
I find this on a debian package comment:

hddtemp (0.3-beta15-54) unstable; urgency=medium
hddtemp has been dead upstream for many years and is therefore in a minimal
maintenance mode. It will be shipped in the Debian Bullseye release, but
will not be present in the Debian Bookworm release.
Nowadays the ‘drivetemp’ kernel module is a better alternative. It uses the
Linux Hardware Monitoring kernel API (hwmon), so the temperature is returned
the same way and using the same tools as other sensors.
Loading this module is as easy as creating a file in the /etc/modules-load.d
directory:

# echo drivetemp > /etc/modules-load.d/drivetemp.conf

– Aurelien Jarno aurel32@debian.org Tue, 02 Feb 2021 20:27:44 +0100

Will this also be a Manjaro evolution ?

Interesting. The module seem to be available in the 5.11 kernel at least. I just modprobed it.

Now running sensors also show this for my drives:

drivetemp-scsi-5-0
Adapter: SCSI adapter
temp1:        +35.0°C  (lowest = +22.0°C, highest = +35.0°C)

nvme-pci-0700
Adapter: PCI adapter
Composite:    +40.9°C  (low  = -273.1°C, high = +84.8°C)
                       (crit = +84.8°C)
Sensor 1:     +40.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +45.9°C  (low  = -273.1°C, high = +65261.8°C)

Not sure how reliable the high = 65K degrees celcius is though. :wink:

It could be (depending on the sensor’s quality) as I see that the low is 0.05°C above absolute zero. :nerd_face:

How did you implement it ? (I’m absolute noob in kernel module use)

If your kernel supports it, simply do:

sudo modprobe drivetemp
sensors should now show the drive temps.

1 Like
[sum@ordi1 ~]$ sensors
nouveau-pci-0100
Adapter: PCI adapter
GPU core:    850.00 mV (min =  +0.85 V, max =  +1.03 V)
temp1:        +55.0°C  (high = +95.0°C, hyst =  +3.0°C)
                       (crit = +105.0°C, hyst =  +5.0°C)
                       (emerg = +135.0°C, hyst =  +5.0°C)

BAT0-acpi-0
Adapter: ACPI interface
in0:          12.39 V  

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +62.0°C  (high = +86.0°C, crit = +100.0°C)
Core 0:        +62.0°C  (high = +86.0°C, crit = +100.0°C)
Core 1:        +61.0°C  (high = +86.0°C, crit = +100.0°C)

asus-isa-0000
Adapter: ISA adapter
cpu_fan:     2500 RPM
temp1:        +60.0°C  

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +60.0°C  (crit = +103.0°C)

[sum@ordi1 ~]$ sudo modprobe drivetemp
[sum@ordi1 ~]$ sensors
drivetemp-scsi-0-0
Adapter: SCSI adapter
temp1:        +35.0°C  (low  =  -5.0°C, high = +80.0°C)
                       (crit low = -10.0°C, crit = +85.0°C)
                       (lowest = +18.0°C, highest = +36.0°C)

nouveau-pci-0100
Adapter: PCI adapter
GPU core:    850.00 mV (min =  +0.85 V, max =  +1.03 V)
temp1:        +54.0°C  (high = +95.0°C, hyst =  +3.0°C)
                       (crit = +105.0°C, hyst =  +5.0°C)
                       (emerg = +135.0°C, hyst =  +5.0°C)

BAT0-acpi-0
Adapter: ACPI interface
in0:          12.39 V  

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +60.0°C  (high = +86.0°C, crit = +100.0°C)
Core 0:        +60.0°C  (high = +86.0°C, crit = +100.0°C)
Core 1:        +60.0°C  (high = +86.0°C, crit = +100.0°C)

asus-isa-0000
Adapter: ISA adapter
cpu_fan:     2500 RPM
temp1:        +60.0°C  

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +60.0°C  (crit = +103.0°C)

[sum@ordi1 ~]$ 

What about the Debian’s suggestion on /etc/modules-load.d/drivetemp.conf ?

That will just load the module on every boot. :slight_smile: So making it permanent.

1 Like

Well, I’ll make it permanent ! :slightly_smiling_face:

Thanks for caring on the subject !

By the way, what happens to hddtemp with all this ? Will still be used ?

No idea really. If you don’t want it used, you could probably just uninstall it.

Well, it was not installed !

[edit] seems to be available from 5.6 on : Configure kernel 5.6+ SATA drive temperature for HWMON | amedeos home

1 Like

I didn’t like it when I tested it (no easy way to differentiate what drive (I have 2 SSD, 1 spinner) was reporting what.

See my ETA.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.