I could sponsor this change for you as it looks sane in this case, but I'm a bit concerned that it's not the right way to go. I think the right way is per what smartmontols-devel reply was, i.e. that we should actually, in case of multiple temperature readings, should prefer the one that's more common - and in that case treat the other attribute as another value. I'm simply worried that this change could affect some of those older HDDs that actually used 231 only to denote temperature. Do we know if those won't get affected?
-- 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: Unknown Status in libatasmart package in Ubuntu: In Progress Status in libatasmart source package in Trusty: New Status in libatasmart source package in Xenial: New Status in libatasmart source package in Yakkety: New 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/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