Mbpfan: Difference between revisions

From wikinotes
Line 17: Line 17:
<blockquote>
<blockquote>
{{ WARNING |
{{ WARNING |
The AUR package for mbpfan refers to a fork that is out of date and does not work.
The AUR package for mbpfan refers to the original mbpfan, which won't work on a mac with a T2 chip.  
 
* (supports T2) https://github.com/networkException/mbpfan
* (good) https://github.com/networkException/mbpfan
* (supports ~2012 macs) https://github.com/dgraziotin/mbpfan
* (bad) https://github.com/dgraziotin/mbpfan
}}
}}



Revision as of 20:48, 6 March 2022

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 the original mbpfan, which won't work on a mac with a T2 chip.

Build

git clone https://github.com/networkException/mbpfan
cd mbpfan
make
sudo make install
sudo make tests

Enable

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