LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 07-02-2012, 08:41 PM   #1
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 314
Blog Entries: 1

Rep: Reputation: 31
Problems with suspend to RAM after upgrading to wheezy


I've upgraded my debian box from squeeze to wheezy, using the apt-get dist-upgrade procedure.
Everything went fine, but I'm having some issues with both suspend to ram and hibernate. System goes to sleep, but when it wakes up it seem to be some problem with memory (I suppose) cos' I get some error like ('segment fault') when running standard applications, like Firefox. If I reboot the system goes ok.

The kernel I'm using is:
Code:
# uname -r
3.2.0-2-686-pae
I'm running Kde 4.3

In pm-suspend.log I don't see any error:

Code:
/usr/lib/pm-utils/sleep.d/95anacron hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm hibernate hibernate:

/usr/lib/pm-utils/sleep.d/95hdparm-apm hibernate hibernate: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/95led hibernate hibernate:

/usr/lib/pm-utils/sleep.d/95led hibernate hibernate: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate:
nVidia binary video drive detected, not using quirks.

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/99video hibernate hibernate:

/usr/lib/pm-utils/sleep.d/99video hibernate hibernate: success.
Sun Jul  1 13:04:30 ART 2012: performing hibernate
Sun Jul  1 15:17:10 ART 2012: Awake.
Sun Jul  1 15:17:10 ART 2012: Running hooks for thaw
Running hook /usr/lib/pm-utils/sleep.d/99video thaw hibernate:

/usr/lib/pm-utils/sleep.d/99video thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler thaw hibernate:

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/95led thaw hibernate:

/usr/lib/pm-utils/sleep.d/95led thaw hibernate: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm thaw hibernate:

/usr/lib/pm-utils/sleep.d/95hdparm-apm thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/95anacron thaw hibernate:

/usr/lib/pm-utils/sleep.d/95anacron thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq thaw hibernate:

/usr/lib/pm-utils/sleep.d/94cpufreq thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock thaw hibernate:

/usr/lib/pm-utils/sleep.d/90clock thaw hibernate: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/75modules thaw hibernate:
Reloaded unloaded modules.

/usr/lib/pm-utils/sleep.d/75modules thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager thaw hibernate:
Having NetworkManager wake interfaces back up...Failed.

/usr/lib/pm-utils/sleep.d/55NetworkManager thaw hibernate: success.
Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate thaw hibernate:

/etc/pm/sleep.d/10_unattended-upgrades-hibernate thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave thaw hibernate:

/usr/lib/pm-utils/sleep.d/00powersave thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging thaw hibernate:

/usr/lib/pm-utils/sleep.d/00logging thaw hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change thaw hibernate:

/usr/lib/pm-utils/sleep.d/000kernel-change thaw hibernate: success.
Sun Jul  1 15:17:11 ART 2012: Finished.
Any piece of advice? Might be a problem with this kernel image/version?
Actually I starting having this issue when I did the last upgrade with squeeze after upgrading to Wheezy (and that was 2.6.32 series kernel).

Thanks in advance.
 
Old 07-03-2012, 12:32 AM   #2
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 510

Rep: Reputation: 102Reputation: 102
Maybe related to kde and/or the upgrade procedure. I have no issues suspending/hibernating my laptop (intel cpu) and my desktop (amd cpu), both with nvidia cards and running wheezy with xfce.
Although i didnt upgrade them directly (but they were installed first when squeeze was testing) - i use debian testing.
 
Old 07-03-2012, 07:14 PM   #3
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 314
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Thanks for your reponse.
I'll see if I can find the reason of this issue... My desktop is based on AMD cpu with nvidia graphics.
 
Old 07-03-2012, 09:26 PM   #4
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 314
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Well I found this souspicious lines within my /var/log/syslog:

