Thoughts and tips for a daily coding life

2020/05/22

Fix for Macbook Pro 2014 - 2016 sudden reboots

May 22, 2020 Posted by Antanas , No comments
Use with caution. With drivers disabled you won't be able to use Thunderbolt Ethernet adapter.  
  1. Reboot with CMD+R pressed.
  2. Open Terminal, copy & paste this and press Enter:
    sudo csrutil disable
  3. Reboot in normal mode.
  4. Open Terminal, copy & paste this and press Enter:
    sudo mv /System/Library/Extensions/AppleThunderboltNHI.kext /System/Library/Extensions/AppleThunderboltNHI.kext.BAK
  5. Reboot with CMD+R pressed
  6. Open Terminal, copy & paste this and press Enter:
    csrutil enable
  7. Reboot

Fix for OSX (Catalina and others) disconnects from shared storage system

May 22, 2020 Posted by Antanas No comments
Use with caution, consequences unknown. 
Open up Terminal on your Mac and type this:
nvram boot-args
You'll get an error message. Now copy and paste this line into terminal:
sudo nvram boot-args="serverperfmode=1 $(nvram boot-args 2>/dev/null | cut -f 2-)"
When you hit return, it will ask that you enter your admin password. You will not see anything when you type. Enter your password and hit return.

Now, once again, type:
nvram boot-args
You will see this:
boot-args. serverperfmode=1
Reboot your computer.