-
Notifications
You must be signed in to change notification settings - Fork 85
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
Fanshim doesn't seem to install correctly on my RasPi4 running Ubuntu #58
Comments
Does the Python GPIO work under Ubunto or can it be added, I would think a short Python script tryying ti use GPIO would establish if its there.? |
I have installed it, and installed the RPi.GPIO package, but when I attempt to follow the example on the main page, I get an error: ubuntu@ubuntu:~/fanshim-python$ python3
|
I have done some digging, and it seem that this error can sometimes occur if a user is not a member of the necessary group - in this case, I tried adding the ubuntu user to the gpio group, rebooted, and still no joy. If i run python3 initially with sudo, then the command doesn't generate an error, but that seems like the nuclear option. Are there other groups that my user may need to be part of for this to work correctly? |
OK - I tried installing the fanshim service, which installs successfully as far as I can tell, but it never turns the fan on and the LED stays off. I suspect that it is unable to read the temperature of the cpu, and therefore cannot control the fan properly. |
The tinkering here is indicative of why we only support Raspbian. Keeping everything working on one (or three, if you account for a couple of previous Raspbian versions) OS is time consuming enough without tackling any more. There simply aren't enough hours in the day. That said, I'm always happy to draw attention to forks, ports or other projects that support our boards in other languages and on other platforms. And, time provided, to lend some of my experience. |
I understand - I was just trying to find out if others had run into this same issue with Ubuntu. FYI - I had another very odd thing that happened while trying to get those Ubuntu installations to boot for the first time. It seems that if the Fanshim is pressed to tightly against the pi's gpio header, u-boot was reading strange characters as keypresses and the boot process was being interrupted. The 3D printed case I had the Pi installed (specifically designed to support the fanshim) was squeezing the shim against the header and causing this. |
This is strange- are you saying it was causing characters to be produced via the UART pins/serial terminal? If those pins are left floating but enabled then I could see Fan SHIM introducing noise |
That does seem to be what is happening. bent the pins slightly on the header last night to try to improve the connection from pins to the fanshim, and got a fairly tight connection. Oddly this is what seems to cause issues most of the time at bootup. When I did this, I was getting the interruption in the boot process. I then removed the fanshim, rebooted, and added a line to the /boot/firmware/syscfg.txt file (enable_uart=0) based on suggestions from Dave Jones (waveform80) the Ubuntu team via the raspberrypi.org forums. I then reinstalled the fanshim, rebooted, and it booted correctly. I even tried again while applying downward pressure on the fanshim during boot to see if I could get the interrupted boot again, and couldn't get it to fail. This is the thread I was discussing the issue in: With the above adjustments, and a change to automatic.py to replace the get_cpu_temp() function as shown below, I was able to get the service to run correctly and operate the fan based on CPU temp.
The above is needed because psutil isn't reading the temps from the right location under ubuntu:
I previously tried forcing psutil to update to 5.6.7, but this didn't help either. |
I wonder if it's worth distilling your findings down to some options in the This, combined with |
Sorry - I have abandoned the FanShim in favor of some passive cooling options. This was mainly because the FanShim had gotten very noisy (weird vibrations and buzzing). |
On 25/02/2020 14:36, spiff72 wrote:
Sorry - I have abandoned the FanShim in favor of some passive cooling
options. This was mainly because the FanShim had gotten very noisy
(weird vibrations and buzzing).
The bearings in the tiny fan can fail, it starts getting nosier and may
eventually stop altogether. Pimoroni sent me a replacement fan, free of
charge.
Cheers
---David
--
Email: [email protected]
Phone: +44-(0)7974 108301
|
Closing in favour of #73 |
Maybe this was a stretch, but I was hoping to get this working on my RasPi4 running the Ubuntu 19.10 image (64 bit). For now it just runs the fan all the time, but I would love to have the automatic.py functionality working under Ubuntu as well as Raspbian.
Thanks!
The text was updated successfully, but these errors were encountered: