Deep sleep does not seem to be working with encryption enabled.
Kubuntu 21.04 kernel 5.11.0-25 Wifi and Bluetooth worked out of the box. Although I was able to install
fprintd from source and register my fingerprint with
fprintd-enroll, I could not get fingerprint auth to work for login. (I think this has something to do with lack of fingerprint auth support with KDE plasma?)
I’m also using Windows 10 as a guest OS in a VMWare virtual machine that’s working well so far.
@tombo @nebkor On Mint xfce 20.2 I’ve noticed something a little odd about waking from suspend, that almost all of the time when I drag my finger across the touchpad while it is awakening there is some sort of random issue with it when it is awake (all the way from non-responsive to responsive but not registering multi-touch to wrong speed), but when I leave it untouched it comes back on with a normally functioning touchpad (hopefully this does not jinx it…). Maybe there is something about receiving input while coming back online that confuses it?
Hmmm, although I haven’t done more looking into this, I don’t think I was giving input while it was waking any time that I’ve run into this.
Agreed! It could be formatted better for sure.
Does it sleep with high battery drain or not sleep at all? I have encryption enabled on mine.
The system does not resume properly after sleep in my case, throwing endless errors about read-only file system.
systemd-journald: Failed to write entry (22 items, 752 bytes), ignoring: Read-only file system
21.04 with kernel 5.11 and default partitioning? What SSD?
- Yes (LVM with Encryption)
- Sabrent Rocket 4.0 Plus 1TB NVMe (PCIe 4.0)
The Phoronix review mentions a firmware update that improves Linux performance: Sabrent Rocket 4 Plus 1TB NVMe PCIe 4.0 SSD On Linux Review - Phoronix
But you’ll need Windows to update the firmware.
It is running the latest v1.2.
That’s tricky then. I may be able to borrow a 2TB version of that drive, if I can I’ll test it.
Much appreciated. Not sure it is the drive that is the issue.
Here are simple steps to follow:
- Download the latest Ubuntu 21.04 image from https://releases.ubuntu.com
- Install and partition using LVM with encryption (encrypt free space too)
- Install all latest updates:
sudo apt update && sudo apt dist-upgrade -y
- Enable deep sleep
- Put computer to sleep
- Resume and give it a few minutes after logging in, try opening firefox or a terminal
@ezhik So got my hands on the drive and actually it’s a 1TB Rocket 4 Plus.
Did a clean install of 21.04, left everything at the default except LVM w/ encryption (including free space). Updated, rebooted, enabled deep sleep, rebooted, and put to sleep.
I did a few tests of 5-15 minutes each and it resumed with no obvious issues. Checking journalctl shows no “read-only” errors. Does it matter how long it is asleep for you?
@jeshikat , I think the key configuration here is LVM with Encryption. Your test is not a 1:1 repro at this point.
When doing the install, can you click on advanced and select LVM and encrypt the drive? It is really trivial to do.
NOTE: Genuinely appreciate your engagement, assistance and efforts here.
@ezhik Possibly, although I’m running ZFS on root with zfs native encryption. Totally different layout and underlying impl.
@ezhik ah, I worded that badly. I meant that I changed from the default partitioning (Ext4 no encryption) to LVM with encryption (and erase full disk), but otherwise everything is at the default.
When you resumed, were you able to proceed as expected? Meaning open new applications such as firefox and terminal and go on ?
The issue I ran into, I was able to login back after resume, but everything else would barf a few mins after when I tried to open new applications.
I let it sleep 5-15 minutes, then resumed and logged in, waited 2-3 minutes, then opened Firefox and terminal. It has worked consistently, and I left it asleep overnight and it was working this morning.
I forgot to check the firmware revision so I’ll make sure it’s on 1.2 tonight and try again.
Good stuff, I’ll give it a shot again. I’ll do a full re-install, I was originally on 1.1 firmware, then updated to 1.2. I ran into the same issues after the update.
I’ll test it again and record the experience so we can troubleshoot.
I have re-installed using ZFS with encryption, no issues so far with deep sleep enabled!