puppy 2.10 on toshiba tecra 8100 with ACPI power saving

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
cobelloy
Posts: 204
Joined: Mon 23 May 2005, 07:12
Location: Karratha W.Australia

puppy 2.10 on toshiba tecra 8100 with ACPI power saving

#1 Post by cobelloy »

Puppy 2.10 on a toshiba tecra 8100

pentium3 750 MHz
128 MB ram
Wifi : Netgear WG511v3

Wifi card has 100% functionality and reliability with ndiswrapper
-add this line to /etc/rc.d/rc.local to activate card at boot:
modprobe ndiswrapper

Power management
puppy acpi=force boot parameter
-type this at boot if booting from CD
-add this to the /boot/grub/menu.lst entry for puppy if booting from HDD

then :

modprobe ac
modprobe battery
modprobe fan
modprobe processor
modprobe thermal

-add the above lines to /etc/rc.d/rc.local to activate the sensors at boot
*this means you dont need to type them in on every subsequent boot

open a terminal (rxvt)
type : wmpower

a little box will appear with a meter showing remaining power/time, an icon to display whether you are under battery or AC power and fan speed and cpu temp display.

suspend function:

copy this text to a text file and save it as /usr/sbin/suspend.sh
then drag it to the desktop to create a desktop icon for it

------------------------------------------------

#!/bin/sh

# discover video card's ID
ID=`lspci | grep VGA | awk '{ print $1 }' | sed -e 's@0000:@@' -e 's@:@/@'`

# securely create a temporary file
TMP_FILE=`mktemp /var/tmp/video_state.XXXXXX`
trap 'rm -f $TMP_FILE' 0 1 15

# switch to virtual terminal 1 to avoid graphics
# corruption in X
chvt 1

# write all unwritten data (just in case)
sync

# dump current data from the video card to the
# temporary file
cat /proc/bus/pci/$ID > $TMP_FILE

# suspend
echo -n mem > /sys/power/state

# restore video card data from the temporary file
# on resume
cat $TMP_FILE > /proc/bus/pci/$ID

# switch back to virtual terminal 7 (running X)
chvt 7

# remove temporary file
rm -f $TMP_FILE

----------------------------------------------

click the icon - laptop suspends to ram, click the on/off button - laptop powers up again but will stop on a blank screen

ctrl-alt-F3

session will be restored

Post Reply