Usando o nvme-cli, posso obter a temperatura de um Samsung 950 Pro com este comando:
nvme smart-log /dev/nvme0 | grep "^temperature"
Você também pode obter outras informações:
nvme smart-log /dev/nvme0
Smart Log for NVME device:nvme0 namespace-id:ffffffff
critical_warning : 0
temperature : 45 C
available_spare : 100%
available_spare_threshold : 10%
percentage_used : 0%
data_units_read : 3,020,387
data_units_written : 2,330,810
host_read_commands : 26,960,077
host_write_commands : 15,668,236
controller_busy_time : 65
power_cycles : 98
power_on_hours : 281
unsafe_shutdowns : 68
media_errors : 0
num_err_log_entries : 63
Warning Temperature Time : 0
Critical Composite Temperature Time : 0
Nota: usando o kernel 4.6.4
Para o acesso dos usuários:
/ etc / sudoers
# For users group
%users ALL = NOPASSWD: nvme smart-log /dev/nvme0 | grep "^temperature"
# For all
ALL ALL = NOPASSWD: nvme smart-log /dev/nvme0 | grep "^temperature"