LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 09-24-2019, 12:58 PM   #1
Albertaman
LQ Newbie
 
Registered: May 2019
Posts: 11

Rep: Reputation: Disabled
Lenovo Legion 540 takes long time to resume from suspend


I am running a fresh install of Arch/Cinnamon on a Lenovo Legion 540 with the linux kernel and nvidia drivers.

The only problem I'm having is that when the computer is suspended, resuming takes up to about 30 seconds. It doesn't matter how it was suspended.

Is the there a way to diagnose this problem and correct it?

Thank you

Last edited by Albertaman; 09-24-2019 at 08:13 PM.
 
Old 09-29-2019, 05:23 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,454

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Try to find out what's going on. Have a look at the logs (The big files in /var/log - /var/log/messages and/or syslog).

You could also try opening a window before suspending and run 'sudo dmesg -C' which clears the log. Then suspend, & resume, and run 'sudo dmesg -ek' |less and you should be able to see where the delay comes. Post anything interesting.
 
Old 09-29-2019, 02:50 PM   #3
Albertaman
LQ Newbie
 
Registered: May 2019
Posts: 11

Original Poster
Rep: Reputation: Disabled
This is the log after doing what you suggested...

[Sep29 13:47] PM: suspend entry (deep)
[ +0.003279] Filesystems sync: 0.003 seconds
[ +2.538949] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ +0.001694] OOM killer disabled.
[ +0.000001] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ +0.001202] printk: Suspending console(s) (use no_console_suspend to debug)
[ +0.105451] wlp0s20f3: deauthenticating from 4c:8b:30:a6:b2:31 by local choice (Reason: 3=DEAUTH_LEAVING)
[ +0.042287] sd 4:0:0:0: [sda] Synchronizing SCSI cache
[ +0.001259] sd 4:0:0:0: [sda] Stopping disk
[ +0.638714] ACPI: EC: interrupt blocked
[ +0.033598] ACPI: Preparing to enter system sleep state S3
[ +0.000461] ACPI: EC: event blocked
[ +0.000001] ACPI: EC: EC stopped
[ +0.000000] PM: Saving platform NVS memory
[ +0.000061] Disabling non-boot CPUs ...
[ +0.000345] IRQ 144: no longer affine to CPU1
[ +0.001016] smpboot: CPU 1 is now offline
[ +0.001270] IRQ 145: no longer affine to CPU2
[ +0.001016] smpboot: CPU 2 is now offline
[ +0.001304] IRQ 146: no longer affine to CPU3
[ +0.001034] smpboot: CPU 3 is now offline
[ +0.001321] IRQ 147: no longer affine to CPU4
[ +0.001028] smpboot: CPU 4 is now offline
[ +0.001228] IRQ 148: no longer affine to CPU5
[ +0.001026] smpboot: CPU 5 is now offline
[ +0.001267] IRQ 149: no longer affine to CPU6
[ +0.001486] smpboot: CPU 6 is now offline
[ +0.001253] IRQ 150: no longer affine to CPU7
[ +0.001018] smpboot: CPU 7 is now offline
[ +0.001153] IRQ 151: no longer affine to CPU8
[ +0.001032] smpboot: CPU 8 is now offline
[ +0.001233] IRQ 152: no longer affine to CPU9
[ +0.001025] smpboot: CPU 9 is now offline
[ +0.001082] IRQ 153: no longer affine to CPU10
[ +0.001018] smpboot: CPU 10 is now offline
[ +0.002279] smpboot: CPU 11 is now offline
[Apr19 13:19] [Firmware Bug]: TSC ADJUST differs: CPU0 0 --> -367733271. Restoring
[Sep29 13:47] ACPI: Low-level resume complete
[ +0.000099] ACPI: EC: EC started
[ +0.000000] PM: Restoring platform NVS memory
[ +0.000920] Enabling non-boot CPUs ...
[ +0.000034] x86: Booting SMP configuration:
[ +0.000000] smpboot: Booting Node 0 Processor 1 APIC 0x2
[ +0.000670] intel_pstate: Disabling energy efficiency optimization
[ +0.000126] CPU1 is up
[ +0.000023] smpboot: Booting Node 0 Processor 2 APIC 0x4
[ +0.000592] CPU2 is up
[ +0.000016] smpboot: Booting Node 0 Processor 3 APIC 0x6
[ +0.000566] CPU3 is up
[ +0.000015] smpboot: Booting Node 0 Processor 4 APIC 0x8
[ +0.000560] CPU4 is up
[ +0.000015] smpboot: Booting Node 0 Processor 5 APIC 0xa
[ +0.000570] CPU5 is up
[ +0.000015] smpboot: Booting Node 0 Processor 6 APIC 0x1
[ +0.000646] CPU6 is up
[ +0.000018] smpboot: Booting Node 0 Processor 7 APIC 0x3
[ +0.000577] CPU7 is up
[ +0.000015] smpboot: Booting Node 0 Processor 8 APIC 0x5
[ +0.000589] CPU8 is up
[ +0.000015] smpboot: Booting Node 0 Processor 9 APIC 0x7
[ +0.000593] CPU9 is up
[ +0.000014] smpboot: Booting Node 0 Processor 10 APIC 0x9
[ +0.000596] CPU10 is up
[ +0.000015] smpboot: Booting Node 0 Processor 11 APIC 0xb
[ +0.000632] CPU11 is up
[ +0.003257] ACPI: Waking up from system sleep state S3
[ +0.004181] ACPI: EC: interrupt unblocked
[ +0.124069] ACPI: EC: event unblocked
[ +0.001483] sd 4:0:0:0: [sda] Starting disk
[ +0.011946] iwlwifi 0000:00:14.3: Applying debug destination EXTERNAL_DRAM
[ +0.098697] nvme nvme0: 12/0/0 default/read/poll queues
[ +0.021548] iwlwifi 0000:00:14.3: Applying debug destination EXTERNAL_DRAM
[ +0.066263] iwlwifi 0000:00:14.3: FW already configured (0) - re-configuring
[ +0.008758] iwlwifi 0000:00:14.3: BIOS contains WGDS but no WRDS
[ +0.023140] usb 1-6: reset high-speed USB device number 3 using xhci_hcd
[ +0.662721] usb usb3: root hub lost power or was reset
[ +0.000001] usb usb4: root hub lost power or was reset
[ +1.290234] ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ +0.086763] ata5.00: configured for UDMA/100
[Sep29 13:48] ucsi_ccg 0-0008: failed to reset PPM!
[ +0.000018] ucsi_ccg 0-0008: PPM init failed (-110)
[ +39.035096] ucsi_ccg 0-0008: PPM NOT RESPONDING
[ +0.000015] PM: dpm_run_callback(): ucsi_ccg_resume+0x0/0x20 [ucsi_ccg] returns -110
[ +0.000004] PM: Device 0-0008 failed to resume: error -110
[ +0.004273] acpi LNXPOWER:0c: Turning OFF
[ +0.001333] acpi LNXPOWER:0a: Turning OFF
[ +0.003066] OOM killer enabled.
[ +0.000000] Restarting tasks ...
[ +0.001302] pci_bus 0000:01: Allocating resources
[ +0.000754] done.
[ +0.002655] pci_bus 0000:06: Allocating resources
[ +0.000007] pcieport 0000:00:1d.0: bridge window [io 0x1000-0x0fff] to [bus 06] add_size 1000
[ +0.000003] pcieport 0000:00:1d.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 06] add_size 200000 add_align 100000
[ +0.000008] pci_bus 0000:07: Allocating resources
[ +0.000005] pcieport 0000:00:1d.5: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 07] add_size 200000 add_align 100000
[ +0.000007] pcieport 0000:00:1d.0: BAR 15: assigned [mem 0xb4600000-0xb47fffff 64bit pref]
[ +0.000004] pcieport 0000:00:1d.5: BAR 15: assigned [mem 0xb4800000-0xb49fffff 64bit pref]
[ +0.000002] pcieport 0000:00:1d.0: BAR 13: assigned [io 0x6000-0x6fff]
[ +0.012777] intel-lpss 0000:00:1e.0: Refused to change power state, currently in D0
[ +0.080268] PM: suspend exit
[ +0.008258] audit: type=1130 audit(1569786530.176:52): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ +0.000002] audit: type=1131 audit(1569786530.176:53): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ +0.024581] Generic Realtek PHY r8169-700:00: attached PHY driver [Generic Realtek PHY] (mii_bushy_addr=r8169-700:00, irq=IGNORE)
[ +0.008445] audit: type=1130 audit(1569786530.209:54): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ +0.089517] r8169 0000:07:00.0 enp7s0: Link is Down
[ +0.009722] iwlwifi 0000:00:14.3: Applying debug destination EXTERNAL_DRAM
[ +0.116782] iwlwifi 0000:00:14.3: Applying debug destination EXTERNAL_DRAM
[ +0.065374] iwlwifi 0000:00:14.3: FW already configured (0) - re-configuring
[ +0.016333] iwlwifi 0000:00:14.3: BIOS contains WGDS but no WRDS
[ +0.026349] iwlwifi 0000:00:14.3: Applying debug destination EXTERNAL_DRAM
[ +0.116335] iwlwifi 0000:00:14.3: Applying debug destination EXTERNAL_DRAM
[ +0.065428] iwlwifi 0000:00:14.3: FW already configured (0) - re-configuring
[ +0.015705] iwlwifi 0000:00:14.3: BIOS contains WGDS but no WRDS
[ +3.269396] iwlwifi 0000:00:14.3: Applying debug destination EXTERNAL_DRAM
[ +0.119015] iwlwifi 0000:00:14.3: Applying debug destination EXTERNAL_DRAM
[ +0.066312] iwlwifi 0000:00:14.3: FW already configured (0) - re-configuring
[ +0.016910] iwlwifi 0000:00:14.3: BIOS contains WGDS but no WRDS
[ +6.335105] audit: type=1131 audit(1569786540.539:55): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[Sep29 13:49] wlp0s20f3: authenticate with 4c:8b:30:a6:b2:31
[ +0.001431] wlp0s20f3: send auth to 4c:8b:30:a6:b2:31 (try 1/3)
[ +0.038128] iwlwifi 0000:00:14.3: Unhandled alg: 0x707
[ +0.001066] iwlwifi 0000:00:14.3: Unhandled alg: 0x707
[ +0.098222] wlp0s20f3: authenticated
[ +0.002690] wlp0s20f3: associate with 4c:8b:30:a6:b2:31 (try 1/3)
[ +0.004957] wlp0s20f3: RX AssocResp from 4c:8b:30:a6:b2:31 (capab=0x1411 status=0 aid=9)
[ +0.001897] wlp0s20f3: associated
[ +0.018055] IPv6: ADDRCONF(NETDEV_CHANGE): wlp0s20f3: link becomes ready
[ +0.048858] audit: type=1130 audit(1569786551.043:56): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ +0.029932] wlp0s20f3: Limiting TX power to 30 (30 - 0) dBm as advertised by 4c:8b:30:a6:b2:31
 
Old 09-30-2019, 04:51 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,454

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Interesting. The trick with reading those times is that they're relative - how long since the last line. With that, we can shorten the list a lot.
Code:
[Apr19 13:19] [Firmware Bug]: TSC ADJUST differs: CPU0 0 --> -367733271. Restoring

[ +3.269396] iwlwifi 0000:00:14.3: Applying debug destination EXTERNAL_DRAM

[Sep29 13:48] ucsi_ccg 0-0008: failed to reset PPM!
[ +0.000018] ucsi_ccg 0-0008: PPM init failed (-110)
[ +39.035096] ucsi_ccg 0-0008: PPM NOT RESPONDING

[ +6.335105] audit: type=1131 audit(1569786540.539:55): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Now I resume here in 3-4 seconds, so in my mind ALL of those multisecond delays are wrong. Likewise, a firmware bug is decidedly unhealthy. It will probably be fixed by a processor microcode update. The big one (+39 seconds) appears to be a kernel error for which patches exist [Try a search for ""PPM init failed" (-110)]. Error number 110 is a timeout. The 6 seconds is a systemd/NetworkManager error, and may relate to your 3 second iwlwifi error. That's probably firmware related if your wifi card is old as only very recent wifi stuff is in the kernel firmware package.

One possibile fix is downloading a very modern kernel source, running
Code:
make defconfig
make firmware_install
and trying that, but I wouldn't try a kernel recompile. I'd ask first on your distro support forum.

I've no solution for you. Post on your Distribution's support forum
 
Old 10-01-2019, 06:54 PM   #5
Albertaman
LQ Newbie
 
Registered: May 2019
Posts: 11

Original Poster
Rep: Reputation: Disabled
The laptop is a new Lenovo Legion Y540

- Processor: Intel Core i7-9750H (2.60GHz, up to 4.50GHz with Turbo Boost, 6 cores, 12MB Cache)
- Display Type: 15.6" FHD (1920 x 1080) 300 nits, IPS, anti-glare, 60Hz
- Memory: 16GB (8GB + 8GB) DDR4 2666MHz
- Hard Drive: 1TB 7200 RPM + 256GB Solid State Drive PCIe
- Graphics: NVIDIA GeForce GTX 1660 Ti 6GB
- Camera: 720p HD camera with microphone
- Keyboard: Backlit Keyboard - US English
- Wireless: 802.11 AC (2 x 2) & Bluetooth® 4.1

So everything is state of the art.
 
Old 10-02-2019, 03:57 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,454

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
You've got big trouble there. I would get off my rear end. Hound your distro support for answers to the kernel & firmware problems.

Presuming Arch fails you, personally, I would try installing the most recent kernel git (development version), and see what you can do about it. Every section of the kernel has a maintainer. It may solve some problems, and the kernel guys won't listen to you unless you're running it. The PPM thing looks like a kernel or kernel configuration bug. The wifi may also be. The firmware definitely is. If you can't compile a kernel, mark this thread solved and endure it and hope Arch comes through. Joining the LKML is not for the faint of heart, and involves usually 2 or 3 kernel rebuilds, with patching.

You can sometimes download the kernel microcode from the CPU manufacturer's site, which is handy. There's also the spectre-meltdown-checker.sh script to check vulnerabilities https://github.com/speed47/spectre-meltdown-checker

Download spectre-meltdown-checker.sh, and run it as root.
 
  


Reply



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
Suggestion Distribution for HP Pavillion / Lenovo Legion bowhunter96 Linux - Software 2 05-16-2019 09:22 PM
Suspend / Resume takes to much time and generates errors - Kernel 3.12-rc5 firedrake Slackware 1 10-18-2013 04:49 PM
Long resume time (from suspend) with AMD Fusion DavidBanner Linux - General 1 07-09-2012 07:01 AM
TuxOnIce, device resume from suspend takes way too long whoopie Linux - Software 3 08-08-2011 07:35 AM
Lenovo Thinkpad T61p - Takes a long time to resume from suspend kwesadilo Linux - Laptop and Netbook 5 07-26-2008 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 10:41 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration