Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong disk temperature for ssd #568

Open
Tracked by #823
keikari opened this issue Aug 22, 2018 · 24 comments
Open
Tracked by #823

Wrong disk temperature for ssd #568

keikari opened this issue Aug 22, 2018 · 24 comments
Assignees
Milestone

Comments

@keikari
Copy link

keikari commented Aug 22, 2018

Temperature shown for my SSD (KINGSTON_SA400S37240G) is 97°C-98°C. When correct temp is usually 28°C-33°C. It shows correct temp for my HDD.
I hope this is correct place and way to inform this. (And correct program)
I have no idea what kind of info I should add.
selection_010

@tbzatek
Copy link
Member

tbzatek commented Aug 22, 2018

Could you please provide output of udisksctl dump and smartctl -a /dev/sda? Most likely this is either malformed SMART structure reported by the drive or some libatasmart issue. Nothing unusual sadly.

@keikari
Copy link
Author

keikari commented Aug 22, 2018

Here
smartctl_sda.txt
udisk_dump.txt

@tbzatek
Copy link
Member

tbzatek commented Aug 22, 2018

Thanks, so the drive actually provides two temperature attributes - SMART ID 194 (31 deg. C) and ID 231 (97). Looks like we either need to tweak the attribute priority or provide a quirk for this drive model.

@keikari
Copy link
Author

keikari commented Aug 22, 2018

I forgot to mention that my udisks version is 2.7.6, if it happens to matter (current fedora version)

@elpop
Copy link

elpop commented Jun 7, 2019

Disks_001
Same here:

[pop@pop ~]$ hddtemp /dev/sda
/dev/sda: KINGSTON SA400S37480G: 56°C
[pop@pop ~]$ sudo smartctl -a /dev/sda | grep 194
194 Temperature_Celsius 0x0022 044 060 000 Old_age Always - 56 (Min/Max 23/60)

but udisk2 show 100c

the values is for the parm 231 (SSD_Life_Left)

Exists a param (udisks2.conf) to asigne register 194 to the temp attribute?
all under Fedora 30, Kernel 5.1.6-300.fc30.x86_64 with udisks2 version 2.8.2-1.fc30.x86_64

@sharkguto
Copy link

same issue here with ubuntu 20.04

@seb128
Copy link
Contributor

seb128 commented Jul 7, 2020

The issue seems to be a libatasmart one, reported in https://bugs.freedesktop.org/show_bug.cgi?id=97446

There is an Ubuntu bug with some extra context and explanations where
Trent Nelson (trent-a-b-nelson) attached a patch to add a quirk
https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/1581594/comments/16

The freedesktop bugzilla is locked down but libatasmart doesn't seem to have migrated to gitlab, unsure what's the right way to get a fix landed there?

@t-nelson
Copy link

t-nelson commented Aug 1, 2020

👋

@boredazfcuk
Copy link

I'm seeing this too:
Patriot Burst Incorrect Temp

Smart is showing correct temperature:

>smartctl --all /dev/sda | grep "^190\|^194"
194 Temperature_Celsius     0x0023   067   067   000    Pre-fail  Always       -       33 (Min/Max 33/33)

...but udisksctl does not:

>udisksctl dump | grep "Model:\|SmartTemp"
    Model:                      Patriot Burst
    SmartTemperature:                           372.15000000000003
    Model:                      ST6000VN0033-2EE110
    SmartTemperature:                           301.15000000000003
    Model:                      TOSHIBA MQ01ABD050
    SmartTemperature:                           307.15000000000003
    Model:                      WDC WD40EFRX-68WT0N0
    SmartTemperature:                           298.15000000000003

@ghost
Copy link

ghost commented Aug 25, 2020

Got the same problem, it is always the same numbers in GNOME Disks even after the re-install of Arch.
Bildschirmfoto von 2020-08-25 17-01-57

@bayasdev
Copy link

bayasdev commented Nov 29, 2020

Same problem on Arch Linux
imagen

hddtemp reports correct readings
imagen

smartctl
imagen

Kingston A400 firmware is updated to version SBFKB1H5

@devbapidey
Copy link

devbapidey commented Jan 11, 2021

Same problem here. Confirmed in gnome-disk.

Getting

udisksctl info -d KINGSTON_Bla..Bla..Bla..
SmartTemperature: 362.15000000000003 ( I think that is kelvin? )

By the way gnome-disk show me 192 ℉ for kingston.

