Linux does not suspend

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
pavelkh
Level 1
Level 1
Posts: 42
Joined: Wed Dec 05, 2012 1:49 am

Linux does not suspend

Post by pavelkh »

Hello,
I saw so many similar topics and tried many things, but nothing helps.
The computer (Linux Mint 20.1, dual boot with Windows 10) does not suspend on lid closed or any other conditions.
Running

Code: Select all

sudo pm-suspend
does not do anything.

Code: Select all

inxi -Fxz
System:
  Kernel: 5.4.0-74-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 4.8.6 Distro: Linux Mint 20.1 Ulyssa 
  base: Ubuntu 20.04 focal 
Machine:
  Type: Laptop System: LENOVO product: 20KH002KUS v: ThinkPad X1 Carbon 6th 
  serial: <filter> 
  Mobo: LENOVO model: 20KH002KUS v: SDK0J40697 WIN serial: <filter> 
  UEFI: LENOVO v: N23ET71W (1.46 ) date: 02/20/2020 
Battery:
  ID-1: BAT0 charge: 47.4 Wh condition: 48.3/57.0 Wh (85%) 
  model: SMP 01AV430 status: Discharging 
CPU:
  Topology: Quad Core model: Intel Core i7-8650U bits: 64 type: MT MCP 
  arch: Kaby Lake rev: A L2 cache: 8192 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 33599 
  Speed: 900 MHz min/max: 400/4200 MHz Core speeds (MHz): 1: 901 2: 900 
  3: 900 4: 900 5: 900 6: 900 7: 900 8: 900 
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Lenovo driver: i915 v: kernel 
  bus ID: 00:02.0 
  Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa 
  resolution: 2560x1440~60Hz 
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.2.6 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo 
  driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
  Sound Server: ALSA v: k5.4.0-74-generic 
Network:
  Device-1: Intel Ethernet I219-LM vendor: Lenovo driver: e1000e v: 3.2.6-k 
  port: efa0 bus ID: 00:1f.6 
  IF: enp0s31f6 state: down mac: <filter> 
  Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel port: efa0 
  bus ID: 02:00.0 
  IF: wlp2s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 476.94 GiB used: 71.07 GiB (14.9%) 
  ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKKF512G8L size: 476.94 GiB 
Partition:
  ID-1: / size: 375.61 GiB used: 71.03 GiB (18.9%) fs: ext4 
  dev: /dev/nvme0n1p5 
Sensors:
  System Temperatures: cpu: 36.5 C mobo: N/A 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 238 Uptime: 9m Memory: 15.39 GiB used: 1.78 GiB (11.6%) 
  Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17 
  inxi: 3.0.38 
I have tried increasing swap, but that did not change the behaviour:

Code: Select all

swapon --show
NAME      TYPE SIZE USED PRIO
/swapfile file  17G   0B   -2
I have been Linux Mint user for many years and never had such issue. Please suggest something.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31313
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Linux does not suspend

Post by SMG »

pavelkh wrote: Sun Jun 13, 2021 9:58 amThe computer (Linux Mint 20.1, dual boot with Windows 10) does not suspend on lid closed or any other conditions.
Suspend is a function of the power states of the computer. That means it is important to have the latest BIOS/UEFI update when troubleshooting this type of issue. The latest version I found BIOS Update (Utility & Bootable CD) for Windows 10 (64-bit), Linux - ThinkPad X1 Carbon (Type 20KH, 20KG) is version 1.51. Looking at the ReadMe it appears there are cpu microcode updates as well as other updates which might affect this issue.

Machine:
Type: Laptop System: LENOVO product: 20KH002KUS v: ThinkPad X1 Carbon 6th
serial: <filter>
Mobo: LENOVO model: 20KH002KUS v: SDK0J40697 WIN serial: <filter>
UEFI: LENOVO v: N23ET71W (1.46 ) date: 02/20/2020

The other option to consider is upgrading your kernel to 5.8 which is available in Update Manager. Many people with 7th gen Intel or newer have noticed performance improvements and clearing of issues when they upgraded to the 5.8 kernel.

To install the 5.8 kernel, open Update Manager. Select View > Linux Kernels and click Continue. Make sure 5.8 is selected on the left panel and then click the top-most option on the right panel. An "Install" button will appear. Install the kernel and then reboot for it to become active.

If neither of those suggestions resolve the issue, then the next time a suspend does not work, run the following dmesg -T | tail -n 200 to see if there are any indications of what might be happening.
pavelkh wrote: Sun Jun 13, 2021 9:58 am I have tried increasing swap, but that did not change the behaviour:
When you suspend the computer, that saves the information to RAM.
Hibernation (saving to disk) is when swap is a factor.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
pavelkh
Level 1
Level 1
Posts: 42
Joined: Wed Dec 05, 2012 1:49 am

Re: Linux does not suspend

Post by pavelkh »

Thank you.
I did the Lenovo firmware updates and updated Linux kernel to 5.8 - no change in suspend behaviour.

This is an output of the dmesg -T | tail -n 200

Code: Select all

[Mon Jun 14 19:11:06 2021] PM: suspend entry (s2idle)
[Mon Jun 14 19:11:06 2021] Filesystems sync: 0.238 seconds
[Mon Jun 14 19:11:06 2021] Freezing user space processes ... (elapsed 0.004 seconds) done.
[Mon Jun 14 19:11:06 2021] OOM killer disabled.
[Mon Jun 14 19:11:06 2021] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[Mon Jun 14 19:11:06 2021] printk: Suspending console(s) (use no_console_suspend to debug)
[Mon Jun 14 19:11:06 2021] PM: dpm_run_callback(): usb_dev_suspend+0x0/0x20 returns -16
[Mon Jun 14 19:11:06 2021] PM: Device usb2 failed to suspend async: error -16
[Mon Jun 14 19:11:06 2021] PM: dpm_run_callback(): usb_dev_suspend+0x0/0x20 returns -16
[Mon Jun 14 19:11:06 2021] PM: Device usb1 failed to suspend async: error -16
[Mon Jun 14 19:11:06 2021] PM: Some devices failed to suspend, or early wake event detected
[Mon Jun 14 19:11:06 2021] OOM killer enabled.
[Mon Jun 14 19:11:06 2021] Restarting tasks ... done.
[Mon Jun 14 19:11:06 2021] thermal thermal_zone6: failed to read out thermal zone (-61)
[Mon Jun 14 19:11:06 2021] PM: suspend exit


Looks like USB is preventing the suspend. How can I fix this?
User avatar
SMG
Level 25
Level 25
Posts: 31313
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Linux does not suspend

Post by SMG »

pavelkh wrote: Mon Jun 14, 2021 11:05 pmThis is an output of the dmesg -T | tail -n 200
The 200 means there would be 200 lines of output, so that is not quite all of it. Errors tend to cascade, so you would want to clear the first error which prevents the computer from suspending as sometimes that is all that is needed for a fix. Other times, all the errors have to be addressed.

I do not know what usb1 or usb2 might be on your computer or even if it is an issue with a specific device. I did some searches on the term and found people who first noticed the issue after a kernel upgrade and a later upgrade cleared it. Some people found it was a specific device while others indicated they had nothing attached or connected to the device in question. Apparently s2idle is not a full suspend mode and it does not take much to wake a computer from it.

Are you able to suspend without problem in Win10?
Is there a setting in BIOS/UEFI that might relate to suspension?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
pavelkh
Level 1
Level 1
Posts: 42
Joined: Wed Dec 05, 2012 1:49 am

Re: Linux does not suspend

Post by pavelkh »

Sorry, copied only the end on the output that seemed to be related to suspending.
Here is the full output:

Code: Select all

[Thu Jun 17 06:05:56 2021] systemd[1]: Mounted Kernel Trace File System.
[Thu Jun 17 06:05:56 2021] systemd[1]: Finished Availability of block devices.
[Thu Jun 17 06:05:56 2021] systemd[1]: Finished Create list of static device nodes for the current kernel.
[Thu Jun 17 06:05:56 2021] systemd[1]: Finished Uncomplicated firewall.
[Thu Jun 17 06:05:56 2021] EXT4-fs (nvme0n1p5): re-mounted. Opts: errors=remount-ro
[Thu Jun 17 06:05:56 2021] systemd[1]: Finished Remount Root and Kernel File Systems.
[Thu Jun 17 06:05:56 2021] systemd[1]: Activating swap /swapfile...
[Thu Jun 17 06:05:56 2021] lp: driver loaded but no devices found
[Thu Jun 17 06:05:56 2021] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[Thu Jun 17 06:05:56 2021] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[Thu Jun 17 06:05:56 2021] systemd[1]: Starting Load/Save Random Seed...
[Thu Jun 17 06:05:56 2021] systemd[1]: Starting Create System Users...
[Thu Jun 17 06:05:56 2021] ppdev: user-space parallel port driver
[Thu Jun 17 06:05:56 2021] systemd[1]: Finished Load Kernel Modules.
[Thu Jun 17 06:05:56 2021] systemd[1]: Mounting FUSE Control File System...
[Thu Jun 17 06:05:56 2021] systemd[1]: Mounting Kernel Configuration File System...
[Thu Jun 17 06:05:56 2021] systemd[1]: Starting Apply Kernel Variables...
[Thu Jun 17 06:05:56 2021] systemd[1]: Finished Load/Save Random Seed.
[Thu Jun 17 06:05:56 2021] systemd[1]: Mounted FUSE Control File System.
[Thu Jun 17 06:05:56 2021] systemd[1]: Mounted Kernel Configuration File System.
[Thu Jun 17 06:05:56 2021] systemd[1]: Finished Create System Users.
[Thu Jun 17 06:05:56 2021] systemd[1]: Starting Create Static Device Nodes in /dev...
[Thu Jun 17 06:05:56 2021] systemd[1]: Finished Apply Kernel Variables.
[Thu Jun 17 06:05:56 2021] systemd[1]: Finished Create Static Device Nodes in /dev.
[Thu Jun 17 06:05:56 2021] systemd[1]: Starting udev Kernel Device Manager...
[Thu Jun 17 06:05:56 2021] Adding 17825788k swap on /swapfile.  Priority:-2 extents:21 across:24379388k SSFS
[Thu Jun 17 06:05:56 2021] systemd[1]: Activated swap /swapfile.
[Thu Jun 17 06:05:56 2021] systemd[1]: Reached target Swap.
[Thu Jun 17 06:05:56 2021] systemd[1]: Started Journal Service.
[Thu Jun 17 06:05:56 2021] systemd-journald[358]: Received client request to flush runtime journal.
[Thu Jun 17 06:05:56 2021] mei_me 0000:00:16.0: enabling device (0004 -> 0006)
[Thu Jun 17 06:05:56 2021] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[Thu Jun 17 06:05:56 2021] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[Thu Jun 17 06:05:56 2021] mc: Linux media interface: v0.10
[Thu Jun 17 06:05:56 2021] Non-volatile memory driver v1.3
[Thu Jun 17 06:05:56 2021] proc_thermal 0000:00:04.0: enabling device (0000 -> 0002)
[Thu Jun 17 06:05:56 2021] videodev: Linux video capture interface: v2.00
[Thu Jun 17 06:05:56 2021] Bluetooth: Core ver 2.22
[Thu Jun 17 06:05:56 2021] NET: Registered protocol family 31
[Thu Jun 17 06:05:56 2021] Bluetooth: HCI device and connection manager initialized
[Thu Jun 17 06:05:56 2021] Bluetooth: HCI socket layer initialized
[Thu Jun 17 06:05:56 2021] Bluetooth: L2CAP socket layer initialized
[Thu Jun 17 06:05:56 2021] Bluetooth: SCO socket layer initialized
[Thu Jun 17 06:05:56 2021] thinkpad_acpi: ThinkPad ACPI Extras v0.26
[Thu Jun 17 06:05:56 2021] thinkpad_acpi: http://ibm-acpi.sf.net/
[Thu Jun 17 06:05:56 2021] thinkpad_acpi: ThinkPad BIOS N23ET76W (1.51 ), EC N23HT37W
[Thu Jun 17 06:05:56 2021] thinkpad_acpi: Lenovo ThinkPad X1 Carbon 6th, model 20KH002KUS
[Thu Jun 17 06:05:56 2021] thinkpad_acpi: radio switch found; radios are enabled
[Thu Jun 17 06:05:56 2021] thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver
[Thu Jun 17 06:05:56 2021] thinkpad_acpi: Disabling thinkpad-acpi brightness events by default...
[Thu Jun 17 06:05:56 2021] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
[Thu Jun 17 06:05:56 2021] usbcore: registered new interface driver btusb
[Thu Jun 17 06:05:56 2021] Intel(R) Wireless WiFi driver for Linux
[Thu Jun 17 06:05:56 2021] Bluetooth: hci0: Bootloader revision 0.0 build 26 week 38 2015
[Thu Jun 17 06:05:56 2021] Bluetooth: hci0: Device revision is 16
[Thu Jun 17 06:05:56 2021] Bluetooth: hci0: Secure boot is enabled
[Thu Jun 17 06:05:56 2021] Bluetooth: hci0: OTP lock is enabled
[Thu Jun 17 06:05:56 2021] Bluetooth: hci0: API lock is enabled
[Thu Jun 17 06:05:56 2021] Bluetooth: hci0: Debug lock is disabled
[Thu Jun 17 06:05:56 2021] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[Thu Jun 17 06:05:56 2021] Bluetooth: hci0: Found device firmware: intel/ibt-12-16.sfi
[Thu Jun 17 06:05:56 2021] iwlwifi 0000:02:00.0: Found debug destination: EXTERNAL_DRAM
[Thu Jun 17 06:05:56 2021] iwlwifi 0000:02:00.0: Found debug configuration: 0
[Thu Jun 17 06:05:56 2021] iwlwifi 0000:02:00.0: loaded firmware version 36.77d01142.0 8265-36.ucode op_mode iwlmvm
[Thu Jun 17 06:05:56 2021] iwlwifi 0000:02:00.0: Direct firmware load for iwl-debug-yoyo.bin failed with error -2
[Thu Jun 17 06:05:56 2021] pstore: Using crash dump compression: deflate
[Thu Jun 17 06:05:56 2021] pstore: Registered efi as persistent store backend
[Thu Jun 17 06:05:56 2021] uvcvideo: Found UVC 1.00 device Integrated IR Camera (04f2:b615)
[Thu Jun 17 06:05:56 2021] rmi4_smbus 0-002c: registering SMbus-connected sensor
[Thu Jun 17 06:05:56 2021] intel_rapl_common: Found RAPL domain package
[Thu Jun 17 06:05:56 2021] intel_rapl_common: Found RAPL domain dram
[Thu Jun 17 06:05:56 2021] proc_thermal 0000:00:04.0: Creating sysfs group for PROC_THERMAL_PCI
[Thu Jun 17 06:05:56 2021] input: Integrated IR Camera: Integrate as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/input/input14
[Thu Jun 17 06:05:56 2021] uvcvideo: Found UVC 1.00 device Integrated Camera (04f2:b614)
[Thu Jun 17 06:05:56 2021] input: Integrated Camera: Integrated C as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/input/input16
[Thu Jun 17 06:05:56 2021] usbcore: registered new interface driver uvcvideo
[Thu Jun 17 06:05:56 2021] USB Video Class driver (1.1.1)
[Thu Jun 17 06:05:56 2021] rmi4_f01 rmi4-00.fn01: found RMI device, manufacturer: Synaptics, product: TM3289-021, fw id: 2698617
[Thu Jun 17 06:05:56 2021] thinkpad_acpi: battery 1 registered (start 0, stop 100)
[Thu Jun 17 06:05:56 2021] battery: new extension: ThinkPad Battery Extension
[Thu Jun 17 06:05:56 2021] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input13
[Thu Jun 17 06:05:56 2021] iwlwifi 0000:02:00.0: Detected Intel(R) Dual Band Wireless AC 8265, REV=0x230
[Thu Jun 17 06:05:56 2021] iwlwifi 0000:02:00.0: Applying debug destination EXTERNAL_DRAM
[Thu Jun 17 06:05:56 2021] iwlwifi 0000:02:00.0: Allocated 0x00400000 bytes for firmware monitor.
[Thu Jun 17 06:05:56 2021] RAPL PMU: API unit is 2^-32 Joules, 5 fixed counters, 655360 ms ovfl timer
[Thu Jun 17 06:05:56 2021] RAPL PMU: hw unit of domain pp0-core 2^-14 Joules
[Thu Jun 17 06:05:56 2021] RAPL PMU: hw unit of domain package 2^-14 Joules
[Thu Jun 17 06:05:56 2021] RAPL PMU: hw unit of domain dram 2^-14 Joules
[Thu Jun 17 06:05:56 2021] RAPL PMU: hw unit of domain pp1-gpu 2^-14 Joules
[Thu Jun 17 06:05:56 2021] RAPL PMU: hw unit of domain psys 2^-14 Joules
[Thu Jun 17 06:05:56 2021] audit: type=1400 audit(1623935157.286:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lsb_release" pid=525 comm="apparmor_parser"
[Thu Jun 17 06:05:56 2021] audit: type=1400 audit(1623935157.286:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-senddoc" pid=527 comm="apparmor_parser"
[Thu Jun 17 06:05:56 2021] audit: type=1400 audit(1623935157.298:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-oopslash" pid=519 comm="apparmor_parser"
[Thu Jun 17 06:05:56 2021] audit: type=1400 audit(1623935157.298:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cups-browsed" pid=520 comm="apparmor_parser"
[Thu Jun 17 06:05:56 2021] audit: type=1400 audit(1623935157.298:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/man" pid=529 comm="apparmor_parser"
[Thu Jun 17 06:05:56 2021] audit: type=1400 audit(1623935157.298:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_filter" pid=529 comm="apparmor_parser"
[Thu Jun 17 06:05:56 2021] audit: type=1400 audit(1623935157.298:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_groff" pid=529 comm="apparmor_parser"
[Thu Jun 17 06:05:56 2021] audit: type=1400 audit(1623935157.298:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-xpdfimport" pid=537 comm="apparmor_parser"
[Thu Jun 17 06:05:56 2021] audit: type=1400 audit(1623935157.306:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=523 comm="apparmor_parser"
[Thu Jun 17 06:05:57 2021] iwlwifi 0000:02:00.0: base HW address: 18:1d:ea:47:d3:58
[Thu Jun 17 06:05:57 2021] input: Synaptics TM3289-021 as /devices/rmi4-00/input/input15
[Thu Jun 17 06:05:57 2021] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[Thu Jun 17 06:05:57 2021] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[Thu Jun 17 06:05:57 2021] serio: RMI4 PS/2 pass-through port at rmi4-00.fn03
[Thu Jun 17 06:05:57 2021] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC285: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[Thu Jun 17 06:05:57 2021] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[Thu Jun 17 06:05:57 2021] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[Thu Jun 17 06:05:57 2021] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[Thu Jun 17 06:05:57 2021] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[Thu Jun 17 06:05:57 2021] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x19
[Thu Jun 17 06:05:57 2021] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12
[Thu Jun 17 06:05:57 2021] intel_rapl_common: Found RAPL domain package
[Thu Jun 17 06:05:57 2021] intel_rapl_common: Found RAPL domain core
[Thu Jun 17 06:05:57 2021] intel_rapl_common: Found RAPL domain uncore
[Thu Jun 17 06:05:57 2021] intel_rapl_common: Found RAPL domain dram
[Thu Jun 17 06:05:57 2021] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[Thu Jun 17 06:05:57 2021] thermal thermal_zone5: failed to read out thermal zone (-61)
[Thu Jun 17 06:05:57 2021] iwlwifi 0000:02:00.0 wlp2s0: renamed from wlan0
[Thu Jun 17 06:05:57 2021] psmouse serio2: trackpoint: Elan TrackPoint firmware: 0x06, buttons: 3/3
[Thu Jun 17 06:05:57 2021] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input18
[Thu Jun 17 06:05:57 2021] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input19
[Thu Jun 17 06:05:57 2021] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input20
[Thu Jun 17 06:05:57 2021] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input21
[Thu Jun 17 06:05:57 2021] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input22
[Thu Jun 17 06:05:57 2021] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input23
[Thu Jun 17 06:05:57 2021] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input24
[Thu Jun 17 06:05:57 2021] input: TPPS/2 Elan TrackPoint as /devices/rmi4-00/rmi4-00.fn03/serio2/input/input17
[Thu Jun 17 06:05:57 2021] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[Thu Jun 17 06:05:57 2021] Bluetooth: BNEP filters: protocol multicast
[Thu Jun 17 06:05:57 2021] Bluetooth: BNEP socket layer initialized
[Thu Jun 17 06:05:57 2021] kauditd_printk_skb: 13 callbacks suppressed
[Thu Jun 17 06:05:57 2021] audit: type=1400 audit(1623935157.782:24): apparmor="DENIED" operation="capable" profile="/usr/sbin/cups-browsed" pid=755 comm="cups-browsed" capability=23  capname="sys_nice"
[Thu Jun 17 06:05:57 2021] iwlwifi 0000:02:00.0: Applying debug destination EXTERNAL_DRAM
[Thu Jun 17 06:05:57 2021] i915 0000:00:02.0: [drm] *ERROR* Atomic update failure on pipe A (start=1070 end=1071) time 441 us, min 1431, max 1439, scanline start 1428, end 1462
[Thu Jun 17 06:05:57 2021] iwlwifi 0000:02:00.0: Applying debug destination EXTERNAL_DRAM
[Thu Jun 17 06:05:57 2021] Lockdown: Xorg: raw io port access is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:05:58 2021] iwlwifi 0000:02:00.0: FW already configured (0) - re-configuring
[Thu Jun 17 06:05:58 2021] Bluetooth: hci0: Waiting for firmware download to complete
[Thu Jun 17 06:05:58 2021] Bluetooth: hci0: Firmware loaded in 1831962 usecs
[Thu Jun 17 06:05:58 2021] Bluetooth: hci0: Waiting for device to boot
[Thu Jun 17 06:05:58 2021] Bluetooth: hci0: Device booted in 11779 usecs
[Thu Jun 17 06:05:58 2021] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-12-16.ddc
[Thu Jun 17 06:05:58 2021] Bluetooth: hci0: Applying Intel DDC parameters completed
[Thu Jun 17 06:05:58 2021] Bluetooth: hci0: Firmware revision 0.1 build 50 week 12 2019
[Thu Jun 17 06:05:58 2021] NET: Registered protocol family 38
[Thu Jun 17 06:05:59 2021] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:05:59 2021] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:05:59 2021] Bluetooth: RFCOMM TTY layer initialized
[Thu Jun 17 06:05:59 2021] Bluetooth: RFCOMM socket layer initialized
[Thu Jun 17 06:05:59 2021] Bluetooth: RFCOMM ver 1.11
[Thu Jun 17 06:06:01 2021] wlp2s0: authenticate with 00:26:f2:92:2d:44
[Thu Jun 17 06:06:01 2021] wlp2s0: send auth to 00:26:f2:92:2d:44 (try 1/3)
[Thu Jun 17 06:06:01 2021] wlp2s0: authenticated
[Thu Jun 17 06:06:01 2021] iwlwifi 0000:02:00.0 wlp2s0: disabling HT/VHT/HE as WMM/QoS is not supported by the AP
[Thu Jun 17 06:06:01 2021] wlp2s0: associate with 00:26:f2:92:2d:44 (try 1/3)
[Thu Jun 17 06:06:01 2021] wlp2s0: RX AssocResp from 00:26:f2:92:2d:44 (capab=0x431 status=0 aid=7)
[Thu Jun 17 06:06:01 2021] wlp2s0: associated
[Thu Jun 17 06:06:01 2021] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
[Thu Jun 17 06:06:01 2021] wlp2s0: Limiting TX power to 27 (27 - 0) dBm as advertised by 00:26:f2:92:2d:44
[Thu Jun 17 06:06:03 2021] sd 0:0:0:0: [sda] Attached SCSI removable disk
[Thu Jun 17 06:06:03 2021] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
[Thu Jun 17 06:07:00 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:07:00 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:07:00 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:07:00 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:07:00 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:07:00 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:07:00 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:07:00 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:07:00 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:07:00 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:07:01 2021] PM: suspend entry (s2idle)
[Thu Jun 17 06:07:01 2021] Filesystems sync: 0.001 seconds
[Thu Jun 17 06:07:01 2021] Freezing user space processes ... (elapsed 0.004 seconds) done.
[Thu Jun 17 06:07:01 2021] OOM killer disabled.
[Thu Jun 17 06:07:01 2021] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[Thu Jun 17 06:07:01 2021] printk: Suspending console(s) (use no_console_suspend to debug)
[Thu Jun 17 06:07:01 2021] wlp2s0: deauthenticating from 00:26:f2:92:2d:44 by local choice (Reason: 3=DEAUTH_LEAVING)
[Thu Jun 17 06:07:01 2021] PM: dpm_run_callback(): usb_dev_suspend+0x0/0x20 returns -16
[Thu Jun 17 06:07:01 2021] PM: Device usb1 failed to suspend async: error -16
[Thu Jun 17 06:07:01 2021] PM: Some devices failed to suspend, or early wake event detected
[Thu Jun 17 06:07:01 2021] iwlwifi 0000:02:00.0: Applying debug destination EXTERNAL_DRAM
[Thu Jun 17 06:07:02 2021] iwlwifi 0000:02:00.0: Applying debug destination EXTERNAL_DRAM
[Thu Jun 17 06:07:02 2021] iwlwifi 0000:02:00.0: FW already configured (0) - re-configuring
[Thu Jun 17 06:07:02 2021] OOM killer enabled.
[Thu Jun 17 06:07:02 2021] Restarting tasks ... done.
[Thu Jun 17 06:07:02 2021] PM: suspend exit
[Thu Jun 17 06:07:02 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:07:02 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:07:02 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:07:02 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:07:02 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:07:05 2021] wlp2s0: authenticate with 00:26:f2:92:2d:44
[Thu Jun 17 06:07:05 2021] wlp2s0: send auth to 00:26:f2:92:2d:44 (try 1/3)
[Thu Jun 17 06:07:05 2021] wlp2s0: authenticated
[Thu Jun 17 06:07:05 2021] iwlwifi 0000:02:00.0 wlp2s0: disabling HT/VHT/HE as WMM/QoS is not supported by the AP
[Thu Jun 17 06:07:05 2021] wlp2s0: associate with 00:26:f2:92:2d:44 (try 1/3)
[Thu Jun 17 06:07:05 2021] wlp2s0: RX AssocResp from 00:26:f2:92:2d:44 (capab=0x431 status=0 aid=7)
[Thu Jun 17 06:07:05 2021] wlp2s0: associated
[Thu Jun 17 06:07:05 2021] wlp2s0: Limiting TX power to 27 (27 - 0) dBm as advertised by 00:26:f2:92:2d:44


I logged in to Windows and checked the sleep behaviour: the laptop behaves differently - there is actually indications of sleep mode with LEDs dimming (this I do not see in Linux), but fans still running and waking up happens without prompt to login. It does not look that computer is actually sleeping except that screen is off and LED is dimming. But I am not an experienced Windows user and I do not know what to expect from Windows sleep mode.

I also got a message in Windows that USB experienced power surge.
I am getting similar message related to USB during Linux loading, but it is an intermittent small message on the black screen that clears in less than a second.

I have nothing connected to USBs.

Will check about BIOS settings
pavelkh
Level 1
Level 1
Posts: 42
Joined: Wed Dec 05, 2012 1:49 am

Re: Linux does not suspend

Post by pavelkh »

Checked BIOS: there is a setting about "sleep mode optimized for". I changed it from Windows 10 to Linux.
This did not fix the suspend issue.
I also paid more attention to the message during Linux boot up: it said something like "usb1 - overcurrent condition"

Here is the output of the dmesg -T | tail -n 200 after changing BIOS setting:

Code: Select all

[Thu Jun 17 06:24:10 2021] systemd[1]: Mounted Kernel Trace File System.
[Thu Jun 17 06:24:10 2021] systemd[1]: Finished Availability of block devices.
[Thu Jun 17 06:24:10 2021] systemd[1]: Finished Create list of static device nodes for the current kernel.
[Thu Jun 17 06:24:10 2021] systemd[1]: Finished Uncomplicated firewall.
[Thu Jun 17 06:24:10 2021] EXT4-fs (nvme0n1p5): re-mounted. Opts: errors=remount-ro
[Thu Jun 17 06:24:10 2021] systemd[1]: Finished Remount Root and Kernel File Systems.
[Thu Jun 17 06:24:10 2021] systemd[1]: Activating swap /swapfile...
[Thu Jun 17 06:24:10 2021] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[Thu Jun 17 06:24:10 2021] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[Thu Jun 17 06:24:10 2021] systemd[1]: Starting Load/Save Random Seed...
[Thu Jun 17 06:24:10 2021] lp: driver loaded but no devices found
[Thu Jun 17 06:24:10 2021] systemd[1]: Starting Create System Users...
[Thu Jun 17 06:24:10 2021] ppdev: user-space parallel port driver
[Thu Jun 17 06:24:10 2021] systemd[1]: Finished Load Kernel Modules.
[Thu Jun 17 06:24:10 2021] systemd[1]: Mounting FUSE Control File System...
[Thu Jun 17 06:24:10 2021] systemd[1]: Mounting Kernel Configuration File System...
[Thu Jun 17 06:24:10 2021] systemd[1]: Starting Apply Kernel Variables...
[Thu Jun 17 06:24:10 2021] systemd[1]: Finished Load/Save Random Seed.
[Thu Jun 17 06:24:10 2021] systemd[1]: Mounted FUSE Control File System.
[Thu Jun 17 06:24:10 2021] systemd[1]: Mounted Kernel Configuration File System.
[Thu Jun 17 06:24:10 2021] systemd[1]: Finished Create System Users.
[Thu Jun 17 06:24:10 2021] systemd[1]: Starting Create Static Device Nodes in /dev...
[Thu Jun 17 06:24:10 2021] Adding 17825788k swap on /swapfile.  Priority:-2 extents:21 across:24379388k SSFS
[Thu Jun 17 06:24:10 2021] systemd[1]: Finished Apply Kernel Variables.
[Thu Jun 17 06:24:10 2021] systemd[1]: Activated swap /swapfile.
[Thu Jun 17 06:24:10 2021] systemd[1]: Finished Create Static Device Nodes in /dev.
[Thu Jun 17 06:24:10 2021] systemd[1]: Reached target Swap.
[Thu Jun 17 06:24:10 2021] systemd[1]: Starting udev Kernel Device Manager...
[Thu Jun 17 06:24:10 2021] systemd[1]: Finished Set the console keyboard layout.
[Thu Jun 17 06:24:10 2021] systemd[1]: Started Journal Service.
[Thu Jun 17 06:24:10 2021] systemd-journald[354]: Received client request to flush runtime journal.
[Thu Jun 17 06:24:10 2021] proc_thermal 0000:00:04.0: enabling device (0000 -> 0002)
[Thu Jun 17 06:24:10 2021] mei_me 0000:00:16.0: enabling device (0004 -> 0006)
[Thu Jun 17 06:24:10 2021] mc: Linux media interface: v0.10
[Thu Jun 17 06:24:10 2021] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[Thu Jun 17 06:24:10 2021] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[Thu Jun 17 06:24:10 2021] videodev: Linux video capture interface: v2.00
[Thu Jun 17 06:24:10 2021] Bluetooth: Core ver 2.22
[Thu Jun 17 06:24:10 2021] NET: Registered protocol family 31
[Thu Jun 17 06:24:10 2021] Bluetooth: HCI device and connection manager initialized
[Thu Jun 17 06:24:10 2021] Bluetooth: HCI socket layer initialized
[Thu Jun 17 06:24:10 2021] Bluetooth: L2CAP socket layer initialized
[Thu Jun 17 06:24:10 2021] Bluetooth: SCO socket layer initialized
[Thu Jun 17 06:24:10 2021] Intel(R) Wireless WiFi driver for Linux
[Thu Jun 17 06:24:10 2021] usbcore: registered new interface driver btusb
[Thu Jun 17 06:24:10 2021] Non-volatile memory driver v1.3
[Thu Jun 17 06:24:10 2021] Bluetooth: hci0: Bootloader revision 0.0 build 26 week 38 2015
[Thu Jun 17 06:24:10 2021] Bluetooth: hci0: Device revision is 16
[Thu Jun 17 06:24:10 2021] Bluetooth: hci0: Secure boot is enabled
[Thu Jun 17 06:24:10 2021] Bluetooth: hci0: OTP lock is enabled
[Thu Jun 17 06:24:10 2021] Bluetooth: hci0: API lock is enabled
[Thu Jun 17 06:24:10 2021] Bluetooth: hci0: Debug lock is disabled
[Thu Jun 17 06:24:10 2021] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[Thu Jun 17 06:24:10 2021] uvcvideo: Found UVC 1.00 device Integrated IR Camera (04f2:b615)
[Thu Jun 17 06:24:10 2021] Bluetooth: hci0: Found device firmware: intel/ibt-12-16.sfi
[Thu Jun 17 06:24:10 2021] iwlwifi 0000:02:00.0: Found debug destination: EXTERNAL_DRAM
[Thu Jun 17 06:24:10 2021] iwlwifi 0000:02:00.0: Found debug configuration: 0
[Thu Jun 17 06:24:10 2021] iwlwifi 0000:02:00.0: loaded firmware version 36.77d01142.0 8265-36.ucode op_mode iwlmvm
[Thu Jun 17 06:24:10 2021] iwlwifi 0000:02:00.0: Direct firmware load for iwl-debug-yoyo.bin failed with error -2
[Thu Jun 17 06:24:10 2021] intel_rapl_common: Found RAPL domain package
[Thu Jun 17 06:24:10 2021] intel_rapl_common: Found RAPL domain dram
[Thu Jun 17 06:24:10 2021] proc_thermal 0000:00:04.0: Creating sysfs group for PROC_THERMAL_PCI
[Thu Jun 17 06:24:10 2021] pstore: Using crash dump compression: deflate
[Thu Jun 17 06:24:10 2021] pstore: Registered efi as persistent store backend
[Thu Jun 17 06:24:10 2021] rmi4_smbus 0-002c: registering SMbus-connected sensor
[Thu Jun 17 06:24:10 2021] RAPL PMU: API unit is 2^-32 Joules, 5 fixed counters, 655360 ms ovfl timer
[Thu Jun 17 06:24:10 2021] RAPL PMU: hw unit of domain pp0-core 2^-14 Joules
[Thu Jun 17 06:24:10 2021] RAPL PMU: hw unit of domain package 2^-14 Joules
[Thu Jun 17 06:24:10 2021] RAPL PMU: hw unit of domain dram 2^-14 Joules
[Thu Jun 17 06:24:10 2021] RAPL PMU: hw unit of domain pp1-gpu 2^-14 Joules
[Thu Jun 17 06:24:10 2021] RAPL PMU: hw unit of domain psys 2^-14 Joules
[Thu Jun 17 06:24:10 2021] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[Thu Jun 17 06:24:10 2021] input: Integrated IR Camera: Integrate as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/input/input13
[Thu Jun 17 06:24:10 2021] uvcvideo: Found UVC 1.00 device Integrated Camera (04f2:b614)
[Thu Jun 17 06:24:10 2021] iwlwifi 0000:02:00.0: Detected Intel(R) Dual Band Wireless AC 8265, REV=0x230
[Thu Jun 17 06:24:10 2021] iwlwifi 0000:02:00.0: Applying debug destination EXTERNAL_DRAM
[Thu Jun 17 06:24:10 2021] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[Thu Jun 17 06:24:10 2021] thinkpad_acpi: ThinkPad ACPI Extras v0.26
[Thu Jun 17 06:24:10 2021] thinkpad_acpi: http://ibm-acpi.sf.net/
[Thu Jun 17 06:24:10 2021] thinkpad_acpi: ThinkPad BIOS N23ET76W (1.51 ), EC N23HT37W
[Thu Jun 17 06:24:10 2021] thinkpad_acpi: Lenovo ThinkPad X1 Carbon 6th, model 20KH002KUS
[Thu Jun 17 06:24:10 2021] iwlwifi 0000:02:00.0: Allocated 0x00400000 bytes for firmware monitor.
[Thu Jun 17 06:24:10 2021] thinkpad_acpi: radio switch found; radios are enabled
[Thu Jun 17 06:24:10 2021] thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver
[Thu Jun 17 06:24:10 2021] thinkpad_acpi: Disabling thinkpad-acpi brightness events by default...
[Thu Jun 17 06:24:10 2021] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
[Thu Jun 17 06:24:10 2021] input: Integrated Camera: Integrated C as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/input/input16
[Thu Jun 17 06:24:10 2021] usbcore: registered new interface driver uvcvideo
[Thu Jun 17 06:24:10 2021] USB Video Class driver (1.1.1)
[Thu Jun 17 06:24:10 2021] rmi4_f01 rmi4-00.fn01: found RMI device, manufacturer: Synaptics, product: TM3289-021, fw id: 2698617
[Thu Jun 17 06:24:10 2021] iwlwifi 0000:02:00.0: base HW address: 18:1d:ea:47:d3:58
[Thu Jun 17 06:24:10 2021] thinkpad_acpi: battery 1 registered (start 0, stop 100)
[Thu Jun 17 06:24:10 2021] battery: new extension: ThinkPad Battery Extension
[Thu Jun 17 06:24:10 2021] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input15
[Thu Jun 17 06:24:10 2021] input: Synaptics TM3289-021 as /devices/rmi4-00/input/input14
[Thu Jun 17 06:24:10 2021] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[Thu Jun 17 06:24:10 2021] thermal thermal_zone5: failed to read out thermal zone (-61)
[Thu Jun 17 06:24:10 2021] serio: RMI4 PS/2 pass-through port at rmi4-00.fn03
[Thu Jun 17 06:24:10 2021] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC285: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[Thu Jun 17 06:24:10 2021] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[Thu Jun 17 06:24:10 2021] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[Thu Jun 17 06:24:10 2021] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[Thu Jun 17 06:24:10 2021] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[Thu Jun 17 06:24:10 2021] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x19
[Thu Jun 17 06:24:10 2021] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12
[Thu Jun 17 06:24:10 2021] intel_rapl_common: Found RAPL domain package
[Thu Jun 17 06:24:10 2021] intel_rapl_common: Found RAPL domain core
[Thu Jun 17 06:24:10 2021] intel_rapl_common: Found RAPL domain uncore
[Thu Jun 17 06:24:10 2021] intel_rapl_common: Found RAPL domain dram
[Thu Jun 17 06:24:10 2021] iwlwifi 0000:02:00.0 wlp2s0: renamed from wlan0
[Thu Jun 17 06:24:10 2021] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input18
[Thu Jun 17 06:24:10 2021] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input19
[Thu Jun 17 06:24:10 2021] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input20
[Thu Jun 17 06:24:10 2021] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input21
[Thu Jun 17 06:24:10 2021] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input22
[Thu Jun 17 06:24:10 2021] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input23
[Thu Jun 17 06:24:10 2021] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input24
[Thu Jun 17 06:24:10 2021] psmouse serio2: trackpoint: Elan TrackPoint firmware: 0x06, buttons: 3/3
[Thu Jun 17 06:24:10 2021] input: TPPS/2 Elan TrackPoint as /devices/rmi4-00/rmi4-00.fn03/serio2/input/input17
[Thu Jun 17 06:24:12 2021] Bluetooth: hci0: Waiting for firmware download to complete
[Thu Jun 17 06:24:12 2021] Bluetooth: hci0: Firmware loaded in 2143443 usecs
[Thu Jun 17 06:24:12 2021] Bluetooth: hci0: Waiting for device to boot
[Thu Jun 17 06:24:12 2021] Bluetooth: hci0: Device booted in 11721 usecs
[Thu Jun 17 06:24:12 2021] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-12-16.ddc
[Thu Jun 17 06:24:12 2021] Bluetooth: hci0: Applying Intel DDC parameters completed
[Thu Jun 17 06:24:12 2021] Bluetooth: hci0: Firmware revision 0.1 build 50 week 12 2019
[Thu Jun 17 06:24:14 2021] sd 0:0:0:0: [sda] Attached SCSI removable disk
[Thu Jun 17 06:24:14 2021] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
[Thu Jun 17 06:24:14 2021] audit: type=1400 audit(1623936254.986:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-senddoc" pid=610 comm="apparmor_parser"
[Thu Jun 17 06:24:14 2021] audit: type=1400 audit(1623936254.986:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lsb_release" pid=608 comm="apparmor_parser"
[Thu Jun 17 06:24:14 2021] audit: type=1400 audit(1623936254.986:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=612 comm="apparmor_parser"
[Thu Jun 17 06:24:14 2021] audit: type=1400 audit(1623936254.986:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=612 comm="apparmor_parser"
[Thu Jun 17 06:24:14 2021] audit: type=1400 audit(1623936254.986:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/man" pid=611 comm="apparmor_parser"
[Thu Jun 17 06:24:14 2021] audit: type=1400 audit(1623936254.986:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_filter" pid=611 comm="apparmor_parser"
[Thu Jun 17 06:24:14 2021] audit: type=1400 audit(1623936254.986:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_groff" pid=611 comm="apparmor_parser"
[Thu Jun 17 06:24:14 2021] audit: type=1400 audit(1623936254.986:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-oopslash" pid=603 comm="apparmor_parser"
[Thu Jun 17 06:24:14 2021] audit: type=1400 audit(1623936254.986:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cups-browsed" pid=604 comm="apparmor_parser"
[Thu Jun 17 06:24:14 2021] audit: type=1400 audit(1623936254.990:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-xpdfimport" pid=615 comm="apparmor_parser"
[Thu Jun 17 06:24:15 2021] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[Thu Jun 17 06:24:15 2021] Bluetooth: BNEP filters: protocol multicast
[Thu Jun 17 06:24:15 2021] Bluetooth: BNEP socket layer initialized
[Thu Jun 17 06:24:15 2021] NET: Registered protocol family 38
[Thu Jun 17 06:24:15 2021] iwlwifi 0000:02:00.0: Applying debug destination EXTERNAL_DRAM
[Thu Jun 17 06:24:15 2021] iwlwifi 0000:02:00.0: Applying debug destination EXTERNAL_DRAM
[Thu Jun 17 06:24:15 2021] Lockdown: Xorg: raw io port access is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:15 2021] iwlwifi 0000:02:00.0: FW already configured (0) - re-configuring
[Thu Jun 17 06:24:17 2021] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:17 2021] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:17 2021] Bluetooth: RFCOMM TTY layer initialized
[Thu Jun 17 06:24:17 2021] Bluetooth: RFCOMM socket layer initialized
[Thu Jun 17 06:24:17 2021] Bluetooth: RFCOMM ver 1.11
[Thu Jun 17 06:24:19 2021] wlp2s0: authenticate with 00:26:f2:92:2d:44
[Thu Jun 17 06:24:19 2021] wlp2s0: send auth to 00:26:f2:92:2d:44 (try 1/3)
[Thu Jun 17 06:24:19 2021] wlp2s0: authenticated
[Thu Jun 17 06:24:19 2021] iwlwifi 0000:02:00.0 wlp2s0: disabling HT/VHT/HE as WMM/QoS is not supported by the AP
[Thu Jun 17 06:24:19 2021] wlp2s0: associate with 00:26:f2:92:2d:44 (try 1/3)
[Thu Jun 17 06:24:19 2021] wlp2s0: RX AssocResp from 00:26:f2:92:2d:44 (capab=0x431 status=0 aid=7)
[Thu Jun 17 06:24:19 2021] wlp2s0: associated
[Thu Jun 17 06:24:19 2021] wlp2s0: Limiting TX power to 27 (27 - 0) dBm as advertised by 00:26:f2:92:2d:44
[Thu Jun 17 06:24:19 2021] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
[Thu Jun 17 06:24:38 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:38 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:38 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:38 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:38 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:38 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:38 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:38 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:38 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:38 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:39 2021] PM: suspend entry (deep)
[Thu Jun 17 06:24:39 2021] Filesystems sync: 0.000 seconds
[Thu Jun 17 06:24:39 2021] Freezing user space processes ... (elapsed 0.003 seconds) done.
[Thu Jun 17 06:24:39 2021] OOM killer disabled.
[Thu Jun 17 06:24:39 2021] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[Thu Jun 17 06:24:39 2021] printk: Suspending console(s) (use no_console_suspend to debug)
[Thu Jun 17 06:24:40 2021] wlp2s0: deauthenticating from 00:26:f2:92:2d:44 by local choice (Reason: 3=DEAUTH_LEAVING)
[Thu Jun 17 06:24:40 2021] PM: dpm_run_callback(): usb_dev_suspend+0x0/0x20 returns -16
[Thu Jun 17 06:24:40 2021] PM: Device usb1 failed to suspend async: error -16
[Thu Jun 17 06:24:40 2021] PM: Some devices failed to suspend, or early wake event detected
[Thu Jun 17 06:24:40 2021] iwlwifi 0000:02:00.0: Applying debug destination EXTERNAL_DRAM
[Thu Jun 17 06:24:40 2021] iwlwifi 0000:02:00.0: Applying debug destination EXTERNAL_DRAM
[Thu Jun 17 06:24:40 2021] iwlwifi 0000:02:00.0: FW already configured (0) - re-configuring
[Thu Jun 17 06:24:40 2021] acpi LNXPOWER:01: Turning OFF
[Thu Jun 17 06:24:40 2021] OOM killer enabled.
[Thu Jun 17 06:24:40 2021] Restarting tasks ... done.
[Thu Jun 17 06:24:40 2021] PM: suspend exit
[Thu Jun 17 06:24:40 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:40 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:40 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:40 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:40 2021] Lockdown: grep: hibernation is restricted; see man kernel_lockdown.7
[Thu Jun 17 06:24:43 2021] wlp2s0: authenticate with 00:26:f2:92:2d:44
[Thu Jun 17 06:24:43 2021] wlp2s0: send auth to 00:26:f2:92:2d:44 (try 1/3)
[Thu Jun 17 06:24:43 2021] wlp2s0: authenticated
[Thu Jun 17 06:24:43 2021] iwlwifi 0000:02:00.0 wlp2s0: disabling HT/VHT/HE as WMM/QoS is not supported by the AP
[Thu Jun 17 06:24:43 2021] wlp2s0: associate with 00:26:f2:92:2d:44 (try 1/3)
[Thu Jun 17 06:24:43 2021] wlp2s0: RX AssocResp from 00:26:f2:92:2d:44 (capab=0x431 status=0 aid=7)
[Thu Jun 17 06:24:43 2021] wlp2s0: associated
[Thu Jun 17 06:24:43 2021] wlp2s0: Limiting TX power to 27 (27 - 0) dBm as advertised by 00:26:f2:92:2d:44
User avatar
SMG
Level 25
Level 25
Posts: 31313
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Linux does not suspend

Post by SMG »

pavelkh wrote: Thu Jun 17, 2021 9:20 amSorry, copied only the end on the output that seemed to be related to suspending.
Here is the full output:
It appears only usb1 showed up in this log and the one after you made the BIOS setting change.
pavelkh wrote: Thu Jun 17, 2021 9:20 amI also got a message in Windows that USB experienced power surge.
I am getting similar message related to USB during Linux loading, but it is an intermittent small message on the black screen that clears in less than a second.

I have nothing connected to USBs.
USB refers to the connection in the computer. There are more usb connections than just the external usb ports to which you can attach items. I found this thread usb usb1-port11: over-current condition to which someone responded indicating it appears to be a hardware issue. That seems likely given you are seeing it in both Windows and Mint.

This thread [Solved] USB Over-current condition on port 3 and 4 seems to indicate it could be related to a broken/defective usb port or to the kernel. You have already changed kernels with seemingly the same results, so maybe it is a usb port issue.

You can run lsusb to see the usb devices on your computer and which version of usb (2.0 or 3.0) they are.
pavelkh wrote: Thu Jun 17, 2021 9:20 amI logged in to Windows and checked the sleep behaviour: the laptop behaves differently - there is actually indications of sleep mode with LEDs dimming (this I do not see in Linux), but fans still running and waking up happens without prompt to login. It does not look that computer is actually sleeping except that screen is off and LED is dimming.
What you have described sounds like the descriptions I've seen for s2idle mode (which is not actually a full sleep mode). Note the log does not indicate sleep mode (S3). Some newer computers do not have S3 enabled, but instead have the s2idle.

Code: Select all

[Thu Jun 17 06:07:01 2021] PM: suspend entry (s2idle)
The below error relates to your graphics. However, I did not notice this line in the output after you changed the BIOS setting. Have you noticed any anomalies with your graphics? Sometimes graphics driver issues are related to power states such as suspend.

Code: Select all

[Thu Jun 17 06:05:57 2021] i915 0000:00:02.0: [drm] *ERROR* Atomic update failure on pipe A (start=1070 end=1071) time 441 us, min 1431, max 1439, scanline start 1428, end 1462
pavelkh wrote: Thu Jun 17, 2021 9:29 am Checked BIOS: there is a setting about "sleep mode optimized for". I changed it from Windows 10 to Linux.
This did not fix the suspend issue.
I've received "mixed" feedback on what setting that value should be. One person indicated their system worked better in Mint when they had the setting set to Windows while another person indicated it needed to be set to Linux to have their issue resolved.

You might be able to get more information on the Lenovo community forums on the sleep states and their settings and how they relate to your specific computer model.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Neil Edmond
Level 6
Level 6
Posts: 1346
Joined: Thu Dec 26, 2013 10:19 am
Location: N.E. AR USA

Re: Linux does not suspend

Post by Neil Edmond »

Also good idea to do visual exam of USB ports for damage. If the plastic block is missing from even one port, it can wreak all sorts of havoc.
pavelkh
Level 1
Level 1
Posts: 42
Joined: Wed Dec 05, 2012 1:49 am

Re: Linux does not suspend

Post by pavelkh »

I know that one of the USB ports does not work no matter what I connect to it.
I opened the laptop today to inspect the port. I did not find visual damage or dust.
Unfortunately, the port is soldered to the motherboard and I can not physically disconnect it.
Is there a way to tell system not to apply power to that USB?
Do you think that fresh installation of Linux Mint with wiping off Windows may help?

About S3 mode. I ran
journalctl -xb |grep S3
Got the following output:
Jun 18 05:53:23 <compute-name> kernel: ACPI: (supports S0 S3 S4 S5)
So, it looks like the computer supports S3 mode.

I tried to enter suspend in a different way: sudo systemctl suspend
But similar result as with sudo pm-suspend - no suspend
User avatar
SMG
Level 25
Level 25
Posts: 31313
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Linux does not suspend

Post by SMG »

pavelkh wrote: Fri Jun 18, 2021 9:07 am I know that one of the USB ports does not work no matter what I connect to it.
I opened the laptop today to inspect the port. I did not find visual damage or dust.
Unfortunately, the port is soldered to the motherboard and I can not physically disconnect it.
Is there a way to tell system not to apply power to that USB?
While investigating your issue, I did come across some posts which mentioned how to disable ports, but I do not recall if there was a way to disable just one port. I seem to recall the info indicating it would disable all ports, but I it is possible that is not the case. You might want to ask that question on the Lenovo community forum since that is a specific hardware question. (Quite a few people on that forum use Linux-based distros.)
pavelkh wrote: Fri Jun 18, 2021 9:07 amDo you think that fresh installation of Linux Mint with wiping off Windows may help?
I would not think that would help.
pavelkh wrote: Fri Jun 18, 2021 9:07 amAbout S3 mode. I ran
journalctl -xb |grep S3
Got the following output:
Jun 18 05:53:23 <compute-name> kernel: ACPI: (supports S0 S3 S4 S5)
So, it looks like the computer supports S3 mode.
To me, that information indicates the kernel supports doing that. You may have to do something special to enable the functionality in the computer's hardware. The default for many newer computers which came with Windows is to have the S2idle functionality be the default sleep and not the S3 state (even though S3 state is possible).
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Other topics”