-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Doesn't show ssd nvme (udisk2) temperature sensor #129
Comments
Confirmed on Debian 11 with mate-sensors-applet 1.24.1-1. It does not show the temperature of my NVME SSD.
into Command field. Note: |
If the problem is in libatasmart there's nothing we can do about it here. That said, the issue report at Rupan/libatasmart#9 says it could fix this and similar problems in several other packages |
I don't think so. this problem has been unresolved for years. was reported on 2016-05-13 with no solution until today https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/1581594 |
If they won't fix it, we cannot fix it for them unless someone want to reimplement their work or find a way to bypass it. I don't know enough about reading the sensors to implement such a workaround myself. Looks like libatasmart in turn is choking on a problem in udisks2. Anyone able to code a fix should submit it as a PR to libatasmart instead of waiting for them to fix it. As a DE with a small team, we don't have the peoplepower to fork things like libatasmart much less udisks2 over this. I get these errors in the output of running nvme-pci-0100 |
check this alternative storaged-project/udisks#433 |
If we talk about I have also reported storaged-project/udisks#1163 to udisks2 about temperature of NVME drives. Udisks2 does not read temperature of NVME drive, so it seems that udisks2-plugin.c of mate-sensors-applet works correctly (there is no data = nothing to show). |
I have digged a bit deeper and now I see the following on my Debian 11: $ sensors iwlwifi_1-virtual-0 Adapter: Virtual device temp1: +30.0°C nvme-pci-0100 Adapter: PCI adapter Composite: +28.9°C (low = -273.1°C, high = +81.8°C) (crit = +84.8°C) Sensor 1: +28.9°C (low = -273.1°C, high = +65261.8°C) Sensor 2: +29.9°C (low = -273.1°C, high = +65261.8°C) acpitz-acpi-0 Adapter: ACPI interface temp1: +35.0°C (crit = +100.0°C) coretemp-isa-0000 Adapter: ISA adapter Package id 0: +32.0°C (high = +100.0°C, crit = +100.0°C) Core 0: +30.0°C (high = +100.0°C, crit = +100.0°C) Core 1: +32.0°C (high = +100.0°C, crit = +100.0°C) Core 2: +30.0°C (high = +100.0°C, crit = +100.0°C) Core 3: +31.0°C (high = +100.0°C, crit = +100.0°C) BAT1-acpi-0 Adapter: ACPI interface in0: 11.02 V curr1: 799.00 mA means that user can view NVME temperature as Composite without any additional coding and so on: I see this behavior on one modern 11th intel laptop and two desktops (11th intel and AMD Ryzen 5700G). |
Great. I guess since these values are constantly changing and the refresh rate of "composite" is not every second, I think your solution works. But this solution only applies to NVMe SSDs (not SATA SSDs). That's why I have to use this script, so that it alerts if the temperature rises above the value that I set (variable degrees=50) (program it in cron). Tested in Ubuntu 22.04 https://raw.githubusercontent.com/maravento/vault/master/scripts/bash/disktemp.sh |
No idea what composite means. I think sensor 1 or 2 are valid and i use sensor 2 for displaying the temp in sensor-applet. |
Btw. sata disk temps are displayed with udisk2 in applet since more than many years. |
Composite means kind of average of multiple sensors on the drive, if any. UDisks provides this value as the primary |
And that is precisely why this issue is still open. Because the value provided by udisk2 does not correspond to reality and is always 98% or 100% with sata ssd. |
That's storaged-project/udisks#568 on a short-term TODO list. |
another bug reported in 2018 and we are in 2023 with no solution... PS: If I knew what the solution is, I would have already pushed a pull request, but unfortunately I don't know how to fix it. That's why I posted a workaround bash script #129 (comment) |
Hmm,
So, it seems it is hardware specific. |
That falls under the "Feel free to open a pull request" category since 2019: storaged-project/udisks#433 (comment)
Agree, the SATA SSD temperature will be fixed in UDisks and requires no change in |
At least, as N0rbert says in #129 (comment). This is a great advance. |
good, closing. |
This has been fixed in an independent fork of the original lib that it is not currently recognized as official upstream by maintainers at https://github.com/libatasmart/libatasmart. |
Expected behaviour
Actual behaviour
Doesn't show ssd nvme pcie m.2 (udisk2) temperature sensor
On another computer with Ubuntu Mate 22.04.1 and sata3 ssd disk
these data of the temperature of a SATA SSD are incorrect. it says 100 degrees celsius all time, and crystaldiskinfo (win) and hddtemp, inxi (linux) says 24°C.
Related link: https://bugs.launchpad.net/ubuntu/+source/libatasmart/+bug/1581594
MATE general version
1.26.0
Linux Distribution
Ubuntu Mate 22.04.1
The text was updated successfully, but these errors were encountered: