Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mbpfan does not detect the applesmc plugin #259

Open
Dizspy opened this issue Feb 25, 2023 · 3 comments
Open

mbpfan does not detect the applesmc plugin #259

Dizspy opened this issue Feb 25, 2023 · 3 comments

Comments

@Dizspy
Copy link

Dizspy commented Feb 25, 2023

I have Mac mini 2018 (Macmini8,1)

I've installed proxmox with custom linux kernel v5.19.17-1 for T2 support
https://github.com/AdityaGarg8/pve-edge-kernel-t2

applesmc plugin successfully loaded
root@proxmox:/# lsmod |grep smc
applesmc 32768 0

sensors are successfully detecting all the values:
root@proxmox:/# sensors
applesmc-acpi-0
Adapter: ACPI interface
fan1: 2530 RPM (min = 1700 RPM, max = 4922 RPM)
TA0V: +33.8°C
TC0F: +84.0°C
TC0P: +56.8°C
TC1C: +69.0°C
TC2C: +68.0°C
TC3C: +66.0°C
TC4C: +70.0°C
TC5C: +66.0°C
TC6C: +64.0°C
TCGC: +62.0°C
TCSA: +66.0°C
TCXC: +69.5°C
TCaP: +58.5°C
TH0F: +51.8°C
TH0a: +51.8°C
TH0b: +50.2°C
TIED: +61.5°C
TM0P: +56.2°C
TM0V: +62.8°C
TPCD: +73.0°C
TPSD: +55.2°C
TS0V: +49.0°C
TTTD: +70.8°C
TTXD: +75.5°C
TW0P: +56.5°C
TW1P: +58.8°C
TW2P: +59.5°C
TaLC: +54.0°C
TaRC: +60.0°C

Anyway, mbpfan does not detect the applesmc plugin
root@proxmox:/# mbpfan
mbpfan needs applesmc support. Please either load it or build it into the kernel. Exiting.

How can I manually point mbpfan to detect the applesmc correctly to make it work?

@Dizspy Dizspy changed the title mbpfan does not detect applesmc plugin mbpfan does not detect the applesmc plugin Feb 25, 2023
@Redecorating
Copy link

Upstream mbpfan doesn't yet have the right folder path to work with the patched T2 kernels (#236 ), please have a look at this https://wiki.t2linux.org/guides/fan/ for now.

@Dizspy
Copy link
Author

Dizspy commented Feb 27, 2023

Thanks. I've managed to patch and make mbpfan for the right folder.

But now there is another issue:

root@proxmox:~# mbpfan -f
mbpfan 2.3.0 starting up
Writing a new .pid file with value 400758 at: /var/run/mbpfan.pid
Successfully written a new .pid file with value 400758 at: /var/run/mbpfan.pid
Using new sensor path for kernel >= 3.15.0 or some CentOS versions with kernel 3.10.0
Found hwmon path at /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp
Found 7 sensors
Found 0 fans
mbpfan could not detect any fan. Please contact the developer.

mbpfan could not detect the fan. Despite the fact that 'sensors' detected fan1 successfully.

@zft9xgy
Copy link

zft9xgy commented Aug 23, 2023

Hi, @Dizspy some time ago I checked this issue and I had the same problem, it seems that mbpfan could not read the applesmc and only took the coretemp temperature, which was lower than what my applesmc was reading.

I have developed a script that may solve your problem, as it also solved mine https://github.com/zft9xgy/mac-temp2fan-controler the code is still in its first version so it is possible to find some bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants