Difference between revisions of "Enabling power saving for the KT600"

From MythTV Official Wiki
Jump to: navigation, search
(Edit performed by mwstuffer.pl)
 
m (Fixing category tag)
Line 33: Line 33:
 
update-rc.d cool defaults 80
 
update-rc.d cool defaults 80
 
</nowiki></pre>
 
</nowiki></pre>
to enable it
+
to enable it.
[[Category Tips]]
+
[[Category: Tips]]

Revision as of 05:22, 1 March 2006

The http://www.daniel.nofftz.net/linux/Athlon-Powersaving-HOWTO.html page describes setpcihacks for different chipsets.

This is for the KT600 only

I create this script in `/etc/init.d/cool`

#! /bin/sh

N=/etc/init.d/cool

set -e

case "$1" in
  start)
        # Turn on Athlon powersaving for KT600 chipsets
        # from http://www.daniel.nofftz.net/linux/Athlon-Powersaving-HOWTO.html
        setpci -v -H1 -s 0:0.0 D2=$(printf %x $((0x$(setpci -H1 -s 0:0.0 D2) | 0x80)))
        setpci -v -H1 -s 0:0.0 D5=$(printf %x $((0x$(setpci -H1 -s 0:0.0 D5) | 0x02)))
        ;;
  stop|reload|restart|force-reload)
        setpci -v -H1 -s 0:0.0 D2=$(printf %x $((0x$(setpci -H1 -s 0:0.0 D2) & 0x7f)))
        setpci -v -H1 -s 0:0.0 D5=$(printf %x $((0x$(setpci -H1 -s 0:0.0 D5) & 0xfd)))
        ;;
**)
        echo "Usage: $N {start|stop|restart|force-reload}" >&2
        exit 1
        ;;
esac

exit 0
Then run
update-rc.d cool defaults 80

to enable it.