Lately I had some problems with my macbook air. Random system freezes, and unresponsive keyboard & touchpad after re-opening the lid.I first tried a memory diagnostic (by booting pressing 'D') to discard a memory fault, but the RAM was OK. After surfing the web I found that I may have been needing to reset the SMC (System Management Controller). So I did, it but in the end the system continued to randomly freeze after plugging some USB devices.
Reset Macbook Air's SMC
- Shut down the computer
- Plug in the power adapter if its not already connected.
- On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
- Release all the keys and the power button at the same time.
- Reboot as usual.
In the end the culprit of this behavior was the android file transfer tool. What solved my issue was to disable the autostart of this application.