The iPhone gets at most 8 hours of battery life during active internet and phone use, but lasts for 24 hours when the LCD is off during audio playback.
That’s a substantial difference in power consumption when the LCD is off. Granted, I’m sure it employs a myriad of other power optimizations during audio playback and standby mode, but my best guess is that turning off the LCD probably has the single greatest effect on battery life.
Leave it to Apple to design a product that encourages people to press a sleep button every single time they put the device down. It’s hard enough for a lot of people to remember to shutdown their computers overnight, let alone do something as simple as turn the off the lights when they leave the room. Yet something inherent in the design of the iPhone compels its users to press the sleep button in between every short use of the phone.
Why don’t we do this on laptops?
I’m not talking about putting them into sleep mode in the traditional meaning of the word, but why isn’t it common practice to switch off power to the LCD when you’re momentarily not using it?
In class last week, I realized that I was using my laptop only about every 4-5 minutes, which was just long enough for the “black” screensaver to kick in, but the whole time I wished there was a way to just go straight to powering down the LCD instead of having to wait the 30 minutes for it to happen automatically.
By pure coincidence, I stumbled across this post over at Ubuntu Brainstorm a few days later, which almost exactly describes what I had been wanting. No one’s come up with a real working implementation of the idea yet, but several commenters suggested the following command,
xset dpms force off (more info)
which will immediately put the screen into a power saving mode. It wakes back up after keyboard or mouse input, just like a screensaver.
This could be integrated into all kinds of clever scripts, but all I want is a quick hotkey to run it. I used the Commands settings in CompizConfig (there are probably a hundred other ways to do this) to establish the following hotkey:
<Super>Z: sleep 0.2s && xset dpms force off
sleep 0.2s is there to delay the command just long enough that the press of the hotkey itself doesn’t immediately wake the screen back up.
I also thought it would be nice to do this when locking the screen too. Accomplishing this was just a matter of disabling the original <Control><Alt>L hotkey and establishing a replacement:
<Control><Alt>L: gnome-screensaver-command --lock && sleep 2s && xset dpms force off
Most laptops already power off the LCD the when you close the lid, so I’ve heard it suggested that people should just use that instead. It does save power, but it’s just not as convenient as it could be. It takes more time to close the lid than it does to tap a hotkey, and opening the lid back up again is one extra step that could be avoided. In many situations, such as in the classroom, it would be considered inappropriate to repeatedly open and close a laptop all the time. It makes noise and it’s visually distracting. Besides, it’s not uncommon for people to want their laptops to enter a full suspended mode when the lid is closed, which makes the lid mechanism unusable for a quick LCD switch off in the first place.