LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Suspend/hibernate prob. HP 6420 (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/suspend-hibernate-prob-hp-6420-a-596619/)

zimz 11-02-2007 10:03 AM

Suspend/hibernate prob. HP 6420
 
Hello there folks!
I'm pretty new to Linux, and I love it! :) But unfortunately I'm having a problem with suspend/hibernate, both in LinuxMint and Zenwalk... Tried a lot of things, but haven't got to far. Soo, I'm just wondering if you guys have any suggestions?
Maybe someone has the same laptop or something...?

-zimz-

vatten 11-02-2007 03:43 PM

If you are using the closed driver fglrx for your ati card you might have do unload fglrx before suspending
Code:

sudo rmmod fglrx
This worked for me when having the same problem.
you can also check what states your computer supports
Code:

cat /sys/power/state
And if you have support for mem or and disk it should work
You can also try suspending manually
Code:

sudo echo mem > /sys/power/state
to suspend to memory or
Code:

sudo echo disk > /sys/power/state
to hibernate to disk


I hope this will work for you, and as i said i think it is the fglrx driver. I tried the latest driver for ati and didn't have that problem.

zimz 11-03-2007 06:14 AM

Hi, again! Thank's, but it's still not working. The graphics card is a Nvidia tough. When I typed in
Code:

cat /sys/power/state
it said mem disk. Tried to suspend manually, but then I just got "Permission denied". :confused:

-zimz-

Fluxx 11-03-2007 09:50 AM

I hibernate my notebooks (various types, various graphic-chips) with a little script (I know there are hibernate scripts too, but I do not need these scripts):

Code:

#!/bin/sh
# switch to virtual terminal 1 to avoid graphics
# corruption in X
chvt 1
/sbin/hwclock --systohc

# write all unwritten data (just in case)
sync

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

/sbin/hwclock --hctosys

# switch back to tty7
chvt 7

Make it executable and run it as root or as user with "sudo" and the correct line in /etc/sudoers.

If you have a NVIDIA graphic card/chip, please add to your device section the line:

Code:

Option "nvAGP" "1"
So the notebook will come back to tty7.

In your bootloader configuration have to be the append "resume=/dev/your_swap_partition" or if you use suspend2 "resume=swap:/dev/your_swap_partition".

Fluxx.


All times are GMT -5. The time now is 08:17 AM.