Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Lenovo Yoga instantly wakes up after suspend to ram

Need help with peripherals or devices?
Post Reply
Message
Author
t4thfavor
Posts: 9
Joined: 2011-12-06 02:39

Lenovo Yoga instantly wakes up after suspend to ram

#1 Post by t4thfavor »

I have this problem:
https://forums.lenovo.com/t5/Other-Linu ... =1#5437960

TL;DR: The Yoga, and several other Lenovo Thinkpads don't properly implement S3 in bios, because "reasons nobody knows". I have it actually working, but don't know enough about the power subsystem to know why it works.

The process is in my post on the Lenovo forum, but it's basically this
using a root terminal, change mem_sleep to s2idle, put it to sleep, wake it up, then change mem_sleep to deep, then put it to sleep again.

If you don't follow this procedure, the laptop goes to sleep for 1 second, and then wakes right back up. s2Idle and shallow sleep modes do not wake back up after 1 second, only S3.

My system is currently on 11.0 (installed today) but I've tried this on various versions of Mint and Debian.

Code: Select all

root@debian:/home/chance# echo s2idle > /sys/power/mem_sleep
root@debian:/home/chance# echo mem > /sys/power/state 
(wake up  from s2Idle or shallow here)
root@debian:/home/chance# echo deep > /sys/power/mem_sleep
root@debian:/home/chance# echo mem > /sys/power/state 

Code: Select all

System:
  Kernel: 5.10.0-8-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 
  Desktop: Cinnamon 4.8.6 Distro: Debian GNU/Linux 11 (bullseye) 
Machine:
  Type: Laptop System: LENOVO product: 20CD00B1US v: ThinkPad S1 Yoga 
  serial: <filter> 
  Mobo: LENOVO model: 20CD00B1US v: SDK0E50510 Pro serial: <filter> 
  UEFI: LENOVO v: B0ET47WW (1.34 ) date: 03/24/2020 
Battery:
  ID-1: BAT0 charge: 44.2 Wh condition: 44.2/47.1 Wh (94%) 
  model: SONY 45N1705 status: Full 
CPU:
  Info: Dual Core model: Intel Core i7-4600U bits: 64 type: MT MCP 
  arch: Haswell rev: 1 L2 cache: 4 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 21549 
  Speed: 798 MHz min/max: 800/3300 MHz Core speeds (MHz): 1: 798 2: 798 
  3: 798 4: 798 
Graphics:
  Device-1: Intel Haswell-ULT Integrated Graphics vendor: Lenovo 
  driver: i915 v: kernel bus ID: 00:02.0 
  Device-2: Chicony Integrated Camera type: USB driver: uvcvideo 
  bus ID: 2-6:4 
  Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting 
  unloaded: fbdev,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 4400 (HSW GT2) 
  v: 4.5 Mesa 20.3.5 direct render: Yes 
Audio:
  Device-1: Intel Haswell-ULT HD Audio vendor: Lenovo driver: snd_hda_intel 
  v: kernel bus ID: 00:03.0 
  Device-2: Intel 8 Series HD Audio vendor: Lenovo driver: snd_hda_intel 
  v: kernel bus ID: 00:1b.0 
  Sound Server: ALSA v: k5.10.0-8-amd64 
Network:
  Device-1: Intel Wireless 7260 driver: iwlwifi v: kernel port: efa0 
  bus ID: 04:00.0 
  IF: wlp4s0 state: up mac: <filter> 
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb 
  v: 0.8 bus ID: 2-4:2 
  Report: ID: hci0 state: up running bt-v: 2.1 lmp-v: 4.0 address: <filter> 
Drives:
  Local Storage: total: 238.47 GiB used: 5.62 GiB (2.4%) 
  ID-1: /dev/sda vendor: Samsung model: MZ7TE256HMHP-000L7 size: 238.47 GiB 
Partition:
  ID-1: / size: 232.24 GiB used: 5.54 GiB (2.4%) fs: ext4 dev: /dev/sda2 
  ID-2: /boot/efi size: 511 MiB used: 75.7 MiB (14.8%) fs: vfat 
  dev: /dev/sda1 
Swap:
  ID-1: swap-1 type: partition size: 977 MiB used: 0 KiB (0.0%) 
  dev: /dev/sda3 
Sensors:
  System Temperatures: cpu: 47.0 C mobo: N/A 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 188 Uptime: 38m Memory: 7.66 GiB used: 1.99 GiB (25.9%) 
  Init: systemd runlevel: 5 Compilers: gcc: 10.2.1 Packages: 1793 
  Shell: Bash v: 5.1.4 inxi: 3.3.01 
I posted this on the Mint forum earlier, but didn't want to bother them if it's something coming from upstream, and I have more information now (as shared above)

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: Lenovo Yoga instantly wakes up after suspend to ram

#2 Post by sunrat »

As this appears to be useful information rather than a question, please mark the title [SOLVED] so it may help other users.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

t4thfavor
Posts: 9
Joined: 2011-12-06 02:39

Re: Lenovo Yoga instantly wakes up after suspend to ram

#3 Post by t4thfavor »

My question is more along the lines of "how do I set it up so that I don't have to suspend to s2idle wake it up, and then suspend to s3"

This is a sweet laptop that would be just perfect if it could sleep/resume properly so that it will last the better part of a day instead of just a couple hours max using s2idle/shallow.

I'm sorry if that did not come through in the initial post.

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: Lenovo Yoga instantly wakes up after suspend to ram

#4 Post by Aki »

Hello,

Suspend issues are often very tricky to understand because are a mix of hardware and software reasons. Moreover, they are reproducible only with the specific affected hardware.

Anyway, you can try to analyse it. You can configure the system in the proper way, collect logs and run specific diagnostic scripts: here [1] some advices.

Furthermore, you can also try to install the last upstream stable version of the kernel [2] to check if it solves.

[1] https://01.org/blogs/rzhang/2015/best-p ... ate-issues
[2] https://www.kernel.org/
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply