Welcome to our peer-to-peer forums, where owners help owners. Need help now? Visit eSupport here.

English Community

Linux Operating SystemsUbuntu
All Forum Topics
Options

2 Posts

06-09-2021

Austria

5 Signins

20 Page Views

  • Posts: 2
  • Registered: ‎06-09-2021
  • Location: Austria
  • Views: 20
  • Message 1 of 17

Wakeup after suspend reboots IdeaPad 5 14ALC05 under Ubuntu 21.04

2021-06-09, 21:58 PM

Hello,

 

I have just purchased a new IdeaPad 5 14ALC05 w/o OS and installed Ubuntu 21.04. So far so good.

 

The problem is that suspend appears not to work. No matter wether the power cord is connected or not, when I close the lid and wait for ca. 20 s or when I use the desktop menu / Power Off / Suspend function, the screen turns black and the power LED starts slowly pulsing, so I take it the system is suspended.

 

When I wake up the notebook by hitting the space bar or opening the lid, I end up in the GRUB menu -- apparently, the systen was rebooted.

 

BIOS: G5CN16WW V1.04 (latest version)

CPU: AMD Ryzen 5 5500U with Radeon Graphics

RAM: 8GB

SSD: 256 GB

/sys/power/disk: [disabled]

/sys/power/mem_sleep: [s2idle]

/sys/power/state: freeze mem

/sys/power/suspend_stats/*: all counters are 0

dmesg |grep ACPI |grep supports: S0 S4 S5

 

I tried to follow these instructions for (what I think is) a similar system, IdeaPad 5 14ARE05, but I do not get the message that ACPI supports S3.

 

Can someone please help and point me in the right direction?

 

Thanks in advance!

Reply
Options

979 Posts

01-04-2018

United States of America

527 Signins

6706 Page Views

  • Posts: 979
  • Registered: ‎01-04-2018
  • Location: United States of America
  • Views: 6706
  • Message 2 of 17

Re:Wakeup after suspend reboots IdeaPad 5 14ALC05 under Ubuntu 21.04

2021-06-11, 21:39 PM

Its an issue I've faced with many newer laptops, which is that sleep mode tends to fail on wake up and simply reboots the computer. The more settings and such you change, the more likely it is for it to fail. Do you know if the reboot issue was present before installing Ubuntu?

 

These suggestions might help:

Disable Hybrid Sleep:

Right click the battery icon in the taskbar -> Power Options -> Change Plan Settings -> Sleep -> Allow Hybrid Sleep -> Set to off for battery and plugged in.

 

 

Disable Fast Boot:

 

Right click the battery icon in the taskbar -> Power Options -> Choose what the power buttons do (left side) -> Change Settings that are currently unavailable (top - requires admin privileges) -> Uncheck "Turn on fast startup".

 

 

Another possibility is certain Cortana settings (if you want to disable Cortana all together, I recommend using O&O ShutUp10 -Free antispy tool for Windows 10 (oo-software.com).

 

 

Let me know. @LelouchV  will let me know you've replied.

Reply
Options

2 Posts

06-09-2021

Austria

5 Signins

20 Page Views

  • Posts: 2
  • Registered: ‎06-09-2021
  • Location: Austria
  • Views: 20
  • Message 3 of 17

Re:Wakeup after suspend reboots IdeaPad 5 14ALC05 under Ubuntu 21.04

2021-06-11, 22:02 PM

I bought the notebook w/o OS, and Ubuntu was the first OS that I installed on the machine -- so the answer is no, there was no suspend issue before installing Ubuntu ;)

 

The suggestions refer to Windows Power settings. I am afraid these are not much use for me in this case.

 

But thanks anyway for looking into it!

 

Meanwhile, I also tried Ubuntu 20.04 LTS but the result is the same.

 

Are there users in the forum who have similar problems?

Are there users in the forum who have not problems at all with a notebook like that?

 

Thanks!

Reply
Options

979 Posts

01-04-2018

United States of America

527 Signins

6706 Page Views

  • Posts: 979
  • Registered: ‎01-04-2018
  • Location: United States of America
  • Views: 6706
  • Message 4 of 17

Re:Wakeup after suspend reboots IdeaPad 5 14ALC05 under Ubuntu 21.04

2021-06-11, 22:36 PM

My bad, I was under the impression you had dual OS. Computer manufacturers (especially for laptops) tend to tweak Windows to better accept the specific hardware configurations on the machine. When installing an as-is OS, you can face issues like this as I'm sure you know.

 

There will likely not be many here that could help with an Ubuntu-specific issue like this. Stackoverflow is likely a better choice:

 

ubuntu - waking up from pm-suspend results in full restart - Stack Overflow

 

 

If you run a VM of Ubuntu on your system, you can see if it suffers from the same issue. If not, the issue is likely a BIOS incompatibility as originally suspected.

 

 

EDIT: I mean I thought that the issue was on Windows and only appeared after installing Ubuntu.

Reply
Options

1272 Posts

05-14-2020

United States of America

532 Signins

6580 Page Views

  • Posts: 1272
  • Registered: ‎05-14-2020
  • Location: United States of America
  • Views: 6580
  • Message 5 of 17

Re:Wakeup after suspend reboots IdeaPad 5 14ALC05 under Ubuntu 21.04

2021-06-12, 22:07 PM

Hello,

 

I am working through exact issue except under fedora.   When I invoke "suspend" the screen goes dark, but led on power button does not start blinking slowly.  The only way to restore is to press powerbutton for long time, invoking power fail disconnect and restart.

 

I saw slight improvement with installing swap partition, for me it was sized similar to 1X ram.  If you have less than 16 GB ram, 2X ram might be better, but it must be a partition, not a swap file.   It is unencrypted, my security team will require it to be encrypted.

 

Most improvement is from establishing configuration files enabling suspend.  Check man pages for section 5, so "man 5 sleep.conf"  and "man 5 dracut.conf"

For the configuration files, there are half a dozen directories configuration files can be placed, the system plots through all files existing, executing them in alphabetical sort order of the file name, not user permissions(??) and the final sum of actions is what is implemented.  I am confused!  I made shure there is one and only one configuration file in the various directories enumerated in the man pages... :(

 

So far I have a lock screen action when I invoke suspend=yes and hibernate=no.  There are additional lines for suspendMode and suspendState I have not experimented with yet.  Full sleep mode likely involves adding some kind of restore function within dracut.conf

 

Actually don't edit the master .conf files, make subdirectory named sleep.conf.d  and place modified files in there.  This is explained better in the man pages.

 

Of course GRUB kernel boot parameters could be used instead of the conf files...

 

I still have a work in progress, next week I'll have more time for this issue.

 

(This is on AMD Ryzen Pro 7 machine.   My  Intel machine seems to work out of the box with identical sleep.conf file.)

 

Sincerely,

Usedtoberich

 

PS>  Usually any and all settings for Windows OS do NOT persist into a different OS, so how Windows is setup has no application to Linux.

Reply
Options

775 Posts

07-22-2019

Canada

504 Signins

5996 Page Views

  • Posts: 775
  • Registered: ‎07-22-2019
  • Location: Canada
  • Views: 5996
  • Message 6 of 17

Re:Wakeup after suspend reboots IdeaPad 5 14ALC05 under Ubuntu 21.04

2021-06-14, 2:03 AM

I'm just guessing as I don't have access to one of these platforms (they're not part of the linux certification program) - the AMD platforms don't support S0ix/modern standby sleep yet in Linux. AMD are actively working on this and there are patches upstream but it's not ready yet.

 

My guess is that the BIOS on these platforms is only advertising S0ix, because that's what Windows uses.

 

This page has a solution: https://www.reddit.com/r/linuxhardware/comments/i28nm5/ideapad_14are05_s3_sleep_fix/

It's not trivial - but I think the same fix may work here - worth trying anyway. It will allow you to use S3 sleep instead and that should work (it does on our linux certified platforms).

 

If somebody tries it and is successful let me know.

 

Mark

Reply
Options

4 Posts

06-29-2021

Czech Republic

5 Signins

35 Page Views

  • Posts: 4
  • Registered: ‎06-29-2021
  • Location: Czech Republic
  • Views: 35
  • Message 7 of 17

Re:Wakeup after suspend reboots IdeaPad 5 14ALC05 under Ubuntu 21.04

2021-06-29, 14:40 PM

Greetings,

 

Thanks for the article, I followed the steps and managed to enable S3 sleep. However, the system fails to wake up.

 

I am investigating this issue while running the beta version of elementaryOS 6. I managed to update the kernel to version 5.13 - that in itself helped, as the notebook was able to go to sleep correctly (blinking power LED).

 

Trying to wake up the notebook resulted in a black screen, but working keyboard backlight - so much so that the backlight can be changed, that leads me to assume that the notebook is not completely locked-up.

 

I proceeded by following the steps to enable S3 sleep, but I observed the same behavior when trying to wake the notebook from sleep. 

 

From what I see in the logs, it seems like the integrated GPU fails to resume from sleep. All I can do is to hold the power button for 10 seconds until the notebook shuts down.

 

-- Reboot --
Jun 29 16:09:22 matabook kernel: atkbd serio0: Use 'setkeycodes 67 ' to make it known.
Jun 29 16:09:22 matabook kernel: atkbd serio0: Unknown key released (translated set 2, code 0x67 on isa0060/serio0).
Jun 29 16:09:22 matabook kernel: atkbd serio0: Use 'setkeycodes 67 ' to make it known.
Jun 29 16:09:22 matabook kernel: atkbd serio0: Unknown key pressed (translated set 2, code 0x67 on isa0060/serio0).
Jun 29 16:09:04 matabook systemd-logind[739]: Power key pressed.
Jun 29 16:06:48 matabook wpa_supplicant[744]: wlo1: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=-65 noise=9999 txrate=26000
Jun 29 16:05:49 matabook systemd-timesyncd[689]: Initial synchronization to time server 91.189.89.199:123 (ntp.ubuntu.com).
Jun 29 16:05:12 matabook systemd-logind[739]: Power key pressed.
Jun 29 16:05:06 matabook kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, but soft recovered
Jun 29 16:05:00 matabook systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Jun 29 16:04:55 matabook kernel: amdgpu 0000:04:00.0: amdgpu: GPU reset end with ret = -110
Jun 29 16:04:55 matabook kernel: amdgpu 0000:04:00.0: amdgpu: GPU reset(2) failed
Jun 29 16:04:55 matabook kernel: [drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block failed -110
Jun 29 16:04:55 matabook kernel: amdgpu 0000:04:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring sdma0 test failed (-110)
Jun 29 16:04:55 matabook kernel: [drm] kiq ring mec 2 pipe 1 q 0
Jun 29 16:04:55 matabook kernel: amdgpu 0000:04:00.0: amdgpu: SMU is resumed successfully!
Jun 29 16:04:55 matabook kernel: amdgpu 0000:04:00.0: amdgpu: dpm has been disabled
Jun 29 16:04:55 matabook kernel: amdgpu 0000:04:00.0: amdgpu: SMU is resuming...
Jun 29 16:04:55 matabook kernel: [drm] reserve 0x400000 from 0xf47f800000 for PSP TMR
Jun 29 16:04:55 matabook kernel: [drm] PSP is resuming...
Jun 29 16:04:55 matabook kernel: [drm] PTB located at 0x000000F400900000
Jun 29 16:04:55 matabook kernel: [drm] PCIE GART of 1024M enabled.
Jun 29 16:04:55 matabook kernel: amdgpu 0000:04:00.0: amdgpu: GPU reset succeeded, trying to resume
Jun 29 16:04:55 matabook kernel: amdgpu 0000:04:00.0: amdgpu: MODE2 reset
Jun 29 16:04:55 matabook kernel: [drm] free PSP TMR buffer
Jun 29 16:04:55 matabook kernel: amdgpu 0000:04:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring kiq_2.1.0 test failed (-110)
Jun 29 16:04:55 matabook kernel: amdgpu 0000:04:00.0: amdgpu: GPU reset begin!
Jun 29 16:04:55 matabook kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process Xorg pid 901 thread Xorg:cs0 pid 910
Jun 29 16:04:55 matabook kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, signaled seq=42775, emitted seq=42777
Jun 29 16:04:49 matabook NetworkManager[715]:  [1624975489.5094] manager: NetworkManager state is now CONNECTED_GLOBAL

Reply
Options

4 Posts

06-29-2021

Czech Republic

5 Signins

35 Page Views

  • Posts: 4
  • Registered: ‎06-29-2021
  • Location: Czech Republic
  • Views: 35
  • Message 8 of 17

Re:Wakeup after suspend reboots IdeaPad 5 14ALC05 under Ubuntu 21.04

2021-06-30, 13:06 PM

Greetings,

I have done some more testing today. I can confirm that the notebook does wake from sleep, as I was able to SSH in successfuly. The screen stays dark though. I am attaching the syslog entries that might be relevant.

Kind regards,

Gyuszi

Reply
Options

1272 Posts

05-14-2020

United States of America

532 Signins

6580 Page Views

  • Posts: 1272
  • Registered: ‎05-14-2020
  • Location: United States of America
  • Views: 6580
  • Message 9 of 17

Re:Wakeup after suspend reboots IdeaPad 5 14ALC05 under Ubuntu 21.04

2021-07-03, 18:16 PM

Hello,

 

I attempted the recipe for adding S3 support back into acpi tables.

 

Unfortunately the step of patching the decompiled dsdt.dsl file did not succeed.   Message from patch command is Hunk#1 FAILED at 18  Hunk#2 FAILED at 790  Hunk#3 FAILED at 10464.

 

I don't know what I am doing at all, just blindly entering the keystrokes per the recipe on the reddit link.

 

System information:   L15 AMD processor  TP0011F4  Running Linux distribution fedora 34. Kernel 5.12.13 -300.  The latest update from normal distribution channel.  Are patch details specific to distribution?  If so, no wonder it failed  :)

 

Usedtoberich

Reply
Options

4 Posts

06-29-2021

Czech Republic

5 Signins

35 Page Views

  • Posts: 4
  • Registered: ‎06-29-2021
  • Location: Czech Republic
  • Views: 35
  • Message 10 of 17

Re:Wakeup after suspend reboots IdeaPad 5 14ALC05 under Ubuntu 21.04

2021-07-04, 9:20 AM

Hi,

 

In this case I would suggest "manual patching", ie. editing the file with a text editor. If you look at the .patch file, it's just a series of edit operations, looking for a certain line in dsdt.dsl and replacing it with a new one. You can reproduce this manually, note the changes in the patch and open your dsdt.dsl file, delete/modify the the configuration as necessary.

 

In  your case the patching probably failed because the lines the patch is looking for simply aren't there, as your notebook has different specs.

 

Good luck!

 

Kind regards,

Gyuszi

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete

X

No, I don’t want to share ideas Yes, I agree to these terms

Most Liked Authors

(Last 7 days)

View All