Sorry for the late reply Martin... my bugs mailbox has gotten quite backed up. I emailed smartmontols-devel about the issue and their response was:
There likely was some historic HDD which used attribute 231 for temperature (same for 9 and 220). And yes, there are devices which report temperature in more than one attribute. They went on to say they would probably change smartmontools to prefer the more common attribute and I thought that libatasmart should follow suit. Will create the upstream bug report, though the last one or two I have created with patches attached have gone ignored there for years so... -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to libatasmart in Ubuntu. https://bugs.launchpad.net/bugs/1581594 Title: constantly shows wrong temperature (99°C ) Status in libatasmart package in Ubuntu: Incomplete Bug description: Hello, here's my system info ~$ lsb_release -rd Description: Ubuntu 16.04 LTS Release: 16.04 ~$ apt-cache policy udisks2 udisks2: Installed: 2.1.7-1ubuntu1 Candidate: 2.1.7-1ubuntu1 Version table: *** 2.1.7-1ubuntu1 500 500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages 100 /var/lib/dpkg/status Here's the problem: udisks2 constantly shows that my ssd temperature is 99°C (210°F), but in reality it's 30°C ~$ sudo smartctl -A /dev/sda smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-22-generic] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000b 100 100 050 Pre-fail Always - 0 9 Power_On_Hours 0x0012 100 100 000 Old_age Always - 24 12 Power_Cycle_Count 0x0012 100 100 000 Old_age Always - 51 168 Unknown_Attribute 0x0012 100 100 000 Old_age Always - 0 170 Unknown_Attribute 0x0003 100 100 010 Pre-fail Always - 231 173 Unknown_Attribute 0x0012 100 100 000 Old_age Always - 65539 192 Power-Off_Retract_Count 0x0012 100 100 000 Old_age Always - 23 194 Temperature_Celsius 0x0023 070 070 030 Pre-fail Always - 30 (Min/Max 30/30) 218 Unknown_Attribute 0x000b 100 100 050 Pre-fail Always - 0 231 Temperature_Celsius 0x0013 100 100 000 Pre-fail Always - 99 241 Total_LBAs_Written 0x0012 100 100 000 Old_age Always - 337 in the GUI app ("Disks") it shows the wrong temperature too. hddtemp works well though: ~$ sudo hddtemp /dev/sda /dev/sda: PNY EU SSD CS1311 240GB: 30°C To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/1581594/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp