header image
[ # ] Laptop Display closed => Display off
April 8th, 2007 under Linux

For all those who want their laptop to be a little bit less power consuming try this to turn off the display when the laptop lid is closed. ACPI Daemon and vbetool are needed for this to work.

/etc/acpi/events/lid:

event=button[ /]lid
action=/etc/acpi/lid.sh %e

/etc/acpi/lid.sh:

#!/bin/bash
if [ ! “$(cat /proc/acpi/button/lid/LID/state | grep open)” = “” ]; then
vbetool dpms on
else
vbetool dpms off
fi


Write a comment