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

temperature reporting as 0 #583

Closed
mirocw opened this issue Oct 15, 2023 · 8 comments · Fixed by #586
Closed

temperature reporting as 0 #583

mirocw opened this issue Oct 15, 2023 · 8 comments · Fixed by #586

Comments

@mirocw
Copy link

mirocw commented Oct 15, 2023

Fill out information requested in this template, without doing so issue will be ignored & closed!

My cpu on battery is locked to min cpu freq of 1.2ghz

Have you tried?

powersave-mode.mp4

Error output:

Add/paste error output in case of failed installation or other failing component

System information:

Add/paste output of:

auto-cpufreq --debug

Using settings defined in /etc/auto-cpufreq.conf file

-------------------------------------------------------------------------------

Linux distro: Linux Mint 21.2 Victoria
Linux kernel: 5.15.0-86-generic
Processor: AMD Ryzen 5 5600H with Radeon Graphics
Cores: 12
Architecture: x86_64
Driver: acpi-cpufreq

------------------------------ Current CPU stats ------------------------------

CPU max frequency: 3300 MHz
CPU min frequency: 1200 MHz

Core	Usage	Temperature	Frequency
CPU0      0.0%         0 °C      1200 MHz
CPU1      0.0%         0 °C      1200 MHz
CPU2      2.0%         0 °C      1200 MHz
CPU3      0.0%         0 °C      1200 MHz
CPU4      0.0%         0 °C      1197 MHz
CPU5      0.0%         0 °C      1200 MHz
CPU6      1.0%         0 °C      1200 MHz
CPU7      1.0%         0 °C      1200 MHz
CPU8      4.0%         0 °C      1200 MHz
CPU9      6.8%         0 °C      1200 MHz
CPU10      1.0%         0 °C      1200 MHz
CPU11      2.0%         0 °C      1196 MHz

auto-cpufreq version: 2.0.0 (git: 5bf295d)

Python: 3.10.12
psutil package: 5.9.5
platform package: 1.0.8
click package: 8.1.7
distro package: 1.8.0

Computer type: Notebook
Battery is: discharging

auto-cpufreq system resource consumption:
cpu usage: 0.0 %
memory use: 0.19 %

Total CPU usage: 2.4 %
Total system load: 5.96
Average temp. of all cores: 0.00 °C 

Currently using: powersave governor
Currently turbo boost is: off

Also please be descriptive about the issue you're reporting, i.e: what you tried & what's the expected behaviour.

--- also for some reason, after the update, my cpu temperatures are not displayed, on 1.9.4 were working fine, but on 1.9.8 and on 2.00 are not displayed.

@mirocw
Copy link
Author

mirocw commented Oct 15, 2023

So, I was able to "fix" it by switching the governor on battery from "powersave" to "conservative" #398 (comment)

@mirocw
Copy link
Author

mirocw commented Oct 15, 2023

Also what about not displaying cpu temperature @AdnanHodzic ? should I open new issue for that?

@shadeyg56
Copy link
Collaborator

Hey @mirocw, we had an issue recently with temperatures that got fixed but I haven't seen this where it returns 0

Could you do me a favor and run the following commands and post the output?

pip install psutil
python
import psutil
psutil.sensors_temperatures()

@mirocw
Copy link
Author

mirocw commented Oct 18, 2023

@shadeyg56

$ pip install psutil
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: psutil in /usr/lib/python3/dist-packages (5.9.0)
$ python3
Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>>`psutil.sensors_temperatures()
{'acpitz': [shwtemp(label='', current=0.0, high=110.0, critical=110.0)], 'nvme': [shwtemp(label='Composite', current=37.85, high=82.85, critical=83.85), shwtemp(label='Sensor 1', current=30.85, high=65261.85, critical=65261.85), shwtemp(label='Sensor 2', current=31.85, high=65261.85, critical=65261.85)], 'amdgpu': [shwtemp(label='edge', current=37.0, high=None, critical=None)], 'k10temp': [shwtemp(label='Tctl', current=40.125, high=None, critical=None)], 'iwlwifi_1': [shwtemp(label='', current=33.0, high=None, critical=None)]}
>>>

The thing is, the temperature were displayed fine in 1.9.4 version, and after an update to 1.9.8 (maybe 2-3 month ago) they stopped showing, but also maybe around that time I've upgraded from Linux Mint 21.1, to 21.2. Maybe that's the problem or maybe kernel updates?
I updated to version 2.0 a few days ago.

@shadeyg56
Copy link
Collaborator

{'acpitz': [shwtemp(label='', current=0.0, high=110.0, critical=110.0)]

Alright so acpitz should be your cpu temp reported by acpi but for some reason it is reporting it as 0. If i had to guess, I would say this is something to do with the kernel. I run bleeding edge kernel so I am not sure.

I'm not very familiar with Mint, is there a way you can rollback or update your kernel?

@mirocw
Copy link
Author

mirocw commented Oct 22, 2023

{'acpitz': [shwtemp(label='', current=0.0, high=110.0, critical=110.0)]

Alright so acpitz should be your cpu temp reported by acpi but for some reason it is reporting it as 0. If i had to guess, I would say this is something to do with the kernel. I run bleeding edge kernel so I am not sure.

I'm not very familiar with Mint, is there a way you can rollback or update your kernel?

yes, i've tried numerous kernels form 5.15, 5.19, 6.2. All of them don't report temperature. For me personally it's not a big deal, since I have an applet for temperatures that pull cpu temp from "k10temp" sensor

@shadeyg56
Copy link
Collaborator

shadeyg56 commented Oct 23, 2023

For me personally it's not a big deal, since I have an applet for temperatures that pull cpu temp from "k10temp" sensor

I'd still like to get this fixed. I can make a workaround where if a sensor is reporting 0 it won't use that one and will skip to the next one. In your case, auto-cpufreq would skip from acpitz to k10temp

@shadeyg56 shadeyg56 changed the title CPU locked at min on battery. temperature reporting as 0 Oct 24, 2023
@shadeyg56
Copy link
Collaborator

Should be fixed by #586

Please pull the latest changes and run the installer script

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

Successfully merging a pull request may close this issue.

2 participants