Code:
Jul  3 23:14:45 matux anacron[5347]: Anacron 2.3 started on 2012-07-03
Jul  3 23:14:46 matux anacron[5347]: Normal exit (0 jobs run)
Jul  3 23:14:47 matux kernel: [ 2331.059748] PM: Syncing filesystems ... done.
Jul  3 23:14:47 matux kernel: [ 2331.065792] PM: Preparing system for mem sleep
Jul  3 23:15:04 matux acpid: client 2489[0:0] has disconnected
Jul  3 23:15:04 matux kernel: [ 2331.314869] Freezing user space processes ... (elapsed 0.01 seconds) done.
Jul  3 23:15:04 matux kernel: [ 2331.328033] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Jul  3 23:15:04 matux kernel: [ 2331.344025] PM: Entering mem sleep
Jul  3 23:15:04 matux kernel: [ 2331.344046] Suspending console(s) (use no_console_suspend to debug)
Jul  3 23:15:04 matux kernel: [ 2331.344353] sd 2:0:0:0: [sda] Synchronizing SCSI cache
Jul  3 23:15:04 matux kernel: [ 2331.347407] i8042 kbd 00:0a: wake-up capability enabled by ACPI
Jul  3 23:15:04 matux kernel: [ 2331.347709] serial 00:05: disabled
Jul  3 23:15:04 matux kernel: [ 2331.349556] sd 2:0:0:0: [sda] Stopping disk
Jul  3 23:15:04 matux kernel: [ 2331.353910] pata_atiixp 0000:00:14.1: PCI INT A disabled
Jul  3 23:15:04 matux kernel: [ 2331.360985] ohci_hcd 0000:00:13.1: PCI INT B disabled
Jul  3 23:15:04 matux kernel: [ 2331.376026] ehci_hcd 0000:00:13.5: PCI INT D disabled
Jul  3 23:15:04 matux kernel: [ 2331.424049] ohci_hcd 0000:00:13.4: PCI INT C disabled
Jul  3 23:15:04 matux kernel: [ 2331.424061] ohci_hcd 0000:00:13.0: PCI INT A disabled
Jul  3 23:15:04 matux kernel: [ 2331.424074] ohci_hcd 0000:00:13.2: PCI INT C disabled
Jul  3 23:15:04 matux kernel: [ 2331.424091] ohci_h<FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF>
<FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF>
<FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF>
<FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF>
<FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF>
<FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF>
<FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF>
<FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF>
<FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF>
<FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF>
<FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF><FF>
.288064] hub 2-0:1.0: unable to enumerate USB device on port 2
Jul  3 23:15:04 matux kernel: [ 2335.288090] usb 1-2: USB disconnect, device number 2
Jul  3 23:15:04 matux kernel: [ 2335.288408] scsi 6:0:0:0: killing request
Jul  3 23:15:04 matux anacron[5780]: Anacron 2.3 started on 2012-07-03
Jul  3 23:15:04 matux anacron[5780]: Normal exit (0 jobs run)
Jul  3 23:15:04 matux kernel: [ 2335.548059] usb 1-2: new high-speed USB device number 4 using ehci_hcd
Jul  3 23:15:04 matux kernel: [ 2335.558274] kcminit[5866]: segfault at 80485e4 ip b77b091f sp bfea38dc error 7 in ld-2.13.so[b77ae000+1c000]
Jul  3 23:15:04 matux kernel: [ 2335.682482] usb 1-2: New USB device found, idVendor=0dda, idProduct=2026
Jul  3 23:15:04 matux kernel: [ 2335.682486] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul  3 23:15:04 matux kernel: [ 2335.682489] usb 1-2: Product: USB2.0 Card Reader
Jul  3 23:15:04 matux kernel: [ 2335.682491] usb 1-2: Manufacturer: ICSI
Jul  3 23:15:04 matux kernel: [ 2335.682492] usb 1-2: SerialNumber: 0000001
Jul  3 23:15:04 matux kernel: [ 2335.683586] scsi7 : usb-storage 1-2:1.0
Jul  3 23:15:04 matux udevd[5869]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:13.5/usb1/1-2 1 4': No such file or directory 
Jul  3 23:15:05 matux kernel: [ 2336.681519] scsi 7:0:0:0: Direct-Access     ICSI     IC1210        CF 1.6E PQ: 0 ANSI: 0 CCS
Jul  3 23:15:05 matux kernel: [ 2336.682627] scsi 7:0:0:1: Direct-Access     ICSI     IC1210        MS 1.6E PQ: 0 ANSI: 0 CCS
Jul  3 23:15:05 matux kernel: [ 2336.683876] scsi 7:0:0:2: Direct-Access     ICSI     IC1210    MMC/SD 1.6E PQ: 0 ANSI: 0 CCS
Jul  3 23:15:05 matux kernel: [ 2336.685007] scsi 7:0:0:3: Direct-Access     ICSI     IC1210        SM 1.6E PQ: 0 ANSI: 0 CCS
Jul  3 23:15:05 matux kernel: [ 2336.696306] sd 7:0:0:0: [sdb] Attached SCSI removable disk
Jul  3 23:15:05 matux kernel: [ 2336.698507] sd 7:0:0:1: [sdc] Attached SCSI removable disk
Jul  3 23:15:05 matux kernel: [ 2336.700177] sd 7:0:0:2: [sdd] Attached SCSI removable disk
Jul  3 23:15:05 matux kernel: [ 2336.700377] sd 7:0:0:3: [sde] Attached SCSI removable disk
 
