Terminal Tip: Keep your Mac portable from waking when the lid is opened

Filed under: , , , , ,

Although I’m a Mac Geek by trade, I tend to avoid the terminal unless I’m out of other options. I’m a GUI kind of girl. It’s the Mac OS that I love, not its Unix underpinnings. I appreciate the potential of the command line - I just don’t want to spend all day there. Still, once in a while I come across a tip like the one, which Glenn Fleishman posted in the most recent TidBITS, and I find myself unable to resist the urge to fire up the Terminal.

This tip solves a problem that I’ve experienced myself and many of my clients have complained about - laptops waking from sleep while in their cases considering the latch won’t keep the lid closed. that can cause overheating, which can lead to a variety of other problems, like hard drive failures, etc. My solution is, of course, to fix the latch! But there are times when that isn’t convenient and even whether

it’s convenient it doesn’t happen often suitable for some humans to even bother stressing about it. By harnessing the potential of pmset, the command line app that controls potential management settings, you can fix it so that your sleeping beauty stays asleep, even when the latch isn’t doing its job.

The command is an easy one - a individual line. Ready for it?

sudo pmset lidwake 0

By setting the lidwake value to 0 you prevent the machine from waking until you tap a key on your keyboard, and since the value gets written just to a plist file, it takes hold right away. Of course you’ll need administrator privileges since you’ll be asked for an admin password before the command is executed.

For more pmset options, have a look at the “man” pages at Apple’s Darwin Reference library, or open your Terminal and type “man” (without the quotes), hit return and thereupon type “pmset” (without the quotes.)

Read | Permalink | Email this | Comments

Original post by Laurie A. Duncan

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
Related Articles
  • Portable DNA evaluating Kit: It’s a CSI Lab To Go
  • Terminal Tip: Syncing your iPhone or iPod touch from the command line
  • Terminal Tip: Safari 3.1 brings true one-window mode
  • Portable Computer Has Three 17-Inch LCDs
  • Cardboard Console Turns PSP Into Mini-Arcade
  • No comments yet. Be the first.

    Leave a reply