You are not logged in.

#1 2023-05-23 15:30:14

Amphitryon
Member
Registered: 2013-09-20
Posts: 39

Not waking from Sleep

I am having trouble with what I believe is waking from a sleep state.   The symptoms are that the PC is not driving the display and when I move the mouse or tap a key, nothing changes.  However, if I briefly press the power button it suspends and, after that it successfully wakes again.

There is nothing in the system journal that gives me any clue.  Here is an extract:

May 23 15:38:04 ecrins dbus-daemon[512]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.91' (uid=1000 pid=7528 comm="/usr/bin/geany")
May 23 15:38:04 ecrins systemd[1]: Starting Hostname Service...
May 23 15:38:04 ecrins dbus-daemon[512]: [system] Successfully activated service 'org.freedesktop.hostname1'
May 23 15:38:04 ecrins systemd[1]: Started Hostname Service.
May 23 15:38:34 ecrins systemd[1]: systemd-hostnamed.service: Deactivated successfully.
May 23 16:15:14 ecrins systemd-logind[515]: Power key pressed short.
May 23 16:15:14 ecrins systemd-logind[515]: The system will suspend now!
May 23 16:15:14 ecrins systemd[1]: Reached target Sleep.
May 23 16:15:14 ecrins systemd[1]: Starting System Suspend...
May 23 16:15:14 ecrins systemd-sleep[7811]: Entering sleep state 'suspend'...
May 23 16:15:14 ecrins kernel: PM: suspend entry (deep)
May 23 16:15:14 ecrins kernel: Filesystems sync: 0.055 seconds
May 23 16:15:26 ecrins kernel: Freezing user space processes
May 23 16:15:26 ecrins kernel: Freezing user space processes completed (elapsed 0.002 seconds)
May 23 16:15:26 ecrins kernel: OOM killer disabled.
May 23 16:15:26 ecrins kernel: Freezing remaining freezable tasks
May 23 16:15:26 ecrins kernel: Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
May 23 16:15:26 ecrins kernel: printk: Suspending console(s) (use no_console_suspend to debug)
May 23 16:15:26 ecrins kernel: serial 00:02: disabled
May 23 16:15:26 ecrins kernel: parport_pc 00:01: disabled
May 23 16:15:26 ecrins kernel: r8169 0000:01:00.0 eno1: Link is Down
May 23 16:15:26 ecrins kernel: sd 2:0:0:0: [sdb] Synchronizing SCSI cache
May 23 16:15:26 ecrins kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
May 23 16:15:26 ecrins kernel: sd 0:0:0:0: [sda] Stopping disk
May 23 16:15:26 ecrins kernel: sd 2:0:0:0: [sdb] Stopping disk
May 23 16:15:26 ecrins kernel: ACPI: PM: Preparing to enter system sleep state S3
May 23 16:15:26 ecrins kernel: ACPI: PM: Saving platform NVS memory
May 23 16:15:26 ecrins kernel: Disabling non-boot CPUs ...
May 23 16:15:26 ecrins kernel: smpboot: CPU 1 is now offline
May 23 16:15:26 ecrins kernel: smpboot: CPU 2 is now offline
May 23 16:15:26 ecrins kernel: smpboot: CPU 3 is now offline
May 23 16:15:26 ecrins kernel: smpboot: CPU 4 is now offline
May 23 16:15:26 ecrins kernel: smpboot: CPU 5 is now offline
May 23 16:15:26 ecrins kernel: smpboot: CPU 6 is now offline
May 23 16:15:26 ecrins kernel: smpboot: CPU 7 is now offline
May 23 16:15:26 ecrins kernel: ACPI: PM: Low-level resume complete
May 23 16:15:26 ecrins kernel: ACPI: PM: Restoring platform NVS memory
May 23 16:15:26 ecrins kernel: Enabling non-boot CPUs ...
May 23 16:15:26 ecrins kernel: x86: Booting SMP configuration:
May 23 16:15:26 ecrins kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2
May 23 16:15:26 ecrins kernel: CPU1 is up
May 23 16:15:26 ecrins kernel: smpboot: Booting Node 0 Processor 2 APIC 0x4
May 23 16:15:26 ecrins kernel: CPU2 is up
May 23 16:15:26 ecrins kernel: smpboot: Booting Node 0 Processor 3 APIC 0x6
May 23 16:15:26 ecrins kernel: CPU3 is up
May 23 16:15:26 ecrins kernel: smpboot: Booting Node 0 Processor 4 APIC 0x1
May 23 16:15:26 ecrins kernel: CPU4 is up
May 23 16:15:26 ecrins kernel: smpboot: Booting Node 0 Processor 5 APIC 0x3
May 23 16:15:26 ecrins kernel: CPU5 is up
May 23 16:15:26 ecrins kernel: smpboot: Booting Node 0 Processor 6 APIC 0x5
May 23 16:15:26 ecrins kernel: CPU6 is up
May 23 16:15:26 ecrins kernel: smpboot: Booting Node 0 Processor 7 APIC 0x7
May 23 16:15:26 ecrins kernel: CPU7 is up
May 23 16:15:26 ecrins kernel: ACPI: PM: Waking up from system sleep state S3
May 23 16:15:26 ecrins kernel: sd 0:0:0:0: [sda] Starting disk
May 23 16:15:26 ecrins kernel: sd 2:0:0:0: [sdb] Starting disk
May 23 16:15:26 ecrins kernel: i915 0000:00:02.0: [drm] [ENCODER:73:DDI B/PHY B] is disabled/in DSI mode with an ungated DDI clock, gate it
May 23 16:15:26 ecrins kernel: i915 0000:00:02.0: [drm] [ENCODER:88:DDI C/PHY C] is disabled/in DSI mode with an ungated DDI clock, gate it
May 23 16:15:26 ecrins kernel: i915 0000:00:02.0: [drm] [ENCODER:92:DDI D/PHY D] is disabled/in DSI mode with an ungated DDI clock, gate it
May 23 16:15:26 ecrins kernel: parport_pc 00:01: activated
May 23 16:15:26 ecrins kernel: serial 00:02: activated
May 23 16:15:26 ecrins kernel: r8169 0000:01:00.0 eno1: Link is Down
May 23 16:15:26 ecrins kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
May 23 16:15:26 ecrins kernel: ata4: SATA link down (SStatus 4 SControl 300)
May 23 16:15:26 ecrins kernel: ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
May 23 16:15:26 ecrins kernel: ata1.00: configured for UDMA/133
May 23 16:15:26 ecrins kernel: ata2.00: configured for UDMA/133
May 23 16:15:26 ecrins kernel: r8169 0000:01:00.0 eno1: Link is Up - 1Gbps/Full - flow control rx/tx
May 23 16:15:26 ecrins kernel: ata3: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
May 23 16:15:26 ecrins kernel: ata3.00: configured for UDMA/133
May 23 16:15:26 ecrins kernel: OOM killer enabled.
May 23 16:15:26 ecrins kernel: Restarting tasks ... done.
May 23 16:15:26 ecrins kernel: random: crng reseeded on system resumption
May 23 16:15:26 ecrins kernel: PM: suspend exit

