Re: [REGRESSION][BISECTED] Dell Precision 7780 wakes up on its own from suspend

Andy Shevchenko
2025-12-07T10:18:24Z

On Sun, Dec 07, 2025 at 07:04:59AM +0300, Askar Safin wrote:
> Andy, Mario and others.
>
> During these months I found zillions of suspend and hibernation related bugs.
>
> It seems hibernation is not well supported.
>
> For example, it seems hibernation is not supported on Chromebooks [1].
>
> And Fedora intentionally disables it by default. [2]
>
> Other operating systems do similar thing. Hibernation is hard-to-enable
> in Windows [3]. macOS on Apple Silicon hibernate in very limited scenarios [4].
>
> But I still use hibernation.
>
> So, I have an idea. Maybe we should remove as many as possible hibernation-related
> code from kernel to make sure that remaining code is easy to support?

Maybe not.

> I. e. maybe we should remove some even-more-obscure-than-hibernation features,
> such as hybrid sleep mode, to make normal hibernation easier to maintain?

Hibernation is not only for workstations. And I believe it works in Linux to
some extent. You need to discuss this in Linux PM mailing list.

> If you like this idea, then I will happily write patches for removing
> some hibernation-related features, such as hybrid sleep mode.
>
> Other ideas:
> - Remove uswsusp (i. e. kernel/power/user.c ) in favor of normal hibernation
> (or vice versa, i. e. remove normal hibernation and keep uswsusp only)
> - Remove hibernation to swap partition and keep hibernation to swapfile only
> (or vice versa)
> - Decouple hibernation from swap completely (i. e. hibernate not to swap
> partition, but to special designated partition or file)
>
> In short, just tell me what should be removed, and I will happily remove it.

I think nothing. It's better to try to actually fix the non-working scenarios
rather than remove the feature completely.

> [1] https://www.reddit.com/r/chromeos/comments/y5pol9/anyone_know_what_the_status_of_hiberman_hibernate/
> [2] https://pagure.io/fedora-workstation/blob/master/f/notes/hibernationstatus.md
> [3] https://www.groovypost.com/howto/enable-hibernate-mode-windows-10/
> [4] https://www.reddit.com/r/chromeos/comments/y5pol9/comment/ism352k/

P.S.
I'm sorry, but why are you so eager to remove something? While in many cases
removal of (potentially dead or unused) code is considered a good thing, it's
not always the case.

--
With Best Regards,
Andy Shevchenko