Package Details: fanshim 0.0.5-3

Git Clone URL: https://aur.archlinux.org/fanshim.git (read-only, click to copy)
Package Base: fanshim
Description: Automatic control of Pimoroni Fan Shim for Raspberry Pi.
Upstream URL: https://github.com/pimoroni/fanshim-python
Licenses: MIT
Submitter: fryfrog
Maintainer: fryfrog
Last Packager: fryfrog
Votes: 2
Popularity: 0.000057
First Submitted: 2019-07-11 17:30 (UTC)
Last Updated: 2020-08-18 23:56 (UTC)

Pinned Comments

fryfrog commented on 2019-07-12 16:14 (UTC)

For --preempt to work, which needs psutil.cpu_freq() to work, you'll have to use the linux-aarch64-raspberrypi-bin kernel on aarch64 instead of the default linux-aarch64.

Latest Comments

fl4co commented on 2021-12-08 16:47 (UTC)

Anybody got it working with aarch64?

jal666 commented on 2021-11-25 14:10 (UTC)

CFLAGS="-fcommon" pip install rpi.gpio

Reason: https://gcc.gnu.org/gcc-10/porting_to.html

Credit: peiyangxie

oUndercover commented on 2021-09-28 13:40 (UTC)

@remital that is an issue with the package python-spidev, but according to @fryfrog on the python-spidev AUR page it does build some binaries but it is compatible with aarch64.

I will try to install this later, but I remember running into issues last time I tried it, but installing python-spidev from the AUR and modifying the PKGBUILD to include aarch64 as a valid architecture should install this package, and then you can proceed to install this one.

Also the package python-raspberry-gpio isn't available on the AUR anymore, and if I remember correctly the ones available on the Manjaro ARM repositories didn't work, this is the problem of using several repositories for packages.

remital commented on 2021-01-31 20:36 (UTC)

I cannot install this package on Manjaro ARM The following error is output:

Building python-spidev... ==> ERROR: python-spidev is not available for the 'aarch64' architecture.

System: Host: pi4 Kernel: 5.4.83-1-MANJARO-ARM aarch64 bits: 64 Desktop: KDE Plasma 5.20.5 Distro: Manjaro ARM Machine: Type: ARM Device System: Raspberry Pi 4 Model B Rev 1.4 details: BCM2835 rev: d03114

blackhole commented on 2019-11-30 15:39 (UTC)

Yes is working with only temperature setting.

fryfrog commented on 2019-11-30 15:35 (UTC)

Might be worth reporting to the author, I had a couple other simple coding issues they fixed while making the package. It seems reasonable that they could gate the checking of frequency around something that checks if that is possible, since it can be used w/ just temperature. That works, I assume?

blackhole commented on 2019-11-30 15:29 (UTC)

I have rpi 4 and a realtime kernel 4.19.71

Since I am not interested in frequency check since rpi4 is run at 1500 Turbo, I have commented the line 137...not a real solution but now is working fine!

fryfrog commented on 2019-11-30 15:26 (UTC)

Which Pi? And what kernel? I'm running it on a Pi 4 w/ 32bit linux-raspberrypi4 right now, but started w/ a Pi 3 and aarch64. There were some oddies I had to resolve around the correct kernel.

Looks like that bit in the code is trying to get the current and max cpu frequency.

blackhole commented on 2019-11-30 14:58 (UTC) (edited on 2019-11-30 15:12 (UTC) by blackhole)

Installed the package but I have this error:

[root@raspberry examples]# fanshim --on-threshold 55 --off-threshold 50 --delay 2 Traceback (most recent call last): File "/usr/bin/fanshim", line 137, in <module> is_fast = (int(f.current) == int(f.max)) AttributeError: 'NoneType' object has no attribute 'current'

fryfrog commented on 2019-07-12 16:14 (UTC)

For --preempt to work, which needs psutil.cpu_freq() to work, you'll have to use the linux-aarch64-raspberrypi-bin kernel on aarch64 instead of the default linux-aarch64.

fryfrog commented on 2019-07-11 19:12 (UTC)

This package is just their script and a service file, I created python-fanshim and python-plasmalight for depends.

It still isn't working though, so if you try it and figure out wtf I've done wrong, let me know! :)

yochananmarqos commented on 2019-07-11 18:50 (UTC)

This should be called python-fanshim since it's a Python library. Please fill in the description.