Mbpfan

From wikinotes
Revision as of 20:22, 6 March 2022 by Will (talk | contribs) (Created page with "Control cpufans on a macbook pro from linux. {{ WARNING | The AUR package for mbpfan refers to a fork that is out of date and does not work. * (good) https://github.com/netw...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Control cpufans on a macbook pro from linux.


WARNING:

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

TODO:

this deserves it's own page

TODO:

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

Install

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

</syntaxhighlight>

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