Mbpfan

From wikinotes
Revision as of 20:23, 6 March 2022 by Will (talk | contribs)

Control cpufans on a macbook pro from linux.

TODO:

I'm not convinced this is working, I'm hitting CPU temps of 81 C with no real workload. Look deeper into configuration.

Documentation

https://github.com/networkException/mbpfan

Install

WARNING:

The AUR package for mbpfan refers to a fork that is out of date and does not work.

Build

git clone https://github.com/networkException/mbpfan
cd mbpfan
make
sudo make install
sudo make tests
</blockquote><!-- Install -->

Enable
<syntaxhighlight lang="bash">
sudo cp mbpfan.service /etc/systemd/system
sudo systemctl enable mbpfan.service
sudo systemctl daemon-reload
sudo systemctl start mbpfan.service

Confirm it's working

sudo systemctl status mbpfan.service
sensors # see CPU temps

Troubleshooting

# watch it run
mbpfan -f # run in foreground
mbpfan -v # verbose

Some background info for debugging:

  • applesmc is builtin to the linux kernel.
  • mbpfan uses applesmc exposed info from files in /sys/devices/platform/* (ex: APP, applesmc.768