calasanmarko / TurboMac

Stops CPU throttling on Intel-based Macs
GNU General Public License v3.0
62 stars 7 forks source link

1.2.0 on Catalina/older #12

Closed guino closed 1 year ago

guino commented 1 year ago

Is it just me or the 1.2.0 version was only compiled for some newer MacOS versions ?

When trying to install 1.2.0 on Catalina I get some link errors on the command kextutil /Library/Extensions/TurboMac.kext saying that it is is trying to use a function that wasn't implemented (sorry I didn't grab the exact error message).

Installing 1.1.0 on the other hand worked perfectly (thank you so much!).

Just wanted to confirm if by any chance 1.2.0 was compiled with a newer SDK version (and won't work on older versions like Catalina/Sierra/etc).

guino commented 1 year ago

Turns out I'm still being throttled down to 800Mhz with 1.1.0... I download XCode 12.4 (for Catalina), compiled 1.2.0 and tried to load it and I get the same errors as I get with your release 1.2.0:

(kernel) kxld[calasanmarko.TurboMac]: The __ZTV8TurboMac is unpatchable because its class declares the method '__ZN8TurboMac4freeEv' without providing an implementation.
(kernel) Can't load kext calasanmarko.TurboMac - link failed.
(kernel) Failed to load executable for kext calasanmarko.TurboMac.
(kernel) Kext calasanmarko.TurboMac failed to load (0xdc008016).
(kernel) Failed to load kext calasanmarko.TurboMac (error 0xdc008016).
Failed to load /Library/Extensions/TurboMac.kext - (libkern/kext) link error.
Check library declarations for your kext with kextlibs(8).

I'm not a mac guy so I'm looking for pointers.

guino commented 1 year ago

Looks like the problem is fixed by simply adding:

void TurboMac::free() {
    super::free();
    IOLog("Freeing TurboMac...");
}