Sunday, February 23, 2014

Rooted Android Phones: Force All CPUs Active

Open Terminal Emulator, execute [For example on a quad core]:

!Get Root Acces
#su

!Read CPU information 
#cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
#cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
#cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
#cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
#cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq

!Make the files writable
#chmod 666 /sys/devices/system/cpu/cpu0/online
#chmod 666 /sys/devices/system/cpu/cpu1/online
#chmod 666 /sys/devices/system/cpu/cpu2/online
#chmod 666 /sys/devices/system/cpu/cpu3/online
#chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

!Set online status to 1 and make the files readonly
#echo 1 > /sys/devices/system/cpu/cpu0/online && chmod 444 /sys/devices/system/cpu/cpu0/online

#echo 1 > /sys/devices/system/cpu/cpu1/online && chmod 444 /sys/devices/system/cpu/cpu1/online

#echo 1 > /sys/devices/system/cpu/cpu2/online && chmod 444 /sys/devices/system/cpu/cpu2/online

#echo 1 > /sys/devices/system/cpu/cpu3/online && chmod 444 /sys/devices/system/cpu/cpu3/online

!Set CPU scaling to interactive and make the file readonly
#echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor && chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor


Good Luck.

Apple Mac Cleaning Utilities

There are many Apple Mac cleaning utilities out there. I have used some of them, out of testing, and I'm listing the ones I like in the order which I liked:


  • OnyX.app
  • Yasu
  • Cache Out X.app
  • MainMenu Pro.app
  • Trash It!.app
  • CleanMyMac.app
  • Lion Cache Cleaner.app
  • TinkerTool.app
  • iTweaX.app

Rooted Android Phones: Force All CPUs Active

Open Terminal Emulator, execute [For example on a quad core]:

!Get Root Acces
#su

!Read CPU information 
#cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
#cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
#cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
#cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
#cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq

!Make the files writable
#chmod 666 /sys/devices/system/cpu/cpu0/online
#chmod 666 /sys/devices/system/cpu/cpu1/online
#chmod 666 /sys/devices/system/cpu/cpu2/online
#chmod 666 /sys/devices/system/cpu/cpu3/online
#chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

!Set online status to 1 and make the files readonly
#echo 1 > /sys/devices/system/cpu/cpu0/online && chmod 444 /sys/devices/system/cpu/cpu0/online

#echo 1 > /sys/devices/system/cpu/cpu1/online && chmod 444 /sys/devices/system/cpu/cpu1/online

#echo 1 > /sys/devices/system/cpu/cpu2/online && chmod 444 /sys/devices/system/cpu/cpu2/online

#echo 1 > /sys/devices/system/cpu/cpu3/online && chmod 444 /sys/devices/system/cpu/cpu3/online

!Set CPU scaling to interactive and make the file readonly
#echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor && chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor


Good Luck.

Wednesday, February 5, 2014

Organize Things On OSX With Symbolic Links

If you want to move for example your Downloads folder to another drive, you can use Symbolic links to do that and organize your folders. Here is how:


  1. Ensure that you are working within your home folder, type
    cd
  2. Move the Downloads folder to your second drive, replacing Data (the name of my second drive) with whatever yours is called. You may be prompted for your OS X password.
    sudo mv ~/Downloads /Volumes/Data/Downloads
  3. Create a symlink to allow you to access your new Downloads folder in the old location. Again, replace Data with the name of your second drive.
    ln -s /Volumes/Data/Downloads ~/Downloads

Saturday, February 1, 2014

Speed Up Apple MacBook/Pro CPUs (Disable Throttling) and Overall Performance via EFI Settings


The below are command combinations I've tested and have found to speed up any MacBook/Pro (x86). Execute each line from the terminal then reboot.

Boot Args

sudo nvram boot-args="arch=x86_64"
Allows Mac OS X to boot into 64-bit mode. Mac OS X Snow Leopard (and all versions beyond it) will boot into 64-bit mode by default. Nowadays, this boot flag is mainly used on AMD Hackintoshes, where choosing between 32-bit mode and 64-bit mode is actually important.

sudo nvram boot-args="idlehalt=0"
Setting idlehalt=0 causes the kernel to stop halting a CPU core if no other thread in that core is active, idlehalt=1 causes the core to go into a low-power mode. An x86-only argument.


sudo nvram boot-args="UseKernelCache=Yes"
Mac OS X Lion and Mountain Lion can use the kernel cache to install kexts, allowing Mac OS X to boot faster. However, the kernel cache is turned off by default, and you have to enable it by using the boot flag "UseKernelCache=Yes" (without quotation marks). Installing Easybeast or UserDSDT with Multibeast will automatically turn the kernel cache on for you. If Mac OS X is booting extremely slow on your Hackintosh, the kernel cache might be malfunctioning. In addition, some laptops have trouble with the kernel cache feature. In these cases, you can turn the cache off with "UseKernelCache=No" (without quotation marks). Turning off the kernel cache is equivalent to using the "-f" bootflag in Snow Leopard.

sudo nvram boot-args="darkwake=0"
The DarkWake feature in Mac OS X Lion and Mountain Lion allows you to wake up certain parts of your Mac from sleep, while leaving other parts in sleep mode. Unfortunately, this feature often messes up sleep on Hackintoshes. Enter this bootflag to turn it off (enter darkwake=1 to turn it on, if turning it off doesn't do the trick). Additionally, if your verbose bootup is freezing at a bunch of commands that mention "SleepEnabler.kext", entering darkwake=0 should be able to turn SleepEnabler.kext off. (Once you boot into OS X, be sure to remove SleepEnabler.kext completely by deleting it from either /Extra/Extensions or /System/Library/Extensions in your hard drive.)