Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspend works on Ubuntu 21.04 #48

Open
cies opened this issue Aug 14, 2021 · 8 comments
Open

Suspend works on Ubuntu 21.04 #48

cies opened this issue Aug 14, 2021 · 8 comments

Comments

@cies
Copy link

cies commented Aug 14, 2021

I followed the instructions in this repo for getting suspend to work on Ubuntu 21.04.

It did not work, and as suggested in issue #26 this may well be due to a regression in the Linux 5.11 kernel.

So I upgraded to the 5.13.9 kernel with this guide. While is worked, it showed a list of Possible missing firmware /lib/firmware/amdgpu/* errors. I fixed those errors by following this guide.

I now have suspend working on my Yoga Slim 7. Woop, woop.

@thomanq
Copy link

thomanq commented Aug 17, 2021

I confirm that this is working. :)

Side note:
I installed the unsigned kernel from here after disabling secure boot with sudo mokutil --disable-validation.
I tried to leave Secure Boot on and to install the mainline 5.13 kernel following:

https://ubuntu.com/blog/how-to-sign-things-for-secure-boot
https://gloveboxes.github.io/Ubuntu-for-Azure-Developers/docs/signing-kernel-for-secure-boot.html

but I couldn't get it to accept my signed kernel and kept hitting:
error: /vmlinuz-5.13.11-051311-generic.signed has invalid signature

If someone knows how to sign unsigned kernels, then I'd be glad to read your solution :)

@jrandiny
Copy link
Owner

Hm I will try kernel 5.13 as soon as possible because a lot of people seems to have found success using it

@jrandiny
Copy link
Owner

jrandiny commented Aug 19, 2021

@thomanq regarding signing kernel I think there might be problem with the machine key not enrolled or some failure in your signing process. You can try listing the installed key by using mokutil --list-enrolled. In addition to that, I think the gist to I link on the readme is one of the best way to sign unsigned kernel https://gist.github.com/maxried/796d1f3101b3a03ca153fa09d3af8a11

Lastly, if this don't solve your problem, try opening new issues specific to your problem

Thanks :)

@arush-sal
Copy link

Tried your listed steps with v5.13.11 from Ubuntu Mainline Kernel packages(had to upgrade to 21.04 from 20.04`) but can confirm that suspend works flawlessly now.

@werzum
Copy link

werzum commented Nov 19, 2021

I tried so many things and finally found this thread- thanks! The kernel update works as well for Lenovo IdeaPad 1405ARE, and now suspend is finally working. Since I was running 20.04, I also had to upgrade to 21.04, but from then on it was smooth sailing.

@kanflo
Copy link

kanflo commented Jan 9, 2022

I tried 5.13.19, 5.14.21 and 5.15.13 and they all seem to work great on 21.04 when it comes to suspend. If suspending by closing the lid, I need to press a key when opening the lid but that is a minor annoyance.

@kanflo
Copy link

kanflo commented Jan 20, 2022

Have anyone gotten sleep to work on eg. 5.13.19 without the DSDT patch?

I spent quite some time failing to go get my second 14ARE05 to sleep, and wake from sleep. I tried 5.13.19 on fresh installs of

  • 21.04
  • 21.10
  • 20.04.3 upgraded to 21.04

and none of them would wake from sleep...

When I succeeded in getting sleep to work on my first 14ARE05, I had applied the DSDT patch (something I forgot I did) and that seems to be key.

For reference, here is relevant output when using the acpi_s3_override in grub

johkan@flotop:~$ grep "s3\|sleep" /etc/default/grub
GRUB_EARLY_INITRD_LINUX_CUSTOM="acpi_s3_override"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mem_sleep_default=deep"
johkan@flotop:~$ dmesg | grep ACPI:\ \(
[    0.280414] ACPI: (supports S0 S3 S4 S5)
johkan@flotop:~$ uname -a
Linux flotop 5.13.19-051319-generic #202109181232 SMP Sat Sep 18 12:56:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
johkan@flotop:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.04
Release:	21.04
Codename:	hirsute
johkan@flotop:~$ cat /sys/power/mem_sleep 
s2idle [deep]

and here is the same output without the acpi_s3_override in grub:

johkan@flotop:~$ grep "s3\|sleep" /etc/default/grub
johkan@flotop:~$ dmesg | grep ACPI:\ \(
[    0.280414] ACPI: (supports S0 S4 S5)
johkan@flotop:~$ uname -a
Linux flotop 5.13.19-051319-generic #202109181232 SMP Sat Sep 18 12:56:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
johkan@flotop:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.04
Release:	21.04
Codename:	hirsute
johkan@flotop:~$ cat /sys/power/mem_sleep 
[s2idle]

@martijnboers
Copy link

Updated to 5.13.9 without any adjustments to my yoga and can confirm sleep is working consistently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants