JJJ's Blog

  • WordPress
  • GitHub
  • Twitter/X
  • Self Hosted

    It’s taken about-a-million tiny steps, but as of this moment (2 May, 2024 07:42 UTC-6) this WordPress blog (jjj.blog) and a bunch of other blogs for friends & family are all calling from inside the house running on a cluster of Raspberry Pi 4’s in a server rack in my basement.

    (more…)

    JJJ

    May 2, 2024
    Self Hosting, Home, Software, WordPress
    GitLab, Caddy, Mail-in-a-Box, Raspberry Pi
  • Raspberry Pi 4, Ubuntu 20.04, PoE Hat Fan Control

    I recently acquired an 8Gb Raspberry Pi 4 and promptly installed Ubuntu 20.04 on it to see how it worked. Right away, I was excited that the PoE Hat worked and that it booted without any problems, except that the fan on the Hat was no longer controllable the way that it used to be.

    It appears that the old way of using config.txt and friends to override those settings no longer works.

    Here’s what you need to do:

    sudo nano /etc/udev/rules.d/50-rpi-fan.rules

    Put this in it to start with, and tweak as needed for your situation:

    SUBSYSTEM=="thermal"
    KERNEL=="thermal_zone3"
    
    # If the temp hits 81C, highest RPM
    ATTR{trip_point_0_temp}="82000"
    ATTR{trip_point_0_hyst}="3000"
    #
    # If the temp hits 80C, higher RPM
    ATTR{trip_point_1_temp}="81000"
    ATTR{trip_point_1_hyst}="2000"
    #
    # If the temp hits 70C, higher RPM
    ATTR{trip_point_2_temp}="71000"
    ATTR{trip_point_2_hyst}="3000"
    #
    # If the temp hits 60C, turn on the fan
    ATTR{trip_point_3_temp}="61000"
    ATTR{trip_point_3_hyst}="5000"
    #
    # Fan is off otherwise

    JJJ

    June 11, 2020
    Software
    Raspberry Pi
  • macOS Disk Utility “Operation cancelled”

    When trying to use Disk Utility to make a backup of one of my Raspberry Pi’s, I was repeatedly seeing an error that was causing my backup to fail.

    Operation cancelled

    Disk Utility

    Not particularly helpful.

    For me, the fix involved setting the Disk Utility application to have Full Disk Access inside macOS System Preferences, under Security & Privacy, and then Privacy.

    Once I did this, everything started working again! 🥳

    JJJ

    May 13, 2020
    Software
    macOS, Raspberry Pi
  • Raspberry Pi PoE Hat Fan Control

    I noticed yesterday that the fans on the PoE Hat of my Raspberry Pi 4’s were behaving strangely. They were both kicking on based more on time than temperature, even though neither of them seemed that hot.

    You can check the temperature via the command line like this:

    /opt/vc/bin/vcgencmd measure_temp

    And you’ll get something like:

    temp=42.0'C

    That didn’t seem hot enough to me to warrant the fans going full blast, and it doesn’t help that these fans have a high-pitched whine to them, making them audibly louder than all of my rack mounted Ubiquiti gear.

    I decided to take the fan configuration into my own hands, but I had to go hunting for the proper settings first.

    Name: rpi-poe
    Info: Raspberry Pi PoE HAT fan
    Load: dtoverlay=rpi-poe,<param>[=<val>]
    Params: poe_fan_temp0 Temperature (in millicelcius) at which the fan turns on (default 50000)
    
    poe_fan_temp0_hyst Temperature delta (in millicelcius) at which the fan turns off (default 5000)
    
    poe_fan_temp1 Temperature (in millicelcius) at which the fan speeds up (default 55000)
    
    poe_fan_temp1_hyst Temperature delta (in millicelcius) at which the fan slows down (default 5000)

    Open Nano to edit the boot config, like this:

    sudo nano /boot/config.txt

    Near the bottom add something like this:

    # PoE Hat Fan Speeds
    dtparam=poe_fan_temp0=65000,poe_fan_temp0_hyst=5000
    dtparam=poe_fan_temp1=67000,poe_fan_temp1_hyst=2000

    Then, reboot! Now, the fans won’t kick on until they hit 65’C, they’ll speed up at 67’C. For my setup, that silences them almost completely, while still keeping them reasonably cool and safe.

    Bonus: you can apparently set up to 4 different temps, like:

    # PoE Hat Fan Speeds
    dtparam=poe_fan_temp0=50000
    dtparam=poe_fan_temp1=60000
    dtparam=poe_fan_temp2=70000
    dtparam=poe_fan_temp3=80000

    JJJ

    February 26, 2020
    Home
    Raspberry Pi

Proudly Powered by WordPress