How to work with SD card partition?
#18
(10-30-2019, 03:03 PM)Happyhaha2000 Wrote: Alright, I've placed an order for the dongle. Any idea how to get the fan to work? Or is it already working automatically? Maybe it's just so quiet I can't hear it, but I thought that maybe I would need to do something similar to what I did to get the L2/R2 buttons to work.

Yes.  First, make sure you've followed the soldering instructions at https://docs.google.com/document/d/1GkmF...p7xxr08l5l

There is (IN THEORY) a new/easier way and our older/standard way to do it. Read the "Note" there as to why it's not as simple as it should be.

Old/Standard
See https://github.com/TheFlav/rpi-fan
Code:
cd /home/pi/Freeplay/
git clone https://github.com/TheFlav/rpi-fan.git
cd rpi-fan/
sudo cp run-fan-service /lib/systemd/system/run-fan.service
sudo systemctl enable run-fan.service

Then reboot to have the fan service run at bootup.

New/Easier
Note: This new/easier way should be fairly simple, but there has been a bug in the gpio-fan overlay module that ships with Raspbian (and RetroPie). I actually am not sure if the latest update fixes this yet or not. If you have the old overlay module, the fan will actually be ON when you boot up and then turn OFF if the CPU gets too hot. Yeah, that's not very useful.

For the time being, you can do this, to get/compile/install the new overlay module.

Code:
wget https://raw.githubusercontent.com/raspberrypi/linux/rpi-4.19.y/arch/arm/boot/dts/overlays/gpio-fan-overlay.dts
sudo dtc -W no-unit_address_vs_reg -@ -I dts -O dtb -o /boot/overlays/gpio-fan.dtbo gpio-fan-overlay.dts

Code:
sudo nano /boot/config.txt
add one line that looks like this
Code:
dtoverlay=gpio-fan,gpiopin=40
You could also change the temperature at which the fan switches on.  The parameter is in millicelsius, and the default is 55000 (AKA 55 degrees celsius).
Code:
dtoverlay=gpio-fan,gpiopin=40,temp=60000

Also, I would say that the default gpio-fan temp is somewhat aggressive. It will basically run the fan anytime the CPU is in use at all. I think 60C or 65C may be better if you don't want the fan to run as often. Our "old" way of doing it would turn the fan on at 60C and then turn it off when it got down to 55C (if I recall correctly). The gpio-fan module will turn the fan on at the specified temp and then turn it off at 10C less than the turn on setting, and this would be 55C on and 45C off by default.
Card Fighters' Clash 2 English Translation ( http://cfc2english.blogspot.com/ )
Neo Geo Pocket Flash Cart and Linker Project ( http://www.flashmasta.com/ )
Avatar art thanks to Trev-Mun ( http://trevmun.deviantart.com/ )
Reply


Messages In This Thread
RE: How to work with SD card partition? - by Flavor - 10-31-2019, 03:07 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)