Comment 2 for bug 505915

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 505915] [NEW] logout at resume and swap usage (suspend to ram)

On Monday 11,January,2010 10:19 PM, bruno wrote:
> Public bug reported:
>
> Binary package hint: pm-utils
>
> I use Ubuntu 9.10 64 bits with pm-utils 1.2.5-2ubuntu7. I don't talk about hibernation here.
> I can suspend to ram and resume, but sometimes, I have to do a new login (my session is not always saved). I didn't have this problem in Hardy 64 bits.
>
> I'm not sure, but It seems to be related to swap partition. I have 2 Gb
> RAM. Initially, I had 1 Gb swap. The problem was reproducible when more
> RAM was used (say VBox+other things for about 1.5 Gb usage) but happened
> more randomly even with low ram usage. Then I had the idea to increase
> the swap to 2 Gb. Magic: the problem disappeared... until I started to
> use "fast user switch". With 2 or 3 sessions opened (even with few
> applications) I often loose one of them (mine...) after a resume. I
> tried to add another 1 Gb swap partition (3 Gb total). The problem is
> still present and I'm not sure if it's better with 3 Gb than with 2 Gb.
>
> Conclusion:
> 1) swap seems to be used with suspend to ram, which seems abnormal
Swap is never used for suspend to ram. You must have been accidentally
hibernating. Try turning all your swaps off and then suspending to ram. If you
really are, then it will still work.
> 2) logout happen sometimes at resume, at least for the admin user, even with a decent swap partition.
You're probably noticing a crash in X (the display server) upon resume, or
perhaps even X getting OOM-killed, the common factor being X dying after a
suspend/resume cycle. Please post your /var/log/Xorg.*.log.old after this
happens, and also your /var/log/kern.log

  status incomplete

--
Kind regards,
Chow Loong Jin (GPG: 0x8F02A411)
Ubuntu Contributing Developer