Am I the only one that never uses suspend/resume? If I'll be away from my laptop, I save everything and shut it down. If something is running, I plug it in and lock the screen.
I did, routinely, with my ThinkPad until a month or two ago. See, it would surreptitously turn itself back on (to hit Windows Update!) and kill its battery overnight. I tried turning everything off; didn't work.
Just over a month ago, https://news.ycombinator.com/item?id=41442490 was posted. I went into the BIOS, changed the "sleep mode" to "Linux" (at least ThinkPads still consider this), and... in sleep mode, I lost about 2-3% of battery overnight. Tops. I still hibernate for most situations, as I don't use the laptop much, but when I know I'm going to be using it often, it's nothing, and it works the way things were supposed to.
The regressions in standby/suspend are staggering inthe last 3-5 years. Peak stability was with my t480s, just proper s3 support. Currently it's hit and miss with this silly s0ix shenanigan.
Idk about “the only one” but surely that’s rare. Why would you want to take the time to save, quit, reboot, and reopen everything instead of closing your laptop which takes less than a second?
I used to do the same, but being able to put my laptop on a shelf for a week or two and get back to what I was doing is really convenient. It's basically as if you had instant fast boot with no downsides.
Since getting a MBP I'm not shutting it down. Not sure what magic they are doing (some very deep sleep) but shutting it down't is absolutely not needed... When I step away I just close the lid and then open in it 1h or a couple of days and have everything as it was ready to work in split second...
Suspend-to-disk does pretty much that - it saves the contents of your RAM to swap. Suspend/resume should be transparent to most applications, perhaps excepting those that rely on a real-time network connection.
I mostly live in the windows world, and since at least Win 7 its sleep and hibernate have been reliable enough that I use them regularly. When I'm deep into a project for work I can easily have a dozen apps open. Having to reopen them multiple times a days is (to me) just a waste of time when sleep works great.
I only use suspend/sleep because it's much faster to get back to what I was doing. If I shutdown I have to open everything again and some things (Fusion 360 for example) take a good 30-60 seconds to open the program and documents and be in a usable state.
I run xubuntu as my main os on my laptop for many years now and I never suspend. Always full shut down.
I do let it sleep when plugged in but that's just sleep not suspend/hibernate. So on my desk at home it's usually just a mouse wiggle to resume where I left off. But when I shut down it's a shut down.
I don't know why people say it's some kind of deal breaker neccessity. I have it available and don't use it.
I would just never turn off my computer if I had to do this. It’s far too much effort. I much prefer suspend, it’s a nice compromise between power saving and convenience of always on
Why not? I can’t see any reason to waste time booting when your computer can be ready to go in an instant, with everything you were working on undisturbed.
Nope, I don't see the point now that we have SSDs and fast boot. Browsers, IDEs, even stuff like Notepad remembers where it was after a reboot so it's not like you'll lose any in-progress work you couldn't be bothered saving.
I disagree. There are still tons of apps that don't "save state" exactly where they left off, including browsers. I absolutely dread restarting every time I am forced to do it for kernel updates, because that means I have to re-open all the same programs and navigate back to where I was again. And I don't like saving any browser history so that means re-logging into a handful of sites, doing the 2FA dance etc etc., it's really a big hassle.
If you have chosen not to save your browser history then obviously the history will not persist - the feature you opted not to use has been disabled as designed. If you set your browser up to have persistent history (the default for all mainstream browsers) and ensure the option to restore tabs on browser restart is enabled (I think also the default nowadays due to rise of mobile) it really does just work. Worst case after an epic crash that even the browser itself doesn't recognize Ctrl-Shift-T will get you back, even if you had dozens of open tabs in multiple windows, even after a reboot.
For other stuff, if you always have the same set of programs open and always put them in the same place, your window manager should restore that for you after a reboot on UNIX. It's been two decades since I used X frequently but even back then window managers could pin apps to fixed screen positions. On Windows default positioning has often been a bit less predictable, but there are custom window managers there too if you really want it. In any case the default window manager has plenty of keyboard shortcuts to very quickly open and arrange apps how you want them.
My work laptop boots to logon before I even get the charger, mouse and monitor plugged in, and after typing my password I'm back with my browser and IDE running, VPN connected, WSL up etc in less than a minute, usually while still mid smalltalk/greetings with my colleagues.
With the move to cloud-saved everything and the expectation of users that all their data should always be synced across all their devices, you need to go out of your way to find and/or configure apps to not automatically persist settings and state these days. For some apps I make that decision deliberately because I don't trust the middle man (e.g. bookmarks and tab sync) but that's a personal choice I make to forgo convenience for privacy. If the FreeBSD (or Linux) desktop experience is not doing this kind of stuff out of the box, then I think that's one of the first things it could do to meet the expectations of people coming from Windows/Android.
From my perspective suspend/restore is perhaps fine if your laptop never leaves the office, but I usually find myself more annoyed than delighted when it kicks in by accident. Your battery life starts to hinge on literally the efficacy of your laptop's physical hinge, which if you bash your computer around a lot during commute is less dependable than an on/off switch. And nothing worse than having your back suddenly get hot because your laptop decided to wake up while you're cycling in multi-lane traffic, especially if your morning schedule has you in meetings instead of charging at your desk.
In general I disagree with what you're saying, there are still tons of programs that don't have any cloud syncing, plus not everyone wants to use that. There's also many WM/DEs that do not re-open running programs or keep window positions, including basically all the ones I use. Plus I also run many programs as different users, for privacy/isolation purposes, which no DE can handle in that case.
I also have historically (and still) had major issues with suspend/resume when a discrete GPU is involved or some other hardware device that linux can't resume properly, I always end up having to just reboot anyways which defeats the purpose.