LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-12-2004, 04:30 PM   #1
chud67
Member
 
Registered: Jul 2004
Location: San Antonio, TX, USA
Posts: 34

Rep: Reputation: 15
enable hibernate or sleep in laptop running Slack9.1


I'm going to need to move my Toshiba laptop, and rather than going through the trouble of shutting it down and rebooting, how can I either sleep, standby, or hibernate with it?
 
Old 10-12-2004, 07:50 PM   #2
worldwiderob
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware
Posts: 22

Rep: Reputation: 15
If you have enabled APM or ACPI power management in Linux, you should just be able to shut your laptop lid and it will go into a lower power state. Use ACPI if possible, it is more recent.

I don't own a Toshiba, but some laptops allow you to specify whether shutting the lid is hibernate or just standby. Probably you can set this in the BIOS (you may have to use a configuration utility for your laptop.) I've never tried hibernating in Linux, but standby works fine on my ol' Thinkpad.

There are some cool power management and laptop howtos out there - just google for them.

Hope that helps a little
Rob
 
Old 08-11-2006, 06:16 AM   #3
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Rep: Reputation: 15
Grrrrr

I have googled and this is the 10th page on the list. GRRRRRR. All the results right now point to results pointing to google. Gross. I wish people would post actual links instead of shouting "Google". That, or don't post at all.

This worked for me on Slackware 10.1 and a Fujitsu Siemens Stylistic 4110 Tablet PC

http://www.linux.com/article.pl?sid=06/05/24/1716222

Basically, if you have acpi compiled in,
Quote:
echo -n mem > /sys/power/state
will suspend your pc. but the screen will be blank when resuming...
Off to write a little script you go...

Quote:
!/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
As for X

Quote:
Section "Device"
Identifier "intel_855gm"
Driver "i810"
BusID "PCI:0:2:0"
Option "VBERestore" "true"
EndSection
Note the Option "VBERestore" "true"

Last edited by tunasashimi; 08-11-2006 at 06:27 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting my laptop to Hibernate or Sleep Scott7 Debian 2 10-15-2005 06:33 AM
Hibernate Laptop lennysokol Linux - Laptop and Netbook 4 05-02-2005 09:23 PM
sleep / suspend / hibernate on Toshiba laptop (satellite 2410) cpbl Linux - Laptop and Netbook 0 01-16-2005 01:55 PM
How do i enable DMA in slack9.1 krussell Linux - Hardware 4 12-11-2003 02:22 AM
how do i enable 4CH sound with cm8738 with ALSA on slack9.1 hypermegachi Linux - Hardware 2 10-29-2003 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration