fan control on a Macmini8,1 (A1993): applesmc fails to load

katbyte

New Member
Nov 6, 2022
13
0
1
Hello all,

I have managed to get proxmox installed on my intel macmini, and core temps read just fine but as of yet I have been unable to get fan control working.

when i try to load the applesmc module:
[10:09:28] root@mini:~/src/mbpfan▸master# modprobe applesmc modprobe: ERROR: could not insert 'applesmc': Input/output error [10:11:26] root@mini:~/src/mbpfan▸master#

dmesg:
[ 61.148266] applesmc: probe of applesmc.768 failed with error -5 [ 118.852271] applesmc: driver init failed (ret=-5)!

version:
Linux version 5.19.7-2-pve (build@proxmox) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP PREEMPT_DYNAMIC PVE 5.19.7-2 (Tue, 04 Oct 2022 17:18:40 +

Any ideas of what could be causing this/how I can fix it? I have reset SMC (hold cmd+opt+r+p till 2nd chime) but i've yet to find any other steps i could take

thanks
 
I'm in the same boat.
Found this MCMrARM/mbp2018-etc: Misc files related to running Linux on the MBP2018 (github.com)
I managed to compile the module after patching it like this:
MCMrARM/mbp2018-etc: Misc files related to running Linux on the MBP2018 (github.com)
I then load it like this:
Bash:
insmod applesmc_t2_kmod.ko

dmesg log
[Sun Nov 20 13:46:28 2022] applesmc APP0001:00: Trying to enable iomem based communication [Sun Nov 20 13:46:28 2022] applesmc APP0001:00: read_smc_mmio(10 4e4b444c/LDKN): buflen=1 reslen=1 [Sun Nov 20 13:46:28 2022] read_smc_mmio(): 03 . [Sun Nov 20 13:46:28 2022] applesmc APP0001:00: read_smc_mmio(10 59454b23/#KEY): buflen=4 reslen=4 [Sun Nov 20 13:46:28 2022] read_smc_mmio(): 00 00 02 3e ...> ... [Sun Nov 20 13:46:28 2022] applesmc_t2_kmod: key=574 fan=1 temp=31 index=31 acc=0 lux=0 kbd=0 [Sun Nov 20 13:46:28 2022] applesmc APP0001:00: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().

despite the deprecated message, lsmod shows it in the list.
but I can't make it persist the reboot, adding in /etc/modules does nothing ...
Any idea ?
 
Hey guys.
Having the same issue.
I've installed Proxmox 7.3 on my Mac mini 2018 to utilise it for virtualisation.

Also, I've installed custom T2 kernel v5.19.17-1 from here
https://github.com/AdityaGarg8/pve-edge-kernel-t2

I've even managed to install macOS Ventura as guest following this guide:
https://www.nicksherlock.com/2022/10/installing-macos-13-ventura-on-proxmox/

The only thing left is to manage the FAN controls.
I've tried to passthrough temperature and FAN related devices straight to the macOS, but with no luck.
(Thunderbolt3 SSD drive works like a charm in macOS after some manipulations)

So, I'm stuck at this point:
Sensors-detect managed to find all the sensors, therefore I have such output:
root@proxmox:/home# sensors applesmc-acpi-0 Adapter: ACPI interface fan1: 1699 RPM (min = 1700 RPM, max = 4578 RPM) TA0V: +29.2°C TC0F: +56.8°C TC0P: +44.5°C TC1C: +49.0°C TC2C: +49.0°C TC3C: +46.0°C TC4C: +48.0°C TC5C: +49.0°C TC6C: +48.0°C TC7C: -127.0°C TC8C: -127.0°C TCGC: +49.0°C TCSA: +48.0°C TCXC: +49.0°C TCaP: +47.0°C TH0F: +41.0°C TH0a: +41.0°C TH0b: +40.0°C TIED: +49.8°C TM0P: +45.5°C TM0V: +50.8°C TPCD: +56.0°C TPSD: +45.8°C TS0V: +38.0°C TTTD: +59.5°C TTXD: +61.8°C TW0P: +45.8°C TW1P: +47.8°C TW2P: +48.0°C TaLC: +43.0°C TaRC: +48.2°C nvme-pci-0200 Adapter: PCI adapter Composite: +40.9°C pch_cannonlake-virtual-0 Adapter: Virtual device temp1: +57.0°C coretemp-isa-0000 Adapter: ISA adapter Package id 0: +56.0°C (high = +100.0°C, crit = +100.0°C) Core 0: +53.0°C (high = +100.0°C, crit = +100.0°C) Core 1: +51.0°C (high = +100.0°C, crit = +100.0°C) Core 2: +49.0°C (high = +100.0°C, crit = +100.0°C) Core 3: +50.0°C (high = +100.0°C, crit = +100.0°C) Core 4: +57.0°C (high = +100.0°C, crit = +100.0°C) Core 5: +55.0°C (high = +100.0°C, crit = +100.0°C)
As you can see, sensors are showing all the data for temperatures and RPM for fan1

But!
No software are able to regulate the FAN speed.

fancontrol does not work because of pwmconfig:
root@proxmox:/# pwmconfig # pwmconfig version 3.6.0 /usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed

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

applesmc and coretemp modules are loaded
root@proxmox:/# lsmod |grep smc applesmc 32768 0 root@proxmox:/# lsmod |grep coretemp coretemp 20480 0

What kind of modules are still required to control the fan if sensors are able to detect the fan speed?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!