ablakely / macfand

Fan control for Macs running Linux
MIT License
16 stars 4 forks source link

MacPro 7,1 Seg fault Core dumped #13

Closed CaptainMorgan12 closed 1 month ago

CaptainMorgan12 commented 1 month ago

I edited the configuration and machine profiles (I added two aspi sensors TI0d, and TI1d that provided the highest temp reading) and build and installed the service, on running it I get:

sudo systemctl status macfand
● macfand.service - Mac Fan Control Daemon
     Loaded: loaded (/usr/lib/systemd/system/macfand.service; enabled; preset: enabled)
     Active: activating (auto-restart) (Result: core-dump) since Mon 2024-09-09 17:55:05 PDT; 960ms ago
       Docs: man:macfand(1)
    Process: 29327 ExecStart=/usr/local/bin/macfand -d (code=dumped, signal=SEGV)
   Main PID: 29327 (code=dumped, signal=SEGV)
        CPU: 2ms

There are four fans:

MacPro 7,1 conf edit:

    {
        sensor = "TI0d";
        floor = 5;
        ceiling = 120;
        value = "Highest temp Reading 1";
    },
    {
        sensor = "TI1d";
        floor = 5;
        ceiling = 120;
        value = "Highest temp Reading 2";
    },

Conf edit:

fan_ctrl = (
    {
       # fan 1
       fan_sensors = ("TI0d", "TI1d");
       floor = 45;
       ceiling = 60;
       min_speed = 800;
       max_speed = 3600;
    },
    {
       # fan 2
       fan_sensors = ("TI0d", "TI1d");
       floor = 45;
       ceiling = 60;
       min_speed = 800;
       max_speed = 3600;
    },
    {
       # fan 3
       fan_sensors = ("TI0d", "TI1d");
       floor = 45;
       ceiling = 60;
       min_speed = 800;
       max_speed = 3600;
    },
    {
       # fan 4
       fan_sensors = ("TI0d", "TI1d");
       floor = 45;
       ceiling = 60;
       min_speed = 800;
       max_speed = 3600;
    }
);

Not sure if there was anything else I needed to customize?

Ideally I would actually like to pick up the following sensors from, since these seem to provide higher temp readings:

enp3s0-pci-0300

0 PHY Temperature

1 MAC Temperature pch_lewisburg-virtual-0 0 Temp