Pages

Monday, February 28, 2011

How to hibernate instead of standby when closing the lid of macbook(pro|air)

Sometimes, we probably prefer to hibernate my mbp instead of make it standby when closing the lid. I am wondering why there is no GUI setting for this simple matter. The only way that I know is by using command pmset from the terminal window as follow:

(1) To enable the hibernate:
$ sudo pmset -a hibernatemode 5

(2) To switch back (standby):
$ sudo pmset -a hibernatemode 0

Or for more detail of pmset command, read the manual (man pmset).

That's all :)

Saturday, February 26, 2011

How to show full path in Mac OSX Finder window title bar

To show the complete path in the Finder title bar of Mac OSX (maybe only for OSX 10.5 and newer), type the following two commands in terminal:

$ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
$ killall Finder

And to reverse:

$ defaults write com.apple.finder _FXShowPosixPathInTitle -bool NO
$ killall Finder

That's all :)