15:38 seems to be the last thing to happen before I tried waking it up for the first time.  16:15 is obviously when I pressed the power button.  From that log it looks like the kernel is not even aware of the sleeping - perhaps it is a BIOS/APCI thing?

The machine is a Lenovo Thinkstation M700 with an i7-6700 (not the original processsor) though it does exactly the same with an i5-6400 which I think is the original.  The BIOS set-up doesn't have a lot of options but it does have one about, IIRC, C-states.  I can't look as I write this as I am typing on the machine in question but I will check it out.

Offline

#2 2023-05-24 01:18:47

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,823

Re: Not waking from Sleep

What Desktop Environment / Window Manager are you using?
How are you entering what you think is a sleep state?   What happens with systemctl suspend from a terminal to put it to sleep?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2023-05-24 01:37:26

Amphitryon
Member
Registered: 2013-09-20
Posts: 39

Re: Not waking from Sleep

ewaller wrote:

What Desktop Environment / Window Manager are you using?
How are you entering what you think is a sleep state?   What happens with systemctl suspend from a terminal to put it to sleep?

Running GNOME 44.  I have not done anything specifically to cause what I think it a case of going to sleep, except not use it for an hour or so.

I will try the systemctl suspend and report back.  In the meantime I checked the BIOS settings and have the following:

C1E Support     [Enabled]
C State Support [C1 C3 C6 C7]

Offline

#4 2023-05-24 01:43:50

Amphitryon
Member
Registered: 2013-09-20
Posts: 39

Re: Not waking from Sleep

Ok, systemctl suspend worked.  Either this is a deeper sleep than the one the system had tried to initiate, or there is something else going on.  When the system appeared to have gone to sleep and would not wake, the power LED was on.  After executeing systemctl suspend the power light was flashing which was also what started to happen when I briefly pressed the power button when the system didn't seem to be able to wake up.  Here is the log from the 'systemctl suspend'.

