Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SUPPORT] DJISMGAMING | MBPFAN, A FAN CONTROLLER FOR MACS RUNNING LINUX

Featured Replies

djismGAMING_ICON.png.8d6265528a6f5a460c6a7693835868c3.png

 

Application Name: mbpfan
Application Site: https://github.com/bplein/mbpfan
Docker Image Repository: https://hub.docker.com/r/bplein/mbpfan
Github: https://github.com/linux-on-mac/mbpfan

 

Please post any questions/issues relating to this docker you have in this thread.

 

If you need help but are not using unRAID, then please do not post here, instead head to the application's GitHub repository and open an issue there.

 

PLEASE READ THIS, IMPORTANT TO MAKE THE CONTAINER WORK WITH YOUR MAC

 

*** Must run as a privileged container ***

 

Containerized mbpfan (for Macs running Linux, to control fans)

NOTE: the executable in the container was compiled by bplein from https://github.com/linux-on-mac/mbpfan.
Uses the Ubuntu repository version of https://github.com/linux-on-mac/mbpfan

 

Need to create a configuration file with the following contents and mount it in the container as a volume in the container under /etc/mbpfan.conf:

 

File contents of /mnt/user/appdata/mbpfan/mbpfan.conf (example on a Late 2012 i7 Mac mini, my unraid server)

[general]
# see https://ineed.coffee/3838/a-beginners-tutorial-for-mbpfan-under-ubuntu for the values
min_fan_speed = 1800    # put the *lowest* value of "cat /sys/devices/platform/applesmc.768/fan*_min"
max_fan_speed = 5500    # put the *highest* value of "cat /sys/devices/platform/applesmc.768/fan*_max"
low_temp = 55            # try ranges 55-63, default is 63
high_temp = 66            # try ranges 58-66, default is 66
max_temp = 87            # take highest number returned by "cat /sys/devices/platform/coretemp.*/hwmon/hwmon*/temp*_max", divide by 1000
polling_interval = 7    # default is 7 seconds

 

Edited March 22, 2023 by @djismgaming (initial post)

Edited by djismgaming
emphasis on required file

You can add

<PrivilegedReq>true</PrivilegedReq>

to the template to get rid of the privileged warning

  • Author
43 minutes ago, Squid said:

You can add

<PrivilegedReq>true</PrivilegedReq>

to the template to get rid of the privileged warning

Thanks so much! All input is really appreciated. I've pushed the change to the repo now.

 

I've made the addition here in the template:

  <Shell>sh</Shell>
  <Privileged>true</Privileged>
  <PrivilegedReq>true</PrivilegedReq>

 

Should I remove the <Privileged> one? Or keep it?

Edited by djismgaming

  • Author

I see it worked! Thanks!

  • 10 months later...

I've found that I need to specify paths only, pointing directly to the .conf file did not work for me on Unraid v6.12.18

Host Path: /mnt/cache/appdata/mbpfan/

Container path: /etc/

 

Also, for anyone using a Mac Pro 6,1 Trashcan, below config worked for me. After some frustrations, I decided to undershoot the temps to where I wanted the internal SSD at. Highest is still the highest for CPU. I might refine these later, but I'm totally ok with the fan spinning at full speed 24/7

 

Current stats:

 

CPU: 47 C

SSD: 38 C
Fan: 1178 RPM
 

[general]
# see https://ineed.coffee/3838/a-beginners-tutorial-for-mbpfan-under-ubuntu for the values
min_fan_speed = 790    # put the *lowest* value of "cat /sys/devices/platform/applesmc.768/fan*_min"
max_fan_speed = 1900    # put the *highest* value of "cat /sys/devices/platform/applesmc.768/fan*_max"
low_temp = 40            # try ranges 55-63, default is 63
high_temp = 42            # try ranges 58-66, default is 66
max_temp = 61            # take highest number returned by "cat /sys/devices/platform/coretemp.*/hwmon/hwmon*/temp*_max", divide by 1000
polling_interval = 7    # default is 7 seconds

 

  • 10 months later...

Hey @djismgaming I am having an issue with this on Unraid 6.12.14 where on shutdown, the /var/run/mbpfan.pid file is not being removed, and the docker container fails to start when I bring Unraid back up.

Not sure if you are able to look into this? Otherwise I can try but I don't know much about it yet.

  • Author
40 minutes ago, motoxnate said:

Hey @djismgaming I am having an issue with this on Unraid 6.12.14 where on shutdown, the /var/run/mbpfan.pid file is not being removed, and the docker container fails to start when I bring Unraid back up.

Not sure if you are able to look into this? Otherwise I can try but I don't know much about it yet.

Hi @motoxnate, unfortunately I'm not the developer of the application. I did create the template for Unraid though, as I did not see one at the time from the developer.

 

But, I do see that the only mount point of this container in the Unraid host is for the application config file:

 

<Host>:<Container>

/mnt/cache/appdata/mbpfan/mbpfan.conf:/etc/mbpfan.conf

 

Are your mounts adding more directories from your host? If the container is stopped, all data from the container (not in the config bind mount) will be lost. A system shutdown should do the same as it stops the docker service while shutting down.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.