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

Investigate dropping psutil in favour of reading device nodes #73

Closed
Gadgetoid opened this issue Mar 16, 2020 · 1 comment
Closed

Investigate dropping psutil in favour of reading device nodes #73

Gadgetoid opened this issue Mar 16, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@Gadgetoid
Copy link
Member

It looks like in many (all?) cases we can just attempt to read /sys/class/thermal/thermal_zone0/temp and /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq to get the current CPU temperature and CPU scaling frequency- avoiding the psutil dependency.

Building some functions into Fan SHIM to report these figures would seem sensible.

This is a continuation of - #58 - in an effort to get compatibility beyond just Raspbian.

@Gadgetoid
Copy link
Member Author

This should also fix: #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant