-
Notifications
You must be signed in to change notification settings - Fork 31
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
S3 not being advertised after patch #10
Comments
Ah... I think this is a secure boot issue. From dmesg:
|
It seems that there is no way around having secure boot and a table override at the same time. I've disabled validation using |
@jrandiny This is my first time going down the secure boot rabbit hole, so maybe I'm doing it wrong! I tried using |
Hmmm, I think I know why, kernel lockdown is a different feature from secure boot. Kernel lockdown is configured on kernel compile time and it seems that the behavior for stock kernel is to enable lockdown when it detect secure boot is enabled (I verify this by running the stock kernel on my machine). I'm currently using the mainline kernel signed with MOK which seems to disable this behaviour. Edit: I haven't been able to get the list of Ubuntu kernel specific patch to confirm this behaviour. However from https://lore.kernel.org/lkml/CACdnJuti5Riqoi1sesqPALYHq9LT87o4MFj-0Y5BZqqzJ5579g@mail.gmail.com/ it seems that a lot of distro is enabling this by default. |
Ah yes! I thought the behavior of locking down the kernel on secure boot was default. I'd rather stick to the stock kernel so I guess my best bet is to keep secure boot off until there is a proper fix. |
I gave up on the laptop trying to support S3 suspend. The default S0 suspend takes too much power and there is the issue with the screen recovering after S0 suspend. In the end I went for S4 Hibernate which suits my requirements better anyway and uses no power. However to get S4 Hibernate to work with full disk encryption I had to turn off Secure Boot. https://www.stargw.net/wiki/Lenovo%20Yoga%20Slim%207/index.html#Hibernate |
That is what I did too. |
Ok, I after using the Lenovo with hibernate after a week, a few times it fails to resume from hibernate and this seems to be because of a similar issue encountered in resuming from S0 suspend: Seems to crash setting the backlight:
Full logs at: https://www.stargw.net/wiki/Lenovo%20Yoga%20Slim%207/hibernate.html A quick check on the Internet and it seems quite a lot of people have issues with Ryzen integrated graphics and suspend/hibernate resuming, and its not limited to the Lenovo Yoga. |
After having hibernate working for nearly a year I was forced to upgrade from Ubuntu Budgie 21.04 (unsupported) to 21.10. Now hibernate is fully broken. Even "systemctl hibernate" does not work. The system thinks its hibernating and all the logs indicate its hibernating, but the screen stays on. Apart from that, the system is unresponsive. I can only recover by long press the power key, in which case it does a full reboot. No idea what is broken now. |
I gave up on patching and decided to void warranty and alter the bios. |
Turns out that its shutdown that is broken. Even powering off my laptop it hangs. Turning off the splash screen I get: shutdown[1]: Could not detach DM /dev/dm-0: Device or resource busy And the laptop never shuts down. So maybe that is why hibernate and suspend now fail. If I boot the old kernel 5.11.0-49-generic instead of 5.13.0-27-generic it all works again. Note I still see the same error messages, but the machine powers off or hibernates as okay. Ah well I have spent far too much time on this will just boot Ubuntu 21.10 off kernel 5.11.0-49-generic for now |
There is a launchpad bug report about this hang as well: https://bugs.launchpad.net/ubuntu/+source/linux-hwe-5.13/+bug/1958289 |
@nightflame2 i was under 5.13.22 and had updated to 5.13.23 and then shutdown was broken. Reverted and it works (but not suspend). |
I can report that kernel 5.13.0-28 fixes the shutdown issue for me. Ubuntu Budgie. |
@nightflame2 confirmed for me too, thanks |
I'm running Ubuntu 22.10 with an official kernel 5.19.0-35-generic. Originally I forgot to disable "Secure boot" in BIOS and S3 still was not advertised. Fortunately there is an info about that issue here. Now it's working:
|
Hello!
I tried the instructions in your repo and still wasn't able to get S3 to be advertised. I looked at #6 and #7 but my problem seems to be different. I have the following in my /etc/default/grub:
Poking around I see:
Here is the compiled grub.cfg and the actual override file:
grub_override.tar.gz
Any thoughts as to what is happening? Thanks!
The text was updated successfully, but these errors were encountered: