Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 17 Jul 2019, 18:44
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
puppy 2.10 on toshiba tecra 8100 with ACPI power saving
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
cobelloy


Joined: 23 May 2005
Posts: 202
Location: Karratha W.Australia

PostPosted: Mon 09 Oct 2006, 08:18    Post subject:  puppy 2.10 on toshiba tecra 8100 with ACPI power saving  

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
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0440s ][ Queries: 11 (0.0115s) ][ GZIP on ]