Disable DVI chip on Beagleboard to save power

Hi

Just wanted to post this as I have searched for it myself and never
found any good tips for it. (I use Angstrom and kernel version 2.5.32)

The magic line is:

echo 0 > /sys/devices/platform/omapdss/display0/enabled
echo 0 > /sys/devices/platform/omapdss/display1/enabled

This brings nominal power consumption from 1.7W to 1.0W (very
approximate) - a substantial saving.

I also made scripts to perform this automatically when starting in
runlevel 3 (console, default level is specified in /etc/inittab):

First, I made a script file and put it in /etc/init.d/beagleboard-
disable-display.sh

It looks like this:

#! /bin/sh
### BEGIN INIT INFO
# Provides:
# Required-Start:
# Required-Stop:
# Default-Start: 3
# Default-Stop: 0 1 2 4 5 6
# Short-Description: Switches off the DVI on Beagleboard to save power
# Description:
### END INIT INFO

# Author: Tallak Tveide <tallak@tveide.net>