For WDC_Bla..Bla...
SmartTemperature: 309.15000000000003 getting 97℉ in gnome-disk.

Come on do fix it.

@mohamedation
Copy link

this is still an issue.

@michael-andreev
Copy link

Same problem with KINGSTON SA400S37120G on Ubuntu 20.04. Another drive (WDC WD60PURZ-85ZUFY1) shows correct temperature.

@chutetearer
Copy link

Same problem here too with a KINGSTON SA400S37480G on Mint 20.1 (Kernel Linux 5.4.0-65-generic x86_64)

@tbzatek
Copy link
Member

tbzatek commented Feb 16, 2021

See #433 for the status on this issue.

@Dirli
Copy link

Dirli commented Mar 9, 2021

it's about attribute 231:
It seems to me that the temperature does not give out correctly, or rather it does not give out the temperature. I use Vala and UDisks lib. When I output the attributes, I get the following output:
udisks_gigabyte
when I use smartmontools I get the following output
smart_gigabyte
the value itself is returned correctly if it is converted from Kelvin to Celsius.
This is confirmed on two ssd disks (Gigabyte, Smartbuy)

DriveAta.smart_temperature also gives the value of ssd life

@devbapidey
Copy link

devbapidey commented Mar 15, 2021

Thanks, so the drive actually provides two temperature attributes - SMART ID 194 (31 deg. C) and ID 231 (97). Looks like we either need to tweak the attribute priority or provide a quirk for this drive model.

@tbzatek when you are going to do it?

@mohamedation
Copy link

is there any progress on that? or a workaround?

@tbzatek
Copy link
Member

tbzatek commented Mar 30, 2022

is there any progress on that? or a workaround?

Not for the moment, still busy with the NVMe stuff (and lower layers).

@othqsa95
Copy link

othqsa95 commented Feb 7, 2023

Same problem here.

img_1_1675806476854

@tbzatek tbzatek added this to the udisks-2.11.0 milestone Apr 5, 2023
@scottbomb
Copy link

scottbomb commented Jul 8, 2023

Still seeing this in 22.04.

scottbomb@main:~/bin$ sudo udisksctl dump | grep "Model:\|SmartTemp"
    Model:                      ATAPI   iHAS124   F
    SmartTemperature:                           0.0
    Model:                      Hitachi HUS724040ALE641
    SmartTemperature:                           309.15000000000003
    Model:                      ST4000DM000-1F2168
    SmartTemperature:                           305.15000000000003
    Model:                      TOSHIBA DT01ACA200
    SmartTemperature:                           307.15000000000003
    Model:                      TOSHIBA THNSNC128GCSJ
    SmartTemperature:                           301.15000000000003
    Model:                      WDC WD40EZRX-00SPEB0
    SmartTemperature:                           306.15000000000003

Output from a script iterating over HDDs and reporting from smartctl -a

sda - system
194 Temperature_Celsius     0x0023   072   040   030    Pre-fail  Always       -       28 (Min/Max 16/60)

sdb - romulus
194 Temperature_Celsius     0x0022   119   099   000    Old_age   Always       -       33

sdc - kronos
190 Airflow_Temperature_Cel 0x0022   068   042   045    Old_age   Always   In_the_past 32 (0 44 36 30 0)
194 Temperature_Celsius     0x0022   032   058   000    Old_age   Always       -       32 (0 10 0 0 0)

sdd - earth
194 Temperature_Celsius     0x0002   176   176   000    Old_age   Always       -       34 (Min/Max 22/48)

sde - vulcan
194 Temperature_Celsius     0x0002   166   166   000    Old_age   Always       -       36 (Min/Max 25/44)

@Neural-network-N
Copy link

Neural-network-N commented Sep 25, 2023

Good evening!

I guess that I have the same issue. Psensor shows wrong SSD temperature. Is is the right thread?

Operating System: Manjaro Linux
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 5.15.131-1-MANJARO (64-bit)
Graphics Platform: X11

image

@tbzatek
Copy link
Member

tbzatek commented Jan 25, 2024

Reporters (@keikari, @elpop, @sharkguto, @boredazfcuk, @ghost, @bayasdev, @devbapidey, @mohamedation, @michael-andreev, @chutetearer, @Dirli, @othqsa95, @scottbomb, @Neural-network-N):

Could you provide me a skdump /dev/xxx --save=xxx.bin binary dumps for testing please? Every drive is different and I would like to see what exact attributes we need quirks for.

Also FYI storaged-project/libblockdev#835

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests