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


Recommended Posts

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
Link to comment
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
Link to comment
  • 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

 

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.