I use Ubuntu btw. Poweroff could use more write cycles on the SSD because it has to read everything at startup, but suspend has to keep supplying power to the RAM
Just chiming in to point out that powering off and then starting back up won’t cause any additional SSD wear, reading from flash memory doesn’t use up write cycles* (because there is no writing going on!). In fact, regularly restarting could be slightly more friendly for your SSD, because the /tmp directory, old log files, etc. get deleted on startup, freeing up the storage blocks used by the deleted files so that the SSD can use them for its internal wear balancing.
*technically, flash memory reads do very slightly degrade the data being read, but this effect is absolutely negligible compared to other forms of passive bit rot in flash memory and is basically irrelevant unless you’re intentionally trying to corrupt data using reads (which won’t happen because the flash controller will fix it before it becomes corrupt to the point of being illegible)
Server: Not once I have used anything else than reboot.
Desktop: Whatever happens when I close the lid.
whatever happens when I click shut off or the power button on my pc
I suspend so I don’t have to wait for stuff to load up on boot
What is power…off?
Like back in the 90s??
I poweroff. I have enough time to let it turn on and can save some energy. (Electricity is getting even more expensive)
y’all been powering down your systems?
had my servers up for like a decade or more…
Dude has that 10 year uptime
Nearly always suspend. It just works for me and I’ve never had issues (Arch and Pop). I rarely, rarely have power outages so the end result is the same.
I could care less about the 5 cycles from 10.000.000 total cycles (dunno the actual number) at least for my desktop.
As for my proxmox server: 5% wearoutI use the hybrid: suspend to ram, then after 2 hours, automatically suspend to disk - in the final state it uses zero power. And, if you have encrypted your drive (you DO encrypt your drives, right?!) then you need to enter passphrase on resume from hibernate, so safer if device was nicked.
To be honest the experience over multiple laptops and multiple Linux distributions with regards to suspend or hibernate has been absolutely terrible for me. I now set my browser to remember all my tabs and simply shut down my machine when I’m not issuing it. It starts up in 30 seconds or less which is maybe 15 seconds more than waking from suspend or hibernate and it’s not likely to break or require complicated set up.
🤷
Yeah, because of the same experience for the last 2 decades, I always shut my stuff down as well.
Then I gave an old laptop with Linux to my
neoprenenephew. And without further discussion or thinking, he just pressed the power button, when he wanted it to be off - which triggered some kind of sleep mode
I was so fucking nervous during that, as I had never tested for that, and for the young generation growing up with smartphones that was the obvious move.
But surprisingly it works like a charm and goes into some kind of standby.
At least I didn’t got any complains…Isn’t neoprene a synthetic material?
My husband also uses the power button to power off his PC. I didn’t even know it was a thing until he asked me to do it for him at some point and I was very confused. He’s on Windows. I didn’t know this worked on Linux as well (though I know it’s a thing on laptops). Is there a way to configure what it does (on PC) like it does on laptops?
Ah, fucking auto correct
Should have read: my nephew ;-)
Edit: and regarding your question:
Yeah, there some power management tools/deamons to configure in Linux, how to handle what.
Depends a bit on your distribution/environment, which tools are available - or make sense to be installedHaha, to be honest it took me a bit to figure out you might have meant nephew. XD I must admit I even looked it up to see if there was a different meaning to the word that I didn’t know about. :'-)
Thanks for the tips. I do vaguely remember seeing a setting somewhere but I think I’ll need to look into it more when I’m more awake (it’s past midnight here).
IIRC in the UEFI (aka BIOS), there’s usually a setting to dictate what a tap of the power button does—usually sleep, hibernate, or power off.
Try tapping F10, F12, or Del during early startup to get into the UEFI setup
Thanks for the tips! I’ll have a look!
I was trained to turn off PCs completely from a young age so still do this, necessary or not
I’m lazy and use systemctl poweroff! 😆
I definitely shut down my systems from time to time just to make sure my network is configured correctly and shit doesn’t go haywire because I’d rather have that happen than the power go out and everything comes crashing down
I power off so that my drive encrypts when I’m not using it
Yeah I am a bit paranoic sometimes about it too
My work machine (Ubuntu) gets suspended at the end of the day during the week and shut down on Friday. It’s a good balance between keeping my many programs running and ready and cleaning up regularly.
I always shut down my desktop pc (Arch, btw) as it takes just a few seconds to boot up.
My laptop (Arch) I shut down because suspend never worked.