May 24 02:38:01 ecrins systemd[1]: Reached target Sleep.
May 24 02:38:01 ecrins systemd[1]: Starting System Suspend...
May 24 02:38:01 ecrins systemd-sleep[15880]: Entering sleep state 'suspend'...
May 24 02:38:01 ecrins kernel: PM: suspend entry (deep)
May 24 02:38:01 ecrins kernel: Filesystems sync: 0.272 seconds
May 24 02:38:16 ecrins kernel: Freezing user space processes
May 24 02:38:16 ecrins kernel: Freezing user space processes completed (elapsed 0.005 seconds)
May 24 02:38:16 ecrins kernel: OOM killer disabled.
May 24 02:38:16 ecrins kernel: Freezing remaining freezable tasks
May 24 02:38:16 ecrins kernel: Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
May 24 02:38:16 ecrins kernel: printk: Suspending console(s) (use no_console_suspend to debug)
May 24 02:38:16 ecrins kernel: serial 00:02: disabled
May 24 02:38:16 ecrins kernel: parport_pc 00:01: disabled
May 24 02:38:16 ecrins kernel: r8169 0000:01:00.0 eno1: Link is Down
May 24 02:38:16 ecrins kernel: sd 2:0:0:0: [sdb] Synchronizing SCSI cache
May 24 02:38:16 ecrins kernel: sd 2:0:0:0: [sdb] Stopping disk
May 24 02:38:16 ecrins kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
May 24 02:38:16 ecrins kernel: sd 0:0:0:0: [sda] Stopping disk
May 24 02:38:16 ecrins kernel: ACPI: PM: Preparing to enter system sleep state S3
May 24 02:38:16 ecrins kernel: ACPI: PM: Saving platform NVS memory
May 24 02:38:16 ecrins kernel: Disabling non-boot CPUs ...
May 24 02:38:16 ecrins kernel: smpboot: CPU 1 is now offline
May 24 02:38:16 ecrins kernel: smpboot: CPU 2 is now offline
May 24 02:38:16 ecrins kernel: smpboot: CPU 3 is now offline
May 24 02:38:16 ecrins kernel: smpboot: CPU 4 is now offline
May 24 02:38:16 ecrins kernel: smpboot: CPU 5 is now offline
May 24 02:38:16 ecrins kernel: smpboot: CPU 6 is now offline
May 24 02:38:16 ecrins kernel: smpboot: CPU 7 is now offline
May 24 02:38:16 ecrins kernel: ACPI: PM: Low-level resume complete
May 24 02:38:16 ecrins kernel: ACPI: PM: Restoring platform NVS memory
May 24 02:38:16 ecrins kernel: Enabling non-boot CPUs ...
May 24 02:38:16 ecrins kernel: x86: Booting SMP configuration:
May 24 02:38:16 ecrins kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2
May 24 02:38:16 ecrins kernel: CPU1 is up
May 24 02:38:16 ecrins kernel: smpboot: Booting Node 0 Processor 2 APIC 0x4
May 24 02:38:16 ecrins kernel: CPU2 is up
May 24 02:38:16 ecrins kernel: smpboot: Booting Node 0 Processor 3 APIC 0x6
May 24 02:38:16 ecrins kernel: CPU3 is up
May 24 02:38:16 ecrins kernel: smpboot: Booting Node 0 Processor 4 APIC 0x1
May 24 02:38:16 ecrins kernel: CPU4 is up
May 24 02:38:16 ecrins kernel: smpboot: Booting Node 0 Processor 5 APIC 0x3
May 24 02:38:16 ecrins kernel: CPU5 is up
May 24 02:38:16 ecrins kernel: smpboot: Booting Node 0 Processor 6 APIC 0x5
May 24 02:38:16 ecrins kernel: CPU6 is up
May 24 02:38:16 ecrins kernel: smpboot: Booting Node 0 Processor 7 APIC 0x7
May 24 02:38:16 ecrins kernel: CPU7 is up
May 24 02:38:16 ecrins kernel: ACPI: PM: Waking up from system sleep state S3
May 24 02:38:16 ecrins kernel: sd 2:0:0:0: [sdb] Starting disk
May 24 02:38:16 ecrins kernel: sd 0:0:0:0: [sda] Starting disk
May 24 02:38:16 ecrins kernel: i915 0000:00:02.0: [drm] [ENCODER:73:DDI B/PHY B] is disabled/in DSI mode with an ungated DDI clock, gate it
May 24 02:38:16 ecrins kernel: i915 0000:00:02.0: [drm] [ENCODER:88:DDI C/PHY C] is disabled/in DSI mode with an ungated DDI clock, gate it
May 24 02:38:16 ecrins kernel: i915 0000:00:02.0: [drm] [ENCODER:92:DDI D/PHY D] is disabled/in DSI mode with an ungated DDI clock, gate it
May 24 02:38:16 ecrins kernel: parport_pc 00:01: activated
May 24 02:38:16 ecrins kernel: serial 00:02: activated
May 24 02:38:16 ecrins kernel: r8169 0000:01:00.0 eno1: Link is Down
May 24 02:38:16 ecrins kernel: ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
May 24 02:38:16 ecrins kernel: ata4: SATA link down (SStatus 4 SControl 300)
May 24 02:38:16 ecrins kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
May 24 02:38:16 ecrins kernel: ata1.00: configured for UDMA/133
May 24 02:38:16 ecrins kernel: ata2.00: configured for UDMA/133
May 24 02:38:16 ecrins kernel: r8169 0000:01:00.0 eno1: Link is Up - 1Gbps/Full - flow control rx/tx
May 24 02:38:16 ecrins kernel: ata3: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
May 24 02:38:16 ecrins kernel: ata3.00: configured for UDMA/133
May 24 02:38:16 ecrins kernel: OOM killer enabled.
May 24 02:38:16 ecrins kernel: Restarting tasks ... done.
May 24 02:38:16 ecrins kernel: random: crng reseeded on system resumption
May 24 02:38:16 ecrins kernel: PM: suspend exit
May 24 02:38:16 ecrins systemd-resolved[528]: Clock change detected. Flushing caches.

