Comments (12)
Not a problem, I appreciate the help and quick responses! I'll be sure to stick around for future development! :)
Running powerplan --version
works as intended now, though showing a warning, seemingly about my battery: Warning: Kernel: ACPI_BATTERY_VALUE_UNKNOWN when reading /sys/class/power_supply/BAT1/power_now.
- If this is too off-topic (and if it's even a problem at all) I can close this and start a new issue if needed!
from powerplan.
Thanks :)
The output:
{'acpitz': [shwtemp(label='', current=28.0, high=226.8, critical=226.8),
shwtemp(label='', current=20.0, high=None, critical=None)],
'amdgpu': [shwtemp(label='edge', current=27.0, high=None, critical=None)],
'k10temp': [shwtemp(label='Tctl', current=28.25, high=None, critical=None),
shwtemp(label='Tdie', current=28.25, high=None, critical=None)],
'nvme': [shwtemp(label='Composite', current=25.85, high=81.85, critical=84.85),
shwtemp(label='Sensor 1', current=25.85, high=65261.85, critical=65261.85)]}
from powerplan.
One last question I have is, how should I find the names of frequency governors for powerplan?
You can run:
powerplan --system
The section called governors enlists all the frequency governors supported by your CPU and scaling driver (the kernel driver that tells your CPU how to behave in terms of performance/load) combo.
from powerplan.
This is my first issue on Github, apologies if there are any formatting errors. :)
Don't worry, your info is well presented 👍
Hmm, can you show me your output of this:
python -c "import psutil;import pprint;pprint.pprint(psutil.sensors_temperatures())"
from powerplan.
It appears there's no critical temp value available for the sensor used with your CPU. This should be fixed now ^^
from powerplan.
I'll give it a test! - I'm new to using git and Linux in general, how should I update my powerplan install?
from powerplan.
I think the simpler way is to delete the directory created by the "git clone" command (perhaps in home or downloads folder) and re-run the install instructions (if a previous installation is detected it will uninstall it first).
Some people prefer going to the git directory in the command line and running:
git pull && sudo ./install
This updates the already existing git directory and reinstalls the program.
from powerplan.
Apologies for the delay, back at my laptop now! - I've deleted the folder and re-installed, however running powerplan --version
still gives:
Traceback (most recent call last):
File "/usr/bin/powerplan", line 10, in <module>
import status
File "/opt/powerplan/src/status.py", line 8, in <module>
import cpu
File "/opt/powerplan/src/cpu.py", line 447, in <module>
CPU = CPUSpec()
File "/opt/powerplan/src/cpu.py", line 59, in __init__
self.crit_temp = int(psutil.sensors_temperatures()[self.temp_sensor][0].critical)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
Looking at the lines, the issues seem to be with: the "status" import in powerplan, import cpu
in status.py, and CPU = CPUSpec()
in cpu.py - Has this utility been tested on AMD before? It seems to be missing some temperature features, as you said. :p
from powerplan.
Whoops, I fixed the problem somewhere else instead of where it currently affects your setup 😅. It should really be fixed now.
Has this utility been tested on AMD before?
I have tested parts of this program on a couple AMD CPUs, but I no longer have access to them. That being said I really appreciate you taking your time to help me resolve this problem 😄
from powerplan.
Warning: Kernel: ACPI_BATTERY_VALUE_UNKNOWN when reading /sys/class/power_supply/BAT1/power_now.
This means that the Linux kernel got an invalid value when reading said battery property (power consumption). This problem is handled by powerplan by estimating power consumption with a different hardware interface (if the problem appears at initialization) if another one is available. You can find out which one is used running:
powerplan --verbose
The relevant lines appear right after the battery detected line.
If this is too off-topic (and if it's even a problem at all) I can close this and start a new issue if needed!
I really don't mind continuing here if you have any questions, but if you think something is not working correctly making a new issue will definitely make it easier for me to reference things in the future 👍
from powerplan.
That makes sense, I'll be sure to start a new issue if something acts up in the future! - I appreciate the help :)
One last question I have is, how should I find the names of frequency governors for powerplan?
from powerplan.
That'd good to know, thank you for the help and development! I'll close this thread, now. :)
from powerplan.
Related Issues (10)
- Turb doesn't turn off after laptop unplugged from power HOT 31
- Module import issue after installing conda HOT 4
- There should be a "balanced" policy! HOT 5
- GUI HOT 13
- [Bug] IndexError: tuple index out of range in cpu.py HOT 7
- powerplan -s shows a different battery policy than what's set in powerplan.conf HOT 27
- switch between cpu power configurations depending on the current workload HOT 4
- AttributeError: 'Battery' object has no attribute 'charge_now' HOT 2
- Is it possible to integrate powerplan into KDE's panel and settings? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerplan.