Advertisement
Guest User

Untitled

a guest
Dec 26th, 2016
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. I've had this in my .profile for years:
  2. alias sleepsafe='sudo pmset -a destroyfvkeyonstandby 1 hibernatemode 25'
  3. alias sleepfast='sudo pmset -a hibernatemode 0'
  4. alias sleepdefault='sudo pmset -a hibernatemode 3'
  5. Whenever I travel or need to leave my laptop, I always run `sleepsafe`, which will delete the key from memory and hibernate the computer when I close the lid. It has the added benefit of saving battery life.
  6. Day-to-day, I use `sleepfast`, which is faster than the default hybrid sleep, because it doesn't spend time copying the contents of memory to disk.
  7. I very rarely switch to `sleepdefault` which is the insecure and slower hybrid sleep.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement