SUMMARY External drives connected via USB have the "SMART Status" option greyed-out. EXPECTED RESULT smartctl suggests using the `-d sat` option for external drives: https://unix.stackexchange.com/questions/39064/smartctl-on-external-hdd-inside-ide-to-usb-enclosure#109736 SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.19.4 KDE Frameworks Version: 5.72.0 Qt Version: 5.15.0 Kernel Version: 5.7.12-zen
Hmm, I don't have any devices that support that. So it would be a bit hard for me to test... If you have some patch that works for you, merge request would be ideal. But I understand that this is not always possible.
It is unlikely I will be able to figure it out, but could you point me to the relevant bits in the code? I tried looking, but the GUI files seem to include a `smartstatus.h` that I'm unable to find. Could you help me out?
(In reply to physkets from comment #2) > It is unlikely I will be able to figure it out, but could you point me to > the relevant bits in the code? > > I tried looking, but the GUI files seem to include a `smartstatus.h` that > I'm unable to find. Could you help me out? Those files are here https://invent.kde.org/system/kpmcore/-/tree/master/src/core There are four .cpp files dealing with smart. smartstatus.cpp displays all that info that GUI requests. It's probably a bit higher level stuff than you need. But you can take a brief look smartparser.cpp on the other hand runs smartctl command in function void SmartParser::loadSmartOutput() adding option -d sat there might immediately help you with your drive but it likely breaks other SMART drives.
(In reply to Andrius Štikonas from comment #3) > (In reply to physkets from comment #2) > > It is unlikely I will be able to figure it out, but could you point me to > > the relevant bits in the code? > > > > I tried looking, but the GUI files seem to include a `smartstatus.h` that > > I'm unable to find. Could you help me out? > > Those files are here > https://invent.kde.org/system/kpmcore/-/tree/master/src/core > > There are four .cpp files dealing with smart. > > smartstatus.cpp displays all that info that GUI requests. It's probably a > bit higher level stuff than you need. But you can take a brief look > > smartparser.cpp on the other hand runs smartctl command in function > void SmartParser::loadSmartOutput() > > adding option -d sat there might immediately help you with your drive but it > likely breaks other SMART drives. Hmm, I briefly read man smartctl. It might be better to use -d sat,auto