Can confirm that btrfs on nvme with sleep/suspend has been working fine for me on my Framework laptop (haven't tested hibernate, though).
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
I think it starts acting up when there is nvidia in the mix. I don't think framework has nvidia, does it?
I'm surprised this works at all check out Suspend and Suspend on Nvidia
It has been working flawlessly on my desktop. That one has all Intel, though. Also, now on ext4, I have zero issues and this laptop has Nvidia. So crazy.
I've been using a btrfs and nvme combo for almost 2 years now without any issues like that, the main difference being that I have a relatively large swap partition and am on arch linux' zen kernel
On a laptop? I have, too, but on a desktop. This issue only happens on the laptop
Do you have a swapfile >8 Gb ? that might be it.
If not, BTRFS and resume kernel parameter tend to not work well. You might want a non btrfs swapfile. You can create a separate partition or a file.
Arch and arch based distros tend not to handle hibernation without tweaks.
I created a 16 GB swap partition and chose "swap" in the file type when partitioning
Try to disable your swap. You don't need a 16Gb swap partition. If you really need to hibernate, try switching to a swapfile instead, but that can cause resume errors.
I use btrfs and nvme on a Dell XPS 13 and I've had no issues, so it's not a universal problem.
Hibernate/Suspend on btrfs is dodgy as fuck. Swap file or partition?
My system is currently completely incapable of recovering from suspend. The issue lies in the Nvidia driver, as it broke in a certain version, downgrading allowed it to work, but keeping the Nvidia driver on an old version quickly became a pain.
Swap partition. Do I need to make a swap file for it to work? Also, this happens even without Nvidia drivers installed.
Good. Suspend with a swap file is a nightmare, and only recently even became possible with btrfs at all.
I don't know what the problem with your system in particular is, but on mine, nvidia has utterly borked suspend, and there is nothing I can do about it.
I too tried multiple distros, re-installs, nothing fixes it. It simply does not work.
Running ext4 on both home and root partitions fixed the issue completely for me WITH Nvidia installed and envcontrol to switch between Intel and Nvidia. The issue is gone. Poof. System is solid AF now. Btw, gnome has gotten so sexy lately. Haven't tried it in a long time.
Might this just be an issue of your distro (or version) that does not hibernate well with btrfs? I know my Ubuntu 22.04 LTS fails to wake up from hibernation on btrfs right now. Coincidentally, also on an NVME.
I highly doubt it's a distro issue. I've tried both endeavourOS and fedora. Two totally different ~~distro~~ distros with two different DEs. Literally the same exact thing. I honestly suggest that you back up your system and switch from btrfs to ext4 and see if that works. Just to investigate.
This sounds suspiciously like a hardware issue to me. What model of computer is it and what model is the old SSD? You may need a firmware update on either the laptop or the SSD.
I have a dell Inspiron 7573 2 in 1. 4k screen with hybrid graphics Intel/Nvidia mx130 My laptop doesn't support LVFM on Linux. So, for the SSD I had to get into Windows and update, but it doesn't matter since I've replaced it with this one. Bios is latest since I'm able to update through a thumb drive. It's the new nvme drive that doesn't like btrfs. It's working flawlessly now on ext4. Nvidia installed and all. Zero issue. I'll be missing out on snapshots, but oh well
I use NixOS with single-partition btrfs on both my laptop and my desktop and have never had this happen. Curious...
Try installing timeshift and take some snapshots