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

No power usage readings / Permission denied #167

Open
galfwender opened this issue Nov 12, 2020 · 2 comments
Open

No power usage readings / Permission denied #167

galfwender opened this issue Nov 12, 2020 · 2 comments

Comments

@galfwender
Copy link

When running as a normal user, s-tui does not show power usage and upon exiting the following errors are displayed in the terminal:

WARNING:root:ignoring (PermissionError(13, 'Permission denied'), '/sys/class/powercap/intel-rapl:0/') for file <class 'RuntimeWarning'>
WARNING:root:ignoring (PermissionError(13, 'Permission denied'), '/sys/class/powercap/intel-rapl:0:0/') for file <class 'RuntimeWarning'>
WARNING:root:ignoring (PermissionError(13, 'Permission denied'), '/sys/class/powercap/intel-rapl:0:1/') for file <class 'RuntimeWarning'>
WARNING:root:ignoring (PermissionError(13, 'Permission denied'), '/sys/class/powercap/intel-rapl:0:2/') for file <class 'RuntimeWarning'>
WARNING:root:ignoring (PermissionError(13, 'Permission denied'), '/sys/class/powercap/intel-rapl:1/') for file <class 'RuntimeWarning'>

Running as root works as expected, showing power usage without error. Arch 5.9.8-arch1-1.

@amanusk
Copy link
Owner

amanusk commented Nov 13, 2020

Thanks for opening the issue. I wonder if this is related to this https://platypusattack.com

Perhaps on newer kernels the permission to read the rapl files has been locked to root users only.
This is a shame, but the info would still be accessible when running as root as you suggested

@ejgallego
Copy link

Duplicate of #179

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