Hi.
I noticed something odd over the last few weeks after having run 15.2 for a few months without issue. After a wake up my PC from Suspend mode I get the session back immediately (wallpaper, open apps etc). But things like -
navigation those open apps - like firefox or thunderbird, even PCManFM are frozen
the network reconnecting
even the system clock updating in the system tray
takes around 30 seconds. After that everything is fine.
To be honest I don;t know where to start looking for this odd ‘extra delay’. Read the system logs but all greek to me.
Any ideas what may be wrong or where to start looking?
System is 16GB RAM, 250GB SSD SATA + 2TB HDD SATA , Asus Z370G motherboard, Nvidia GTX 1050Ti. Running LXDE.
There is nothing wrong with your suspend/resume. Suspend spins down the HDD. Slow resume could be caused by slow response of HDD. Seems to me your processes are waiting for the drive to spin up. If in doubt show the lines of the journal following ‘Started Suspend’.
Thanks Karl, I think you hit the nail on the head about the HDD spinning up. Most of my files that are in use are on /data on this drive so the delay makes sense now.
2021-02-25T15:10:53.549169+08:00 asus-roc kernel: [22861.433592] **ata4: link is slow to respond, please be patient (ready=0)**
2021-02-25T15:10:55.770452+08:00 asus-roc kernel: [22863.658885] snd_hdac_bus_update_rirb: 463 callbacks suppressed
2021-02-25T15:10:55.770487+08:00 asus-roc kernel: [22863.658892] snd_hda_intel 0000:02:00.1: spurious response 0x3:0x0, last cmd=0x4f0700
2021-02-25T15:10:55.770491+08:00 asus-roc kernel: [22863.658897] snd_hda_intel 0000:02:00.1: spurious response 0x0:0x0, last cmd=0x470700
2021-02-25T15:10:55.770494+08:00 asus-roc kernel: [22863.658929] snd_hda_intel 0000:02:00.1: spurious response 0x40:0x0, last cmd=0x470700
2021-02-25T15:10:55.770499+08:00 asus-roc kernel: [22863.658958] snd_hda_intel 0000:02:00.1: spurious response 0x0:0x0, last cmd=0x470700
2021-02-25T15:10:55.889121+08:00 asus-roc kernel: [22863.774252] e1000e 0000:00:1f.6 eth0: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
2021-02-25T15:10:55.889150+08:00 asus-roc kernel: [22863.774339] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
2021-02-25T15:10:55.901044+08:00 asus-roc kernel: [22863.786799] bridge0: port 1(eth0) entered blocking state
2021-02-25T15:10:55.901052+08:00 asus-roc kernel: [22863.786800] bridge0: port 1(eth0) entered disabled state
2021-02-25T15:10:55.901055+08:00 asus-roc kernel: [22863.786888] device eth0 entered promiscuous mode
2021-02-25T15:10:55.901056+08:00 asus-roc kernel: [22863.786954] bridge0: port 1(eth0) entered blocking state
2021-02-25T15:10:55.901057+08:00 asus-roc kernel: [22863.786954] bridge0: port 1(eth0) entered listening state
2021-02-25T15:10:56.841284+08:00 asus-roc kernel: [22864.729722] snd_hda_intel 0000:02:00.1: spurious response 0x0:0x0, last cmd=0xa20000
2021-02-25T15:10:56.841318+08:00 asus-roc kernel: [22864.729728] snd_hda_intel 0000:02:00.1: spurious response 0x0:0x0, last cmd=0xa20000
2021-02-25T15:10:58.241164+08:00 asus-roc kernel: [22866.125662] ata4: COMRESET failed (errno=-16)
2021-02-25T15:11:03.613162+08:00 asus-roc kernel: [22871.497657] **ata4: link is slow to respond, please be patient (ready=0**)
2021-02-25T15:11:08.249135+08:00 asus-roc kernel: [22876.133628] ata4: COMRESET failed (errno=-16)
2021-02-25T15:11:10.969165+08:00 asus-roc kernel: [22878.853695] bridge0: port 1(eth0) entered learning state
2021-02-25T15:11:13.573168+08:00 asus-roc kernel: [22881.457699]** ata4: link is slow to respond, please be patient (ready=0)**
2021-02-25T15:11:19.101162+08:00 asus-roc kernel: [22886.985694] **ata4: SATA link up 6.0 Gbps (SStatus 133 SControl 300)**
2021-02-25T15:11:19.297136+08:00 asus-roc kernel: [22887.181858] ata4.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
2021-02-25T15:11:19.297164+08:00 asus-roc kernel: [22887.181864] ata4.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
2021-02-25T15:11:19.297167+08:00 asus-roc kernel: [22887.181868] ata4.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
2021-02-25T15:11:19.297170+08:00 asus-roc kernel: [22887.184582] ata4.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
2021-02-25T15:11:19.297173+08:00 asus-roc kernel: [22887.184588] ata4.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
2021-02-25T15:11:19.297175+08:00 asus-roc kernel: [22887.184593] ata4.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
2021-02-25T15:11:19.297196+08:00 asus-roc kernel: [22887.185079] ata4.00: configured for UDMA/133
2021-02-25T15:11:26.069233+08:00 asus-roc kernel: [22893.957702] bridge0: port 1(eth0) entered forwarding state
2021-02-25T15:11:26.069271+08:00 asus-roc kernel: [22893.957717] bridge0: topology change detected, propagating
But I had to get that info directly from the /var/log/messages as yast’s Journal Entries would not let me select and display yesterday’s messages.
Nothing was returned.
chris@asus-roc:~> sudo journalctl --user -b
[sudo] password for root:
No journal files were found.
-- No entries --
chris@asus-roc:~>
I think I need to read more on Journalctl’s command line technique’s ;).
I am not sure about the error messages. Presumably there is a problem with the SSD (“SECURITY FREEZE LOCK”) and not the HDD. You need to further investigate:
The fixed disks show the same messages as on my machine. What about the removable drives? Get rid of it and run suspend/resume. Does the lag still occur?
Show the output of ‘journalctl -b 0 _KERNEL_SUBSYSTEM=usb’.
That is very odd, that USB SanDisk drive had been ejected and physically removed about an hour prior. The other card reader devices are empty. There is only the SDD and HDD drives connected.
That looks like disk trouble on ata4. To find out the drive associated with ata4 run:
**erlangen:~ #** systemctl list-units '*ata4*'
UNIT LOAD ACTIVE SUB DESCRIPTION
sys-devices-pci0000:00-0000:00:17.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb1.device loaded active plugged CT2000BX500SSD1 Home-SSD
sys-devices-pci0000:00-0000:00:17.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb.device loaded active plugged CT2000BX500SSD1
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
**2 loaded units listed.** Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
**erlangen:~ #**
Check cables and the drive. Could indicate a looming failure. A working drives doesn’t issue messages as observed with your system. Logs are pretty terse here:
**erlangen:~ #** journalctl -b -u systemd-suspend.service
-- Logs begin at Wed 2021-02-17 13:00:05 CET, end at Sat 2021-02-27 10:03:02 CET. --
Feb 27 09:43:35 erlangen systemd[1]: Starting Suspend...
Feb 27 09:43:35 erlangen systemd-sleep[2716]: INFO: Skip running /usr/lib/systemd/system-sleep/grub2.sleep for suspend
Feb 27 09:43:35 erlangen systemd-sleep[2714]: Suspending system...
Feb 27 09:43:49 erlangen systemd-sleep[2714]: System resumed.
Feb 27 09:43:49 erlangen systemd-sleep[2770]: INFO: Skip running /usr/lib/systemd/system-sleep/grub2.sleep for suspend
Feb 27 09:43:49 erlangen systemd[1]: systemd-suspend.service: Succeeded.
Feb 27 09:43:49 erlangen systemd[1]: Finished Suspend.
**erlangen:~ #** journalctl -b |grep ata4
Feb 27 09:41:54 erlangen kernel: **ata4**: SATA max UDMA/133 abar m2048@0xdff4b000 port 0xdff4b280 irq 125
Feb 27 09:41:54 erlangen kernel: **ata4**: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Feb 27 09:41:54 erlangen kernel: **ata4**.00: ATA-10: CT2000BX500SSD1, M6CR030, max UDMA/133
Feb 27 09:41:54 erlangen kernel: **ata4**.00: 3907029168 sectors, multi 1: LBA48 NCQ (depth 32), AA
Feb 27 09:41:54 erlangen kernel: **ata4**.00: configured for UDMA/133
Feb 27 09:43:49 erlangen kernel: **ata4**: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Feb 27 09:43:49 erlangen kernel: **ata4**.00: configured for UDMA/133
**erlangen:~ #**
chris@asus-roc:~> systemctl list-units '*ata4*'
UNIT LOAD ACTIVE SUB DESCRIPTION
sys-devices-pci0000:00-0000:00:17.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb1.device loaded active plugged WDC_WD20EZRX-00D8PB0 wd2tgreen
sys-devices-pci0000:00-0000:00:17.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb.device loaded active plugged WDC_WD20EZRX-00D8PB0
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
2 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
chris@asus-roc:~>
chris@asus-roc:~> sudo journalctl -b |grep ata4
Feb 27 15:52:46 asus-roc kernel: ata4: SATA max UDMA/133 abar m2048@0xf724b000 port 0xf724b280 irq 127
Feb 27 15:52:46 asus-roc kernel: ata4: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Feb 27 15:52:46 asus-roc kernel: ata4.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
Feb 27 15:52:46 asus-roc kernel: ata4.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
Feb 27 15:52:46 asus-roc kernel: ata4.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
Feb 27 15:52:46 asus-roc kernel: ata4.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133
Feb 27 15:52:46 asus-roc kernel: ata4.00: 3907029168 sectors, multi 16: LBA48 NCQ (depth 32), AA
Feb 27 15:52:46 asus-roc kernel: ata4.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
Feb 27 15:52:46 asus-roc kernel: ata4.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
Feb 27 15:52:46 asus-roc kernel: ata4.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
Feb 27 15:52:46 asus-roc kernel: ata4.00: configured for UDMA/133
**Feb 27 16:50:41 asus-roc.lan kernel: ata4: link is slow to respond, please be patient (ready=0)
Feb 27 16:50:46 asus-roc.lan kernel: ata4: COMRESET failed (errno=-16)
Feb 27 16:50:51 asus-roc.lan kernel: ata4: link is slow to respond, please be patient (ready=0)
Feb 27 16:50:56 asus-roc.lan kernel: ata4: COMRESET failed (errno=-16)
Feb 27 16:51:01 asus-roc.lan kernel: ata4: link is slow to respond, please be patient (ready=0)
Feb 27 16:51:30 asus-roc.lan kernel: ata4: SATA link up 6.0 Gbps (SStatus 133 SControl 300)**
Feb 27 16:51:31 asus-roc.lan kernel: ata4.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
Feb 27 16:51:31 asus-roc.lan kernel: ata4.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
Feb 27 16:51:31 asus-roc.lan kernel: ata4.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
Feb 27 16:51:31 asus-roc.lan kernel: ata4.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
Feb 27 16:51:31 asus-roc.lan kernel: ata4.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
Feb 27 16:51:31 asus-roc.lan kernel: ata4.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
Feb 27 16:51:31 asus-roc.lan kernel: ata4.00: configured for UDMA/133
chris@asus-roc:~>
Funny that the recorded fail times don;t line up with coming out of Suspend mode at 14:45.
A potential HDD failure worries me (as it should). Is there a test I can do with S.M.A.R.T. tools to confirm?
Your disk is a ‘green’ WD20EZRX. I have a WD40EZRX, which also has some ‘green’ features and caused headache in the past. I fixed that by disabling the idle3 timer using http://idle3-tools.sourceforge.net/
Replace the SATA cable by a new one or exchange cables between the drives. Errors now should occur with sda and no longer with sdb.
Errors could also be caused by bad connectors. I successfully cleaned several connectors using an interdental brush and 99.9% isopropyl alcohol.
Use ‘smartctl --all /dev/sdb’ to display smart information.
Run an extended test ‘smartctl --test=long /dev/sdb’.
I bought the CT2000BX500SSD1 last summer for 199€. Now it’s down to 169€. 1TB is now 91€. Speed, lifetime and reliability in an average desktop are much higher than HDD (2TB WD blue 57€).