Suspend and hibernate does not work on Debian buster on Asus UX501V notebook
Hello everybody,
My machine wakes up immediately after suspend, how could I fix it? I use this kernel: ``` uname -a Linux asus 5.5.0-0.bpo.2-amd64 #1 SMP Debian 5.5.17-1~bpo10+1 (2020-04-23) x86_64 GNU/Linux ``` My display manager is lightdm. It is an Asus laptop with 2 graphics card: nvidia+i915, nvidia drivers are not installed. There is no acpi switches on kernel boot, the boot command line from grub config is: ``` GRUB_CMDLINE_LINUX="splash quiet" ``` And below is the related sys.log part after suspend-immediate-wake-up. Thank you for your time and help in advance! ``` ADDRCONF(NETDEV_CHANGE): docker0: link becomes ready [ 1438.780706] PM: suspend entry (deep) [ 1438.793608] Filesystems sync: 0.012 seconds [ 1438.793816] (NULL device *): firmware: direct-loading firmware regulatory.db [ 1438.793835] (NULL device *): firmware: direct-loading firmware regulatory.db.p7s [ 1438.793858] (NULL device *): firmware: direct-loading firmware intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq [ 1438.793999] (NULL device *): firmware: direct-loading firmware iwlwifi-7265D-29.ucode [ 1438.794140] (NULL device *): firmware: direct-loading firmware i915/skl_dmc_ver1_27.bin [ 1438.794201] Freezing user space processes ... (elapsed 0.001 seconds) done. [ 1438.796072] OOM killer disabled. [ 1438.796073] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 1438.797244] printk: Suspending console(s) (use no_console_suspend to debug) [ 1438.797474] wlp3s0: deauthenticating from a4:2b:b0:c7:33:dd by local choice (Reason: 3=DEAUTH_LEAVING) [ 1438.816608] sd 0:0:0:0: [sda] Synchronizing SCSI cache [ 1438.816694] sd 0:0:0:0: [sda] Stopping disk [ 1439.937624] ACPI: EC: interrupt blocked [ 1440.022830] ACPI: Preparing to enter system sleep state S3 [ 1440.037416] ACPI: EC: event blocked [ 1440.037418] ACPI: EC: EC stopped [ 1440.037419] PM: Saving platform NVS memory [ 1440.037591] Disabling non-boot CPUs ... [ 1440.039431] smpboot: CPU 1 is now offline [ 1440.045183] smpboot: CPU 2 is now offline [ 1440.051309] smpboot: CPU 3 is now offline [ 1440.058330] smpboot: CPU 4 is now offline [ 1440.063752] smpboot: CPU 5 is now offline [ 1440.068324] smpboot: CPU 6 is now offline [ 1440.072322] smpboot: CPU 7 is now offline [ 1440.077137] ACPI: Low-level resume complete [ 1440.077222] ACPI: EC: EC started [ 1440.077222] PM: Restoring platform NVS memory [ 1440.079735] Enabling non-boot CPUs ... [ 1440.079768] x86: Booting SMP configuration: [ 1440.079769] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 1440.081960] CPU1 is up [ 1440.081981] smpboot: Booting Node 0 Processor 2 APIC 0x4 [ 1440.083770] CPU2 is up [ 1440.083788] smpboot: Booting Node 0 Processor 3 APIC 0x6 [ 1440.085590] CPU3 is up [ 1440.085607] smpboot: Booting Node 0 Processor 4 APIC 0x1 [ 1440.086319] CPU4 is up [ 1440.086340] smpboot: Booting Node 0 Processor 5 APIC 0x3 [ 1440.086930] CPU5 is up [ 1440.086947] smpboot: Booting Node 0 Processor 6 APIC 0x5 [ 1440.087566] CPU6 is up [ 1440.087585] smpboot: Booting Node 0 Processor 7 APIC 0x7 [ 1440.088207] CPU7 is up [ 1440.090643] ACPI: Waking up from system sleep state S3 [ 1440.101855] ACPI: EC: interrupt unblocked [ 1440.102061] pcieport 0000:00:1c.4: Intel SPT PCH root port ACS workaround enabled [ 1440.119646] pcieport 0000:00:1c.0: Intel SPT PCH root port ACS workaround enabled [ 1440.119648] pcieport 0000:00:1c.2: Intel SPT PCH root port ACS workaround enabled [ 1441.251396] pci 0000:01:00.0: Enabling HDA controller [ 1441.253644] ACPI: EC: event unblocked [ 1441.254466] sd 0:0:0:0: [sda] Starting disk [ 1441.523504] usb 1-9: reset full-speed USB device number 5 using xhci_hcd [ 1441.614073] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300) [ 1441.614106] ata2: SATA link down (SStatus 4 SControl 300) [ 1441.614135] ata3: SATA link down (SStatus 4 SControl 300) [ 1441.614324] ata1.00: supports DRM functions and may not be fully accessible [ 1441.616029] ata1.00: disabling queued TRIM support [ 1441.617271] ata1.00: supports DRM functions and may not be fully accessible [ 1441.617924] ata1.00: disabling queued TRIM support [ 1441.618856] ata1.00: configured for UDMA/133 [ 1441.628933] ahci 0000:00:17.0: port does not support device sleep [ 1441.807671] usb 1-1: reset high-speed USB device number 2 using xhci_hcd [ 1442.183823] usb 1-4: reset high-speed USB device number 3 using xhci_hcd [ 1442.273034] OOM killer enabled. [ 1442.273036] Restarting tasks ... done. [ 1442.293905] PM: suspend exit ``` |
Some laptops have this amazingly annoying tendency to either refuse to suspend unless the screen / lid is shut, or sometimes wake up from suspend when the lid is shut. Which one are you doing?
|
1 Attachment(s)
Thank you for your time!
It wakes up if the lid is shut and also when it is open. I have attached the /var/log/pm-suspend.log after Code:
PM_DEBUG="true" pm-suspend |
So it looks like the system goes to sleep for a few seconds, then wakes up. Here's some thoughts.
First off, would it be possible to try this same experiment (suspending the computer) with a different distribution, preferably not Debian or something Debian-based, possibly a live CD or the like? If it only appears in Debian, then it's worthy of a Debian bug report. If not, either there's a long-running kernel bug (or other bug), or it's a hardware fault. Second, what devices do you have attached to this laptop? I've heard a few reports of beacon signals from wireless routers waking laptops up from suspend if the laptop was connected to a wireless network at the time of suspend, or if the laptop has a specially configured wireless receiver attached. Bluetooth devices are also known problems. I used to have problems with the hyper-sensitivity of the lid switch on my old laptop (so old you could see and touch the switch), but if this happens no matter what position the switch is in, I don't think it's a lid switch problem. Third, so this fails even for hibernate mode? Hibernation (suspend state S4) is almost identical to shutdown (suspend state S5), but some systems can be woken up from one state but not the other due to external devices. Please upload the contents of the file /proc/acpi/wakeup -- it lists (most of) the devices authorized to wake the system up, and what sleep state they can wake the system up from. So a line like this (excerpt from my own /proc/acpi/wakeup file): Code:
PS2K S4 *enabled pnp:00:08 Code:
UAR1 S5 *disabled pnp:00:05 Code:
echo UAR1 > /proc/acpi/wakeup Finally, I'll note that some laptops that I've seen will immediately wake up from suspend if the battery starts to run low. Is the battery charged up? |
1 Attachment(s)
Hi,
Disabling XHC in /proc/acpi/wakeup has solved the issue, temporarily (after reboot notebook wakes up again from suspend). Code:
sudo -s Code:
Device S-state Status Sysfs node Code:
$ cat /etc/udev/rules.d/xhc.rules Thank you very much for your help! |
Sorry I didn't get back to you sooner. I'm glad you're on to something.
In your udev rule, try deleting the Code:
DRIVERS=="usb" |
No worries, thank you for your help!
Deleting Quote:
Quote:
|
All times are GMT -5. The time now is 05:34 PM. |