Coder Social home page Coder Social logo

Comments (3)

fryfrog avatar fryfrog commented on September 6, 2024 1

Using linux-aarch64-raspberrypi-bin for kernel fixes psutil.cpu_freq() and also switches cpu_thermal to cpu-thermal.

:/

from fanshim-python.

Gadgetoid avatar Gadgetoid commented on September 6, 2024 1

Honestly I know nothing about Arch packaging- I've been a Debian-based system user for more than two decades with only some brief brushes with ... the dark side 😆

Thanks for packaging it up, though!

The issue with the "plasma" module in the "plasmalights" package is one of those unfortunate cases where we name a product something, and a pip package already exists with that name. Grumble I don't imagine there will be much overlap between users of these two packages, however.

from fanshim-python.

fryfrog avatar fryfrog commented on September 6, 2024

So the only thing I think I need to figure out is why psutil.cpu_freq() doesn't work, it returns None and the /sys folder is missing all the things a raspbian system has:

0 ✓ fryfrog@raspbian-armv7l /sys/devices/system/cpu/cpufreq $ ls -alh policy0/
total 0
drwxr-xr-x 3 root root    0 Jul 11 20:47 .
drwxr-xr-x 4 root root    0 Jul 11 19:10 ..
drwxr-xr-x 2 root root    0 Jul 11 20:42 stats
-r--r--r-- 1 root root 4.0K Jul 11 20:42 affected_cpus
-r-------- 1 root root 4.0K Jul 11 20:42 cpuinfo_cur_freq
-r--r--r-- 1 root root 4.0K Jul 11 20:42 cpuinfo_max_freq
-r--r--r-- 1 root root 4.0K Jul 11 20:42 cpuinfo_min_freq
-r--r--r-- 1 root root 4.0K Jul 11 20:42 cpuinfo_transition_latency
-r--r--r-- 1 root root 4.0K Jul 11 20:42 related_cpus
-r--r--r-- 1 root root 4.0K Jul 11 20:42 scaling_available_frequencies
-r--r--r-- 1 root root 4.0K Jul 11 20:42 scaling_available_governors
-r--r--r-- 1 root root 4.0K Jul 11 19:40 scaling_cur_freq
-r--r--r-- 1 root root 4.0K Jul 11 20:42 scaling_driver
-rw-r--r-- 1 root root 4.0K Jul 11 19:10 scaling_governor
-rw-r--r-- 1 root root 4.0K Jul 11 19:40 scaling_max_freq
-rw-r--r-- 1 root root 4.0K Jul 11 19:40 scaling_min_freq
-rw-r--r-- 1 root root 4.0K Jul 11 20:42 scaling_setspeed
0 ✓ fryfrog@arch-aarch64 /sys/devices/system/cpu/cpufreq $ ls -alh
total 0
drwxr-xr-x  2 root root 0 Jul 11 17:54 .
drwxr-xr-x 12 root root 0 Jan  1  1970 ..

https://archlinuxarm.org/forum/viewtopic.php?f=65&t=13268

^ This thread implies it may just be a limitation of the Arch aarch64.

from fanshim-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.