LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-16-2010, 02:37 AM   #1
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
My ram tweak for hibernate, hope it helps


A tweak so we can have over 512mb ram and hibernate.

http://www.mjmwired.net/kernel/Docum.../interface.txt

down near the bottom of the page details what this file is about.

echo $SIZE > /sys/power/image_size

where $SIZE is what you need for your setup.

I added that to /etc/rc.d/rc.local.

Hope this helps any who need it
 
Old 02-16-2010, 11:33 AM   #2
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
That is good to know. Hibernate works on all my desktop PCs without this tweak. It may be that I've never tried to hibernate when more than 512MB of RAM is in use.

I wish I could find a similar link to help me with a suspend problem. My main desktop pm-suspend.log shows the suspend is successful but it hangs early in the process on restart requiring a hardware reset. The link you provided tells how to work with /sys/power/pm_trace which is more than I've found to date.
 
Old 02-16-2010, 10:36 PM   #3
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
hello Chuck56,

Take a look at the manual page for pm-suspend, a simple 'man pm-suspend' will show you a bunch of work arounds for quirks.

Perhaps you need to call pm-suspend using one of them?

I believe, and I'm not sure, but once you figure out which quirk gets used, then you write a config file for it in /etc/pm directories, so when KDE, or XFCE power mangler's call pm-suspend, they'll use that over-ride/quirk setting.
 
Old 02-16-2010, 11:28 PM   #4
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I wish it was that easy. On thaw after suspend my hard drives appear to lock with the activity light on. I've unscientifically dismissed the problem to the way my hard drives are installed. There are 2 PATA drives each with a PATA-SATA bridge card connecting them the the MB SATA connectors.

This pm-suspend.log is the hibernate process showing the successful hibernate followed by the Awake and successful thaw.
Code:
Initial commandline parameters: --quirk-dpms-suspend
--quirk-dpms-on
--quirk-vbestate-restore
--quirk-vbemode-restore
--quirk-vga-mode3
--quirk-vbe-post
Tue Feb 16 21:59:30 MST 2010: Running hooks for hibernate.
/usr/lib64/pm-utils/sleep.d/00auto-quirk hibernate hibernate: success.

modules listing ...

             total       used       free     shared    buffers     cached
Mem:       4044312     646944    3397368          0      77060     248024
-/+ buffers/cache:     321860    3722452
Swap:      1959856          0    1959856
success.
/usr/lib64/pm-utils/sleep.d/00powersave hibernate hibernate: success.
/usr/lib64/pm-utils/sleep.d/01grub hibernate hibernate: not applicable.
/usr/lib64/pm-utils/sleep.d/49bluetooth hibernate hibernate: not applicable.
/usr/lib64/pm-utils/sleep.d/55NetworkManager hibernate hibernate: success.
/usr/lib64/pm-utils/sleep.d/75modules hibernate hibernate: not applicable.
/usr/lib64/pm-utils/sleep.d/90clock hibernate hibernate: not applicable.
/usr/lib64/pm-utils/sleep.d/94cpufreq hibernate hibernate: success.
/usr/lib64/pm-utils/sleep.d/95led hibernate hibernate: not applicable.
/usr/lib64/pm-utils/sleep.d/98smart-kernel-video hibernate hibernate: success.
/usr/lib64/pm-utils/sleep.d/99video hibernate hibernate: success.
Tue Feb 16 21:59:31 MST 2010: performing hibernate
Tue Feb 16 22:00:38 MST 2010: Awake.
Tue Feb 16 22:00:38 MST 2010: Running hooks for thaw
/usr/lib64/pm-utils/sleep.d/99video thaw hibernate: success.
/usr/lib64/pm-utils/sleep.d/98smart-kernel-video thaw hibernate: success.
/usr/lib64/pm-utils/sleep.d/95led thaw hibernate: not applicable.
/usr/lib64/pm-utils/sleep.d/94cpufreq thaw hibernate: success.
/usr/lib64/pm-utils/sleep.d/90clock thaw hibernate: not applicable.
/usr/lib64/pm-utils/sleep.d/75modules thaw hibernate: success.
/usr/lib64/pm-utils/sleep.d/55NetworkManager thaw hibernate: success.
/usr/lib64/pm-utils/sleep.d/49bluetooth thaw hibernate: not applicable.
/usr/lib64/pm-utils/sleep.d/01grub thaw hibernate: not applicable.
/usr/lib64/pm-utils/sleep.d/00powersave thaw hibernate: success.
/usr/lib64/pm-utils/sleep.d/00logging thaw hibernate: success.
/usr/lib64/pm-utils/sleep.d/00auto-quirk thaw hibernate: success.
Tue Feb 16 22:00:39 MST 2010: Finished.
This pm-suspend.log is the suspend process showing the successful suspend but never gets to the Awake stage. At this point I'm pushing a reset button and watching a full boot process with the expected EXT4 journal recovery error warnings.
Code:
Initial commandline parameters: --quirk-dpms-suspend
--quirk-dpms-on
--quirk-vbestate-restore
--quirk-vbemode-restore
--quirk-vga-mode3
--quirk-vbe-post
Tue Feb 16 21:54:23 MST 2010: Running hooks for suspend.
/usr/lib64/pm-utils/sleep.d/00auto-quirk suspend suspend: success.

modules listing ...

             total       used       free     shared    buffers     cached
Mem:       4044312     762224    3282088          0     119580     363612
-/+ buffers/cache:     279032    3765280
Swap:      1959856     151532    1808324
success.
/usr/lib64/pm-utils/sleep.d/00powersave suspend suspend: success.
/usr/lib64/pm-utils/sleep.d/01grub suspend suspend: not applicable.
/usr/lib64/pm-utils/sleep.d/49bluetooth suspend suspend: not applicable.
/usr/lib64/pm-utils/sleep.d/55NetworkManager suspend suspend: success.
/usr/lib64/pm-utils/sleep.d/75modules suspend suspend: not applicable.
/usr/lib64/pm-utils/sleep.d/90clock suspend suspend: not applicable.
/usr/lib64/pm-utils/sleep.d/94cpufreq suspend suspend: success.
/usr/lib64/pm-utils/sleep.d/95led suspend suspend: not applicable.
/usr/lib64/pm-utils/sleep.d/98smart-kernel-video suspend suspend: success.
/usr/lib64/pm-utils/sleep.d/99video suspend suspend: kernel.acpi_video_flags = 0
success.
Tue Feb 16 21:54:24 MST 2010: performing suspend
I'm happy that at least hibernate works. I would like to have suspend work too since it is a lot faster.
 
  


Reply



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
My laptop can't hibernate/suspend to ram and turns on just by itself tobik Linux - Laptop and Netbook 2 06-15-2009 02:53 AM
when hibernate to ram, power led keeps blinking cyrilng Linux - Hardware 10 06-02-2009 06:49 AM
Tweak Ubuntu 8.10 on Pentium 3-600Mhz-128MB Ram arnaudmez Linux - Hardware 4 01-16-2009 11:40 PM
cli hibernate works but gnome panel hibernate fails BCarey Linux - Desktop 1 06-08-2007 10:21 AM

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

All times are GMT -5. The time now is 06:04 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