LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Suspend sometimes logs me out (https://www.linuxquestions.org/questions/ubuntu-63/suspend-sometimes-logs-me-out-791326/)

taylorkh 02-24-2010 01:43 PM

Suspend sometimes logs me out
 
Ubuntu 9.10 64 bit
Dell Studio XPS 8000
i7-860 processor
8 GB RAM
nVidia GeForce GT220 video card 1 GB
nVidia restricted drivers installed
2 LCD monitors

When I am not actively using the machine I place it in Suspend from the panel menu. USUALLY when I press the power button to bring it back up I am simply asked to supply my password and I am back to the state I left things.

Occasionally I am brought to the login screen - obviously I have been logged out and all programs (including a VMWare virtual machine running on the second monitor) have been closed. I have not lost any data - I generally close all programs, except for the VM, before suspending. Still, this is quite annoying.

I am very careful to select Suspend and not Log out nor Hibernate. Any ideas how to track down the cause of this???

TIA,

Ken

rweaver 02-24-2010 02:19 PM

Check the logfiles would be the first thing to do, also verify it came out of suspend correctly and went into suspend correctly and didn't reboot in the interim.

taylorkh 02-24-2010 03:58 PM

Well I got lucky. I suspended after completing the post and it went into logoff in error. I then tried again and suspend worked as intended. In comparing the messages logs I find that the following to be identical between the two evolutions
Quote:

Feb 24 15:51:55 taylor12 kernel: [ 2957.833302] PM: Syncing filesystems ... done.
Feb 24 15:51:55 taylor12 kernel: [ 2957.835814] Freezing user space processes ... (elapsed 0.00 seconds) done.
Feb 24 15:51:55 taylor12 kernel: [ 2957.836286] Freezing remaining freezable tasks ... (elapsed 0.09 seconds) done.
Feb 24 15:51:55 taylor12 kernel: [ 2957.928583] Suspending console(s) (use no_console_suspend to debug)
Feb 24 15:51:55 taylor12 kernel: [ 2957.968409] sd 1:0:1:0: [sdc] Synchronizing SCSI cache
Feb 24 15:51:55 taylor12 kernel: [ 2957.968569] sd 1:0:1:0: [sdc] Stopping disk
Feb 24 15:51:55 taylor12 kernel: [ 2958.669056] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
Feb 24 15:51:55 taylor12 kernel: [ 2958.669215] sd 1:0:0:0: [sdb] Stopping disk
Feb 24 15:51:55 taylor12 kernel: [ 2959.369583] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Feb 24 15:51:55 taylor12 kernel: [ 2959.369827] sd 0:0:0:0: [sda] Stopping disk
Feb 24 15:51:55 taylor12 kernel: [ 2960.286675] ata_piix 0000:00:1f.5: PCI INT B disabled
Feb 24 15:51:55 taylor12 kernel: [ 2960.303917] ata_piix 0000:00:1f.2: PCI INT B disabled
Feb 24 15:51:55 taylor12 kernel: [ 2960.323820] ehci_hcd 0000:00:1d.0: PCI INT A disabled
Feb 24 15:51:55 taylor12 kernel: [ 2960.434035] HDA Intel 0000:00:1b.0: PCI INT A disabled
Feb 24 15:51:55 taylor12 kernel: [ 2960.453564] ehci_hcd 0000:00:1a.0: PCI INT A disabled
Feb 24 15:51:55 taylor12 kernel: [ 2960.453597] PM: suspend devices took 2.530 seconds
Feb 24 15:51:55 taylor12 kernel: [ 2960.453778] ehci_hcd 0000:00:1d.0: PME# disabled
Feb 24 15:51:55 taylor12 kernel: [ 2960.473673] ehci_hcd 0000:00:1a.0: PME# disabled
Feb 24 15:51:55 taylor12 kernel: [ 2960.493821] ACPI: Preparing to enter system sleep state S3
Feb 24 15:51:55 taylor12 kernel: [ 2960.496195] Disabling non-boot CPUs ...
Feb 24 15:51:55 taylor12 kernel: [ 2960.497312] Broke affinity for irq 25
Feb 24 15:51:55 taylor12 kernel: [ 2960.498342] CPU 1 is now offline
Feb 24 15:51:55 taylor12 kernel: [ 2960.524077] CPU1 is down
Feb 24 15:51:55 taylor12 kernel: [ 2960.525180] Broke affinity for irq 26
Feb 24 15:51:55 taylor12 kernel: [ 2960.526206] CPU 2 is now offline
Feb 24 15:51:55 taylor12 kernel: [ 2960.563897] CPU2 is down
Feb 24 15:51:55 taylor12 kernel: [ 2960.564997] Broke affinity for irq 27
Feb 24 15:51:55 taylor12 kernel: [ 2960.566019] CPU 3 is now offline
Feb 24 15:51:55 taylor12 kernel: [ 2960.603714] CPU3 is down
Feb 24 15:51:55 taylor12 kernel: [ 2960.604816] Broke affinity for irq 28
Feb 24 15:51:55 taylor12 kernel: [ 2960.606051] CPU 4 is now offline
Feb 24 15:51:55 taylor12 kernel: [ 2960.643493] CPU4 is down
Feb 24 15:51:55 taylor12 kernel: [ 2960.645594] CPU 5 is now offline
Feb 24 15:51:55 taylor12 kernel: [ 2960.683414] CPU5 is down
I think that
Quote:

ACPI: Preparing to enter system sleep state S3
is the key. It did that in both cases. However, when it went to logoff the log contained the following additional actions
Quote:

Feb 24 15:51:55 taylor12 kernel: [ 2Feb 24 15:58:28 taylor12 kernel: [ 194.229944] PM: Syncing filesystems ... done.
Feb 24 15:58:28 taylor12 kernel: [ 194.231635] Freezing user space processes ... (elapsed 0.00 seconds) done.
Feb 24 15:58:28 taylor12 kernel: [ 194.231973] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
Feb 24 15:58:28 taylor12 kernel: [ 194.232011] Suspending console(s) (use no_console_suspend to debug)
Feb 24 15:58:28 taylor12 kernel: [ 194.275183] sd 1:0:1:0: [sdc] Synchronizing SCSI cache
Feb 24 15:58:28 taylor12 kernel: [ 194.275355] sd 1:0:1:0: [sdc] Stopping disk
Feb 24 15:58:28 taylor12 kernel: [ 194.963973] tg3: eth0: Link is down.
Feb 24 15:58:28 taylor12 kernel: [ 194.973323] sd 1:0:0:0: [sdb] Synchronizing SCSI cache
Feb 24 15:58:28 taylor12 kernel: [ 194.973484] sd 1:0:0:0: [sdb] Stopping disk
Feb 24 15:58:28 taylor12 kernel: [ 195.664994] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Feb 24 15:58:28 taylor12 kernel: [ 195.665262] sd 0:0:0:0: [sda] Stopping disk
Feb 24 15:58:28 taylor12 kernel: [ 196.519606] ata_piix 0000:00:1f.5: PCI INT B disabled
Feb 24 15:58:28 taylor12 kernel: [ 196.530839] ata_piix 0000:00:1f.2: PCI INT B disabled
Feb 24 15:58:28 taylor12 kernel: [ 196.550752] ehci_hcd 0000:00:1d.0: PCI INT A disabled
Feb 24 15:58:28 taylor12 kernel: [ 196.660959] HDA Intel 0000:00:1b.0: PCI INT A disabled
Feb 24 15:58:28 taylor12 kernel: [ 196.680497] ehci_hcd 0000:00:1a.0: PCI INT A disabled
Feb 24 15:58:28 taylor12 kernel: [ 196.680530] PM: suspend devices took 2.460 seconds
Feb 24 15:58:28 taylor12 kernel: [ 196.680711] ehci_hcd 0000:00:1d.0: PME# disabled
Feb 24 15:58:28 taylor12 kernel: [ 196.700604] ehci_hcd 0000:00:1a.0: PME# disabled
Feb 24 15:58:28 taylor12 kernel: [ 196.720757] ACPI: Preparing to enter system sleep state S3
Feb 24 15:58:28 taylor12 kernel: [ 196.723053] Disabling non-boot CPUs ...
Feb 24 15:58:28 taylor12 kernel: [ 196.724170] Broke affinity for irq 25
Feb 24 15:58:28 taylor12 kernel: [ 196.830199] CPU 1 is now offline
Feb 24 15:58:28 taylor12 kernel: [ 196.860759] CPU1 is down
Feb 24 15:58:28 taylor12 kernel: [ 196.861858] Broke affinity for irq 26
Feb 24 15:58:28 taylor12 kernel: [ 196.862882] CPU 2 is now offline
Feb 24 15:58:28 taylor12 kernel: [ 196.890658] CPU2 is down
Feb 24 15:58:28 taylor12 kernel: [ 196.891758] Broke affinity for irq 27
Feb 24 15:58:28 taylor12 kernel: [ 196.892778] CPU 3 is now offline
Feb 24 15:58:28 taylor12 kernel: [ 196.930472] CPU3 is down
Feb 24 15:58:28 taylor12 kernel: [ 196.931571] Broke affinity for irq 28
Feb 24 15:58:28 taylor12 kernel: [ 196.932805] CPU 4 is now offline
Feb 24 15:58:28 taylor12 kernel: [ 196.970243] CPU4 is down
Feb 24 15:58:28 taylor12 kernel: [ 196.972341] CPU 5 is now offline
Feb 24 15:58:28 taylor12 kernel: [ 197.010167] CPU5 is down
The logs then were identical line for line as the rest of the CPUs were shut down.

As to why? that is the question. Sleep state S3 is I believe the code for suspend.

Ken


All times are GMT -5. The time now is 08:53 PM.