Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NVME temperature reporting #518

Closed
erpalma opened this issue Apr 4, 2018 · 4 comments
Closed

NVME temperature reporting #518

erpalma opened this issue Apr 4, 2018 · 4 comments

Comments

@erpalma
Copy link

erpalma commented Apr 4, 2018

Hello, It would be very useful if udisks supports reading the temperature of NVME drives. Right now the only way is to use smartctl or nvme which both lack DBus:

# nvme smart-log /dev/nvme0n1
Smart Log for NVME device:nvme0n1 namespace-id:ffffffff
critical_warning                    : 0
temperature                         : 39 C
available_spare                     : 100%
available_spare_threshold           : 10%
percentage_used                     : 0%
...
Warning Temperature Time            : 0
Critical Composite Temperature Time : 0
Temperature Sensor 1                : 39 C
Temperature Sensor 2                : 48 C
Thermal Management T1 Trans Count   : 0
Thermal Management T2 Trans Count   : 0
Thermal Management T1 Total Time    : 0
Thermal Management T2 Total Time    : 0
@vpodzime
Copy link
Contributor

vpodzime commented Apr 5, 2018

Isn't it part of the SMART data for the device? udisks already provides that.

@vojtechtrefny
Copy link
Member

This is probably duplicate of #386 Temperature is reported in the org.freedesktop.UDisks2.Drive.Ata interface but it doesn't work for NVME drives (the interface is missing).

@erpalma Can you please send output of udisksctl info --drive YOUR_DRIVE (completion should work for the drive name, or it should be visible in udisksctl info --block-device /dev/nvme0n1 property Drive). Thanks.

@erpalma
Copy link
Author

erpalma commented Apr 5, 2018

Here is the output of udisksctl info --drive Samsung_SSD_960_EVO_1TB_************:

/org/freedesktop/UDisks2/drives/Samsung_SSD_960_EVO_1TB_************:
  org.freedesktop.UDisks2.Drive:
    CanPowerOff:                false
    Configuration:              {}
    ConnectionBus:
    Ejectable:                  false
    Id:                         Samsung-SSD-960-EVO-1TB-************
    Media:
    MediaAvailable:             true
    MediaChangeDetected:        true
    MediaCompatibility:
    MediaRemovable:             false
    Model:                      Samsung SSD 960 EVO 1TB
    Optical:                    false
    OpticalBlank:               false
    OpticalNumAudioTracks:      0
    OpticalNumDataTracks:       0
    OpticalNumSessions:         0
    OpticalNumTracks:           0
    Removable:                  false
    Revision:
    RotationRate:               0
    Seat:                       seat0
    Serial:                     ************
    SiblingId:
    Size:                       1000204886016
    SortKey:                    00coldplug/00fixed/nvme0n1
    TimeDetected:               1522796939887389
    TimeMediaDetected:          1522796939887389
    Vendor:
    WWN:                        eui.************

@vojtechtrefny
Copy link
Member

Thank you. There is no Disk.ATA interface so this is definitely duplicate of #386. I'll try to look at the original issue again soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants