The only real problem I have left with my XPS13 is with sleep/hibernate.
I’d like it to work like macOS. It seems like that’s possible but it requires a swapfile to save state to. As far as I can tell that means enabling virtual memory which is a no no on SSD.
Just that and I wish Bluetooth remembered the on/off state it was left in after reboot.
I might be missing something but doesn't that still depend on swap space and having a swapfile and virtual memory set up?
I'm fine with having a swapfile but I don't want it used for anything other than Suspend-to-disk. i.e. I don't want the SSD being hit with multiple writes caused by VM.
Sorry maybe I'm not explaining what I want to very well.
On the Mac it will suspend to RAM but also dump to an image file at the same time. If the mac runs out of power it will later restore from the image once power is restored.
That's possible on Linux using hybrid-sleep and suspend-then-hibernate but they require a swapfile.
I haven't yet found a way to have a swapfile without allowing that swapfile to be used for virtual memory too. I worry that virtual RAM will eat my SSD.
> It seems like that’s possible but it requires a swapfile to save state to.
Has macOS solved this issue differently? Do they save RAM state to some non-SSD non-volatile memory, or do they just not care and dump it to SSD anyway?
I believe they favour sleep mode where the ram is powered on and the state is kept alive on ram. Only when the sleep time goes too long or battery starts running low, they dump into SSD.
It's not the swapfile that's the issue it's having the swapfile also be used for virtual memory.
If it was only used for suspend that would be fine because it would only be written to when you suspend the laptop, which in the grand scheme of things is pretty rare compared to writes caused by virtual memory swapping.
Yup, macOS dynamically allocates swap files on disk when they're needed - that's why you may see 0 swap space in htop, which doesn't mean that it doesn't use swap.
I’d like it to work like macOS. It seems like that’s possible but it requires a swapfile to save state to. As far as I can tell that means enabling virtual memory which is a no no on SSD.
Just that and I wish Bluetooth remembered the on/off state it was left in after reboot.