Bug 498091

Summary: Incorrect S.M.A.R.T. attribute interpretation
Product: [Applications] partitionmanager Reporter: tsichrinischris
Component: generalAssignee: Andrius Štikonas <andrius>
Status: REPORTED ---    
Severity: minor    
Priority: NOR    
Version First Reported In: 22.12.3   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tsichrinischris 2024-12-31 15:24:00 UTC
SUMMARY
The S.M.A.R.T. attribute with ID 231 (0xE7) is reported as the drive temperature, while for most modern drives it should be the the life left percentage

STEPS TO REPRODUCE
1. Open K.D.E. partition editor
2. Select a SSD that reports this attribute
3. Go to Device > SMART status and scroll all the way down to ID 231

OBSERVED RESULT
The attribute is reported as the drive's temperature

EXPECTED RESULT
The attribute should be reported as the life left of the drive, in terms of program/erase cycles or available reserved blocks. A value of 100 should be reported for new drives and values close to 0 indicate a drive that is about to fail. A value of 0 may also mean that the drive is operating in read-only mode to allow data recovery.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian GNU/Linux 12, Kernel version: 6.1.0-28-amd64 (64-bit)
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
I've located the issue of this bug at KPMCore/src/core/smartattribute.cpp, line 166 (https://invent.kde.org/system/kpmcore/-/blob/master/src/core/smartattribute.cpp?ref_type=heads#L166)