March 22, 20233 yr 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 March 23, 20233 yr by djismgaming emphasis on required file
March 23, 20233 yr You can add <PrivilegedReq>true</PrivilegedReq> to the template to get rid of the privileged warning
March 23, 20233 yr 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 March 23, 20233 yr by djismgaming
February 19, 20242 yr 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
December 23, 20241 yr 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.
December 23, 20241 yr 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.