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

Hibernation, shutdown and power mode #3

Open
Cyberrain opened this issue Jun 18, 2022 · 15 comments
Open

Hibernation, shutdown and power mode #3

Cyberrain opened this issue Jun 18, 2022 · 15 comments

Comments

@Cyberrain
Copy link

Hi I tried enabling hibernation in majaro cinnamon, it doesn't work well as the laptop has a shutdown issue. When you switch to hibernation mode, everything is saved to a swap file, the laptop turns off and then turns on itself, after that the download is normal, open applications remain open. There is exactly the same problem if you just try to turn off the laptop, it turns off and starts to boot again. Bios updated to the latest version. Do you have a shutdown problem? I also checked the power profiles, they work as they should, I tested the gigbench in different modes, the changes are noticeable, as well as the effect on battery life.

@regulator-g
Copy link

What kernel version do you have?
If you disable hibernation does suspend work at least?
I think there is a hack for this model which unlocks extra BIOS options and you can switch the sleep state from s0ix to s3

@Cyberrain
Copy link
Author

5.15,17,18,19
hibernation does not interfere with sleep mode in any way, sleep mode works but is not stable, sometimes it wakes up for no apparent reason, it was not possible to switch sleep to s3 mode, the hidden menu in the BIOS could not be opened

@regulator-g
Copy link

regulator-g commented Jun 20, 2022

I think that's the idea behind s0ix sleep state that your device can wake up and check for updates etc..

Is this the same model you have? there's a hit about passing s3 sleep as a kernel option and a link to the BIOS unlock to enable full s3 mode if needed: https://wiki.archlinux.org/title/Lenovo_Yoga_Slim_7_(AMD_Ryzen_7)

@AlexMV12
Copy link

AlexMV12 commented Jul 7, 2022

Hello guys,

I can confirm these problems: in particular I noticed that sometimes the laptop automatically reboots after being shutdown, and sometimes (not always!) it automatically restarts after a suspend.
These and the speakers problems are the only ones I have with this (amazing) laptop.

I know that sometimes means nothing, so, I will try to gather more information.

@milkovsky
Copy link
Owner

@AlexMV12 thank you for reporting, could you please name your distribution, kernel?

@AlexMV12
Copy link

AlexMV12 commented Jul 8, 2022

Sure: I'm on Arch, kernel vanilla (linux), 5.18.9-arch1-1.
I am particularly surprised by the fact that sometimes suspend works well. I have not changed the S3 state in the BIOS (I could not access the hidden BIOS). So, it means that by default suspend CAN work.
The same holds for the shutdown.

@milkovsky
Copy link
Owner

milkovsky commented Jul 8, 2022

@AlexMV12 thanks, good to hear!
Suspend works stable for me in ubuntu 22.04 LTS (5.15.0-25-generic). In supendend mode the laptop lost ~10% battery in 1,5 days.

@AlexMV12
Copy link

AlexMV12 commented Jul 8, 2022

@AlexMV12 thanks, good to hear! Suspend works stable for me in ubuntu 22.04 LTS (5.15.0-25-generic). In supendend mode the laptop lost ~10% battery in 1,5 days.

Interesting: may I ask the kernel parameters you use? Maybe by default Ubuntu uses some tricks.
Also, I may test the 5.15 kernel to see if it works better.

@milkovsky
Copy link
Owner

@AlexMV12 here is my alsa-info output: http://alsa-project.org/db/?f=045c0b1e6b2f41b44c1a3bc145617ce60a6f756a

@chankcalfred
Copy link

@AlexMV12 Hello, may I know the update from you. I have installed pop os 22.04 and linux mint 21 on this laptop. The identical problem exists in both cases. I switched back to Windows 11 already, since I need a laptop for my course work. With Linux, the PC cannot poweroff and may burn the monitor. Linux is awesome, I've tried several distributions with virtualbox. But I just can't fix this problem. Thanks in advance.

@AlexMV12
Copy link

@AlexMV12 Hello, may I know the update from you. I have installed pop os 22.04 and linux mint 21 on this laptop. The identical problem exists in both cases. I switched back to Windows 11 already, since I need a laptop for my course work. With Linux, the PC cannot poweroff and may burn the monitor. Linux is awesome, I've tried several distributions with virtualbox. But I just can't fix this problem. Thanks in advance.

Hello!
Well, I have to say that the poweroff problem has gone. I am on Arch Linux with latest kernel 5.19.5.arch1-1.
For the suspend, I have set the choice to suspend when I close the lid: in this way, it remains in standby.
Otherwise, if I suspend manually (e.g. from the power menu) and then I close the lid, the laptop turns on again.

@milkovsky
Copy link
Owner

@thlnoftus I was surprised, that the power off does not work 😄 It restarts the laptop instead.
I have switched to POP OS 22.04 a few month ago and never used the power off function. I have only suspended the laptop (by closing the lid) and restarted when needed.

FYI and I do not have any problems with suspend. The laptop looses only a few percent per day when suspended. I just close the lid and it goes to suspend.

I can not tell about hibernation, as I am not using it for now.

@chankcalfred
Copy link

@milkovsky Hello, I switched from linux mint to ubuntu, the suspend is okay now if I close the lid, otherwise it goes to standby. I think full-feature ubuntu does additional things with acpi. while minimal installation of ubuntu and linux mint don't. I dual boot ubuntu and windows. In case I need a poweroff, I go into windows. It looks a bit stupid.

Hope this problem can be solved later.

Thank you for your great project.

@AlexMV12
Copy link

AlexMV12 commented Nov 3, 2022

\rant
Man, the shutdown problem it's starting to bothering me. If I don't remember to check if the laptop is really shutdown, it restarts, stops at the luks passphrase request screen, with the CPU and the fan at 100%. It's not the first time that I find it dangerously hot in my backpack, with the battery completely drained.

@laris
Copy link

laris commented Jun 2, 2024

I image the OS to macOS 14.5 and now only sleep/wake issue.
like previous discussion "automatically restarts after a suspend."
I will try to test ubuntu if possible to get correct ACPI setting.

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

6 participants