HarlemSquirrel / gnome-shell-extension-sensory-perception

Displays CPU/GPU/mobo/disk temperatures, voltages and fan speeds
https://extensions.gnome.org/extension/1145/sensory-perception/
GNU General Public License v3.0
27 stars 11 forks source link

Latest update killed functionality to show sensor data #5

Closed George1896 closed 5 years ago

George1896 commented 5 years ago

sensory perception worked fine until installing the latest update two day ago. It still shows SSD temp but no more CPU temp or fan rpm.

lm-sensors is installed and "sensors" output is like this:

~$ sensors atk0110-acpi-0 Adapter: ACPI interface Vcore Voltage: +1.04 V (min = +0.85 V, max = +1.60 V) +3.3 Voltage: +3.38 V (min = +2.97 V, max = +3.63 V) +5 Voltage: +5.12 V (min = +4.50 V, max = +5.50 V) +12 Voltage: +12.16 V (min = +10.20 V, max = +13.80 V) CPU FAN Speed: 1285 RPM (min = 600 RPM, max = 7200 RPM) CHASSIS FAN Speed: 0 RPM (min = 600 RPM, max = 7200 RPM) POWER FAN Speed: 0 RPM (min = 600 RPM, max = 7200 RPM) CPU Temperature: +37.0°C (high = +60.0°C, crit = +95.0°C) MB Temperature: +36.0°C (high = +45.0°C, crit = +95.0°C)

sudo journalctl | grep sensory-perception Okt 31 12:42:59 xxx gnome-shell[1251]: sensory-perception@HarlemSquirrel.github.io: DEBUG Attempting to find sensors in path Okt 31 12:43:35 xxx gnome-shell-ext[2286]: JS LOG: sensory-perception@HarlemSquirrel.github.io: DEBUG Attempting to find sensors in path Okt 31 12:44:46 xxx gnome-shell-ext[2354]: JS LOG: sensory-perception@HarlemSquirrel.github.io: DEBUG Attempting to find sensors in path Okt 31 12:45:36 xxx gnome-shell-ext[2587]: JS LOG: sensory-perception@HarlemSquirrel.github.io: DEBUG Attempting to find sensors in path Okt 31 12:54:25 xxx gnome-shell-ext[2587]: JS LOG: sensory-perception@HarlemSquirrel.github.io: DEBUG Attempting to find sensors in path

HarlemSquirrel commented 5 years ago

Thank you for reporting this @George1896.

I think 4d23e7a53fe8c8e5cc5d318fb09b928ae44508e6 should fix this. Are you able to test from the master branch?

nathansamson commented 5 years ago

I have the same problem, updated (which should include the fix from master), but still an issue

nathansamson commented 5 years ago
sensors
ath10k_hwmon-pci-0200
Adapter: PCI adapter
temp1:        +41.0°C  

dell_smm-virtual-0
Adapter: Virtual device
Processor Fan: 2517 RPM
Video Fan:     2498 RPM
CPU:            +59.0°C  
Ambient:        +52.0°C  
Ambient:        +48.0°C  
Other:          +37.0°C  

acpitz-virtual-0
Adapter: Virtual device
temp1:        +25.0°C  (crit = +107.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +54.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:        +51.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:        +54.0°C  (high = +100.0°C, crit = +100.0°C)
Core 2:        +52.0°C  (high = +100.0°C, crit = +100.0°C)
Core 3:        +52.0°C  (high = +100.0°C, crit = +100.0°C)

pch_skylake-virtual-0
Adapter: Virtual device
temp1:        +56.5°C  
becquerel commented 5 years ago

it fixed the problem for me

@nathansamson maybe try reloading gnome ? It did the trick for me, ALT + F2, type r and [ENTER]

George1896 commented 5 years ago

@HarlemSquirrel

Sorry for my late reply.

I removed the extension, did a git clone yesterday and tried your changes. They work fine for me now.

Thank you for fixing it :)

nathansamson commented 5 years ago

@becquerel Today it works, i assume restarting gnome shell as you suggested might have helped as well. Bit weird that a reinstall (which removed the error from my bar even for a few seconds) did not have the same effect

HarlemSquirrel commented 5 years ago

Thank you for confirming the fix! v7 includes the fix and should now be available through the GNOME extensions page.

GNOME does not seem to do a good job of reloading extensions when they change. Running on Xorg instead of Wayland enables restarting the shell with [Alt] + [F2] and entering "r".