Offline

#5 2023-05-24 10:04:41

Amphitryon
Member
Registered: 2013-09-20
Posts: 39

Re: Not waking from Sleep

Ok, another clue - the machine had got into this state again this morning - switching to it with the KVM switch and moving the mouse or tapping keys did not cause anything to appear on screen and the monitor went to sleep, the power light was steady but I noticed the disk activity light came on briefly.  Switching back to another machine I was able to ssh into the "sleeping" one with no apparent delay.  After that, switching back to it with the KVM switch and the lock screen appears as expected!

The last log message before this is:

May 24 10:36:05 ecrins xdg-desktop-portal-kde[1825]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash

Then nothing in the log from trying to get the lock screen to appear by moving the mouse/tapping the keyboard the first time.  The SSH session is logged:

May 24 10:52:54 ecrins systemd[1]: /etc/systemd/system/sshd@.service:8: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit >
May 24 10:52:54 ecrins systemd[1]: Created slice Slice /system/sshd.
May 24 10:52:54 ecrins systemd[1]: Started OpenSSH Per-Connection Daemon (192.168.1.190:64566).
May 24 10:53:00 ecrins dbus-daemon[533]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.10>
May 24 10:53:00 ecrins dbus-daemon[533]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not f>
May 24 10:53:00 ecrins sshd[6477]: pam_systemd_home(sshd:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 24 10:53:00 ecrins sshd[6477]: Accepted password for user from 192.168.1.190 port 64566 ssh2
May 24 10:53:00 ecrins sshd[6477]: pam_unix(sshd:session): session opened for user user(uid=1000) by user(uid=0)
May 24 10:53:00 ecrins systemd-logind[536]: New session 5 of user user.
May 24 10:53:00 ecrins systemd[1]: Started Session 5 of User user.
May 24 10:53:00 ecrins pulseaudio[1273]: Created 4 "Login Session 5"
May 24 10:53:11 ecrins dbus-daemon[533]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.10>
May 24 10:53:11 ecrins dbus-daemon[533]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not f>
May 24 10:53:11 ecrins gdm-password][6506]: pam_systemd_home(gdm-password:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
May 24 10:53:18 ecrins gdm-password][6506]: gkr-pam: unlocked login keyring

Offline

#6 2023-05-24 14:27:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,823

Re: Not waking from Sleep

I'd be curious what would happen with a dedicated monitor, keyboard and mouse avoiding the KVM switch.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2023-05-24 21:02:23

Amphitryon
Member
Registered: 2013-09-20
Posts: 39

Re: Not waking from Sleep

ewaller wrote:

I'd be curious what would happen with a dedicated monitor, keyboard and mouse avoiding the KVM switch.

I was starting to think the same way.  I don't think is is a sleep issue at all.  If I leave it as the currently selected machine, even though the screensaver engages, the screen comes back on as soon as the mouse is moved even if it has been left a while.

I did have success on one occasion after it has got stuck with the blank screen by unplugging the display port cable and plugging it back in again, though this doesn't seem to always work.  What I suspect is happening is that something in the graphics hardware notices the display port has been disconnected and transfers to using the VGA port which is not connected to anything, then fails to transfer back again.

There is a BIOS setting for which port to use which is currently set to auto so I will explore that next.

Offline

Board footer

Powered by FluxBB