Mbpfan: Difference between revisions
From wikinotes
Line 17: | Line 17: | ||
<blockquote> | <blockquote> | ||
{{ WARNING | | {{ WARNING | | ||
The AUR package for mbpfan refers to a | 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 | |||
* ( | * (supports ~2012 macs) 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.
- (supports T2) https://github.com/networkException/mbpfan
- (supports ~2012 macs) https://github.com/dgraziotin/mbpfan
Build
git clone https://github.com/networkException/mbpfan cd mbpfan make sudo make install sudo make testsEnable
sudo cp mbpfan.service /etc/systemd/system sudo systemctl enable mbpfan.service sudo systemctl daemon-reload sudo systemctl start mbpfan.serviceConfirm it's working
sudo systemctl status mbpfan.service sensors # see CPU temps
Troubleshooting
# watch it run mbpfan -f # run in foreground mbpfan -v # verboseSome 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