>With : >$ sudo sh -c 'echo mem > /sys/power/state' >$ sudo sh -c 'echo deep > /sys/power/mem_sleep' >the problem disappears.
This is changing how the system goes to sleep in a significant way. With this, the BIOS turns off all devices except RAM when going to sleep. With the way that it works by default the kernel is controlling all devices and putting them into their deepest sleep state. This system "mem" will work on this system, but that can't be said for all systems. You can change the default policy to this if you would like too using a modification to your kernel command line. It is better in my opinion to figure out the root cause of your problem though. It will lead to better runtime power consumption if we figure it out. A few questions: @Grentz: 1) Do you have anything plugged into notebook during sleep cycle with s2idle? Mouse, keyboard, USB key - anything like that. 2) Can you try to run powertop with --auto-tune and see if it improves things? 3) After running autotune wait a few moments and then can you please cat /sys/kernel/debug/pmc_core/pch_ip_power_gating_status and share results? @Kai Heng: 4) Policy wise isn't TLP or something similar going to be needed to enact RTD3 for the rest of the devices that kernel policy isn't properly configured? I know the preload image has stuff like that. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1810619 Title: Sleep mode doesn't work Status in linux package in Ubuntu: Confirmed Bug description: On my Dell XPS 13 laptop (9370), the sleep mode dosn't work anymore with linux-image-4.18.0-13. The screen goes off correctly but any touch resume the laptop. This is the log : Jan 5 11:15:25 skeleton systemd[1]: Reached target Sleep. Jan 5 11:15:25 skeleton systemd[1]: Starting Suspend... Jan 5 11:15:25 skeleton systemd[1]: Starting Network Manager Script Dispatcher Service... Jan 5 11:15:25 skeleton systemd-sleep[6229]: Suspending system... Jan 5 11:15:25 skeleton kernel: [ 6176.006021] PM: suspend entry (s2idle) an 5 11:15:25 skeleton dbus-daemon[1051]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher' Jan 5 11:15:25 skeleton systemd[1]: Started Network Manager Script Dispatcher Service. Jan 5 11:15:25 skeleton nm-dispatcher: req:1 'down' [wlp2s0]: new request (1 scripts) Jan 5 11:15:25 skeleton nm-dispatcher: req:1 'down' [wlp2s0]: start running ordered scripts... [...] Resume : Jan 5 12:00:02 skeleton kernel: [ 6176.006023] PM: Syncing filesystems ... done. Jan 5 12:00:02 skeleton kernel: [ 6176.016581] Freezing user space processes ... (elapsed 0.088 seconds) done. Jan 5 12:00:02 skeleton kernel: [ 6176.104653] OOM killer disabled. Jan 5 12:00:02 skeleton kernel: [ 6176.104654] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. Jan 5 12:00:02 skeleton kernel: [ 6176.106070] Suspending console(s) (use no_console_suspend to debug) Jan 5 12:00:02 skeleton kernel: [ 8852.990035] OOM killer enabled. Jan 5 12:00:02 skeleton kernel: [ 8852.990037] Restarting tasks ... done. Jan 5 12:00:02 skeleton kernel: [ 8853.015639] r8152 2-1.2:1.0 enxe4b97acfa7e9: carrier on Jan 5 12:00:02 skeleton kernel: [ 8853.084055] PM: suspend exit With linux-image-4.18.0-10, it works correcly (but no with 4.18.0-11 and 4.18.0-12). Thanks, To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1810619/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp