VoltageShift icon indicating copy to clipboard operation
VoltageShift copied to clipboard

FYI using binaries for novice users

Open ghost opened this issue 5 years ago • 2 comments

For novice users it would be helpful to add this in Readme.md


How to use binary?

Binary builds may not work for everyone, due to target OS/library module mismatch/deprecation. This is why you would often see many MSR read/write repos asking you to build your own binaries from Xcode project instead of that one click solution to tweak with CPU registers (unlike Windows where ThrottleStop is one-stop solution for all PROCHOT/Turbo and frequency stepping needs). That being said, if Xcode is not readily available to you or the recent 11 gigs of Xcode install disk is too big to download/setup, you may go ahead and try one of the binary builds usually released by author every often.

First download this repo as zip file. Next locate binary builds (zip file). Unzip and you'll see two files VoltageShift.kext and voltageshift

There are two pre-requisites before you can run voltageshift info command. First being to disable signed kext requirement in recovery mode (I can second this as opposed to running csrutil disable). Quoted from Readme.md,

Push Cmd+R when booting to Recovery mode, select Terminal at toolbar and enter: csrutil enable --without kext After reboot, ensure the kext and the command tool files are in the same directory.

The second requirement, and this one seemed to be forgotten by many when using binaries,

sudo chown -R root:wheel VoltageShift.kext

Without change of ownership, even if you executed command voltageshift info in terminal, nothing would be echoed/returned back in terminal shell.

Once done, you can run voltage shift with the following command,

./voltageshift info


If you want to fire up voltageshift as command from within terminal window, you should copy voltageshift to /usr/local/bin/ and VoltageShift.kext to /Library/Extensions/ and make sure to change ownership of kext within the library extensions folder using chown command as mentioned above.

sudo cp voltageshift /usr/local/bin

sudo cp -r VoltageShift.kext /Library/Extensions/

Now you can run _voltagehift in terminal window as command,

voltageshift info

I like to do this to use voltageshift within apple scripts (Automator) to cycle up/down CPU for intensive workloads.

ghost avatar Nov 28 '20 08:11 ghost

Thanks for authored for this valuable detail. PROCHOT is hard to support in MacOS, because real MacBook in BootCamp is not able to control PROCHOT, something Apple restrictions. I am currently not in use any PC , so i am not able to implement specially for Hackintosh.

In real Mac devices, user can use system tool powermetrics to check cpu frequency without inject any 3rd tools or change CSR setting: sudo powermetrics --samplers cpu_power

sicreative avatar Dec 06 '20 05:12 sicreative

If you're hesitant to mess around with your /usr/local/bin directory, you can also create a Bash alias.

Open Terminal and run:

nano ~/.bash_profile

Add the line:

alias voltageshift="/your/path/to/voltageshift"

Exit and save changes (Ctrl+X > Y > Enter) and restart Terminal.

You can now run voltageshift info etc from anywhere.

WhiteMac avatar Jan 03 '21 10:01 WhiteMac