LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-20-2007, 07:11 AM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,345

Rep: Reputation: 75
Suspend problem. Dell inspiron


I am trying to get suspend working on my Dell Inspiron.

Quote:
echo -n mem > /sys/power/state
suspends the machine but on resuming the video is all wrong as if frames are scrolling quickly. Ctrl-Alt-Backspace to restart kde does not help and Alt-F6 shows the same on the other console

Quote:
I have tried this script

#!/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
but this is no better. Any ideas?
 
Old 12-20-2007, 07:48 AM   #2
Fluxx
Member
 
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225

Rep: Reputation: 30
Which graphic card/chip do you use in your Dell?

I experienced with NVIDIA-Chips in notebooks, that there is a line missing in /etc/X11/xorg.conf, so that the X-Server is corrupted at reboot/resume.

I added in the device section (under the line driver "nvidia")

Code:
Option "nvAGP" "1"
and suspend-to-RAM and suspend-to-disk are working without any problems.

Fluxx.
 
Old 12-20-2007, 07:57 AM   #3
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,345

Original Poster
Rep: Reputation: 75
ATI Radeon. Using the standard driver that came with Slackware. I have not installed any proprietary driver
 
Old 12-20-2007, 08:03 AM   #4
Fluxx
Member
 
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225

Rep: Reputation: 30
And what happens with

Code:
chvt 1 && echo -n mem > /sys/power/state && chvt 7
?

Fluxx.
 
Old 12-20-2007, 08:16 AM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,345

Original Poster
Rep: Reputation: 75
The same. Suspends but video scrambled on resume
 
Old 12-20-2007, 08:32 AM   #6
Fluxx
Member
 
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225

Rep: Reputation: 30
Another question (I ask, because I have here 10 notebooks with different graphicchips and all are working fine with both kinds of suspend):

Do you use a custom kernel?
Do you use suspend or suspend2 (patch from tuxonice)?

In Kernel 2.6.23.9 and higher (may be also before, I didn't realize it earlier) suspend-to-RAM and suspend-to-disk are included in the kernel sources. There is no patch needed to have a working suspend.

Fluxx.
 
Old 12-20-2007, 08:53 AM   #7
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,345

Original Poster
Rep: Reputation: 75
I am running a 23.9 kernel based on Pat's generic-smp config for slackware 12. The only thing I have changed is to have ext3 support built in and specifiying athlon/opteron. For all the other options that changed from 21 to 23 I used the default values.


No pathches
 
Old 12-20-2007, 10:13 AM   #8
Fluxx
Member
 
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225

Rep: Reputation: 30
And if you run a suspend-to-disk? Are there any problems?

Fluxx.
 
Old 12-20-2007, 10:19 AM   #9
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,345

Original Poster
Rep: Reputation: 75
echo -n standby > /sys/power/state

bash: echo: write error: No such device
 
Old 12-20-2007, 10:30 AM   #10
Fluxx
Member
 
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225

Rep: Reputation: 30
My command to give the start to a suspend-to-disk is

Code:
chvt 1 && echo -n disk > /sys/power/state && chvt 7
You need in your /etc/lilo.conf an append line for the resume:

Code:
image = ...
root = ...
append = "resume=/dev/hdaX"
label = ...
vga = ...
read-only
hdaX is your SWAP-Partition (may be sdaX, if you use a SATA-controller/disk)

Fluxx.

Last edited by Fluxx; 12-20-2007 at 10:32 AM.
 
Old 12-20-2007, 04:41 PM   #11
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by arubin View Post
echo -n standby > /sys/power/state

bash: echo: write error: No such device
for sure "echo -n standby" will not work. You can echo to disk or mem. (Use 'cat /sys/power/state' to find out your options).

Personally, I needed to use tuxonice (formerly suspend2) to get suspend to RAM to work. Hibernate worked out of the box.

Brian
 
Old 12-20-2007, 05:23 PM   #12
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
Try s2ram from http://souceforge.net/projects/suspend/ (make s2ram, make install-s2ram). If your system is not whitelisted, try several times forcing different methods.
 
Old 12-21-2007, 04:49 AM   #13
eddyvp
Member
 
Registered: Feb 2007
Location: Belgium
Distribution: Slackware
Posts: 37

Rep: Reputation: 17
Hello,

I've added the VBERestore option to xorg.conf and the graphical card works OK with suspend.
Might also work for you.

Code:
        Driver      "ati"
        VendorName  "ATI Technologies Inc"
        BoardName   "Radeon R250 [Mobility FireGL 9000]"
        BusID       "PCI:1:0:0"
        Option      "VBERestore"        "true"

greetings,

Eddy
 
Old 12-21-2007, 05:01 AM   #14
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,345

Original Poster
Rep: Reputation: 75
I already have

Quote:
Option "VBERestore" "true"
in xorg.conf

and I have

Quote:
resume=/dev/sda6
in GRUB

I do not have the laptop with me now but wil try your suggestions at the weekend. Is ther anything to be gained by trying the driver from ATI?
 
Old 12-21-2007, 05:57 AM   #15
Fluxx
Member
 
Registered: Aug 2005
Location: Bavaria, Germany
Distribution: Slackware (Current)
Posts: 225

Rep: Reputation: 30
As far as I experienced there are no problems with ATI's driver. Both kinds of suspend are working here without any problems. I use a script with these lines (I call it as user in group wheel with sudo and option NOPASSWD):

Code:
chvt 1
/sbin/hwclock --systohc
sync
echo -n disk > /sys/power/state # change disk to mem for suspend-to-RAM
/sbin/hwclock --hctosys
chvt 7
Fluxx.
 
  


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
Dell Inspiron 600m ACPI standby/suspend jfromcanada Linux - Laptop and Netbook 1 03-11-2011 02:39 PM
No suspend to RAM on Dell Inspiron dotancohen Linux - Laptop and Netbook 5 01-02-2008 05:02 PM
Disable hibernate / suspend on desktop Dell Inspiron 531s bcarl314 Mandriva 2 09-04-2007 10:48 AM
suspend to ram script, slack11 dell inspiron 8500 bioe007 Slackware 3 03-11-2007 01:24 PM
Suspend on lid close works in kde but not gnome. fedora core 6 on dell inspiron 5100 mikegorb Linux - Laptop and Netbook 1 01-21-2007 11:35 PM

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

All times are GMT -5. The time now is 03:20 AM.

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