Old 08-07-2012, 08:57 PM   #5
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 314
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Well, finally I think I found the reason of this problem: more swap space is needed.
I tried reducing total ram setting kernel parameter mem=1G at boot time and then, suspend to ram worked ok. Hibernation was already working, so it seems to be related to the fact there's no enough swap space. So I'll have to increase swap. When I installed this debian box I haven't so much RAM.
Now it has 4Gb RAM but swap is just 2650688 bytes. My kernel is 32bits (3.2.0-3-686-pae) has Physical Address Extension.

Does anybody if pm-utils works doing a full snapshot of memory area to swap, I mean without compressing?
Swap space should be at least 2 x total RAM in order to suspend work fine?
 
Old 08-08-2012, 11:33 AM   #6
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 121Reputation: 121
Suspend or hibernate?

I am confused.

Do you mean suspend as in suspend to RAM or suspend to disk?

Hibernate is the term used for suspend to disk i.e. the swap partition. It powers off the system completely. Sleep or suspend is to RAM, meaning a small light will be blinking in your power switch, using minimal power and the system will come to life in a touch of a button. Hibernate, is full power off.

Last edited by vharishankar; 08-08-2012 at 11:34 AM.
 
Old 08-09-2012, 07:28 AM   #7
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 314
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Vharishankar, thanks so much for your reply.
suspend-to-disk (hibernate) works fine. Suspend-to-ram tend to fail. What I discovered is suspend-to-ram doesn't fail if I reduce the amount of total ram at boottime, passing mem parameter to kernel.
After reading your comment and thinking it a little bit more, I'm afraid suspend-to-ram doesn't use swap space at all... So, problem may not be related with swap.

When I don't limit total ram suspend-to-ram fails when resuming. When system awakes it seems to appear any kind of memory management corruption, as long as every new program tend to fail with "segment fault" or acessing its shared libraries.

I activated debug options for pm-utils, but I didn't find any suspect message within system and pm-utils logs.

I'll do some more testing. Limiting ram to 2 and 3 Gb. And also removing some "physical" memory, just to see what happens.

Any suggestion are very appreciated.

Regards,
Matías
 
Old 08-09-2012, 08:30 AM   #8
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 121Reputation: 121
I would suggest trying with a newer version of the kernel. These suspend/hibernate problems are very troublesome in Linux and more work than they're worth trying to figure out.

It could be a kernel driver issue which is causing this. Sorry not to be of more assistance.
 
Old 08-09-2012, 08:51 PM   #9
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 314
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Thanks a lot anyway.
I did some interesting tests: if I set a memory limit suspend-to-ram works ok. If I set a limit higher than 3.2 free command sticks in 3.2 Gb.
If I don't set a limit at boot time, free says the amount of memory to 4Gb which is the actual physical memory.

Not setting mem=LIMIT at boot time:

Code:
$ free -h
             total       used       free     shared    buffers     cached
Mem:          4,0G       830M       3,1G         0B        21M       484M
-/+ buffers/cache:       325M       3,6G
Swap:         2,5G         0B       2,5G
Unless I found another solution I think I'll keep with this workaround.
 
Old 08-10-2012, 07:56 AM   #10
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 314
Blog Entries: 1

Original Poster
Rep: Reputation: 31
You're welcome!
I'll keep on researching, tryin' to find the real reason. Dou you have the same issue?

Last edited by matiasar; 08-10-2012 at 08:14 AM.
 
  


Reply

Tags
hibernate, squeeze, suspend


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
Problems after resuming from suspend to ram chessonly Linux - General 1 08-10-2012 07:55 AM
Various user privilege problems after upgrading to Debian Wheezy KGyST Linux - Software 3 05-01-2012 02:16 PM
[SOLVED] Suspend to RAM problems with slack64 13.1 lpallard Slackware 72 01-13-2011 10:16 PM
Suspend to RAM problems broxtor Ubuntu 0 03-31-2007 02:40 AM
How to suspend to ram ? I have problems. gkiagia Linux - Laptop and Netbook 3 09-09-2006 03:45 AM


All times are GMT -5. The time now is 12:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration