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
I rip the plug out of the wall without warning. Gotta keep your machines on their toes or they’ll get too comfortable and start plotting against you.
Else it gets the cord again
I’ve had to start counseling sessions with my MongoDB. It thinks I’m conducting stress tests, but really I’m just maintaining discipline.
I know a real professional when I see one!
Yeah! Show them who’s boss.
Depends.
My desktop gets powered off because I don’t use it often and it sucks a lot of energy and is loud.
My Steam Deck gets suspended when I’m not using it because that’s usually in the middle of a game and I don’t want to hear the game sounds all the time or accidentally do something.
My laptop is running 24/7. At night I use it to listen to science videos to help me sleep. And in the day I watch stupid YouTube videos to help me cope with life.
Not to mention the steam deck has a weird bug on it that if you leave it powered off for too long, for some reason it decides to just not turn on anymore unless you hook it to power. Super annoying because it will turn on and say something like 80 or 90% power, but the button won’t actually boot the system unless it has a power hookup. I’ve on a few occasions had to use reverse power charge from my phone to the deck to trick it into booting on the go. Once you hear the beep saying its turning on you can unplug it. Weirdest thing
I think that has something to do with battery storage mode flipping on iirc.
You guys are turning off your computers?
My laptop, I’d just suspend to RAM, unless I was going somewhere without it for a couple of days or more.
The desktop is always on. The monitors suspend, but everything else is sucking power. I expect with frequency scaling, it’s not as bad as it used to be, but then, in ye oelden days I didn’t do nightly backups to the cloud and disc, or sync data between servers and run other odd, automated jobs.
That was my reaction, to the question, too.
I’m not sure what power down options my current (Linux) OS has. I just let the battery die sometimes like a normal person.
Edit: The battery management defaults are so good, I have to forget about it on a shelf for several days before it - well I don’t know what it does, because I’m ingoring it. Maybe it powers down, maybe it suspends, maybe it does some kind of emergency shut down…
I am trying to be more energy conscious so I’ve been turning mine off more as of late, but ya in the past I typically left my machine up for 7 - 14 days and only power off/reboot after updating.
I remember older gaming forums where people would have their uptime in their post signatures.
Edit to add: upon reflection it was all the more impressive because almost all gaming PCs were Windows.
I always power off any computers that I won’t be using anymore for the day. Be it desktops or laptops. My parents always taught me that leaving devices on (or even connected to power) when not using them was a fire hazard. Although I think it’s a bit overblown, powering off anything I don’t need has stuck as a habit and I see no reason to change it. With SSDs the startup time had become fast enough to make me stop caring. The wear and tear on the SSD is also not that big of an issue. My laptop and its SSD are from 2014 and have been subjected to the worst of my programming abilities, yet they still function fine.
Even without considering any firehazard I simply enjoy starting from a clean slate every time I start a pc.
I’m in the habit of powering off so that if my laptop is lost or stolen I will have the peace of mind of my data being in an encrypted state.
I hibernate for exactly that reason. Just have to ensure your swap partition is inside your crypto container.
Power off because it boots in under a minute
I just keep my laptop on for weeks on end, until the kernel updates or something else that needs a restart, last 6 months I prob only turned it off 7 times.
And no, I don’t really feel any effects cause it’s linux which doesm’t get clogged up like windows and power usage just idling is the same as just suspending.
Also personally don’t use stuff like suspend or hibernate ever. Even have them completely disabled on my systems.
Note: I’m on nixos not ubuntu tho.
Maybe there’s not a huge difference, but the power usage of suspending is definitely lower, since only the RAM is getting power. CPU and disks have some idle power consumption, and you can have some background processes that wouldn’t be executed while suspended.
Depends on what you run on your system, but when my system idles my cpu is at literal 0%, ram at 600mb and disk usage is 0% (nvme), which ends up my total power usage to about 3W on idle or something like.
It’s a laptop so doesn’t use a lot.
Power-off.
The read-weakening has almost no effect, and I like a clean boot.
Also it cleans up memory, modern kernels are good, I’m used to old OS’s that leaked memory like a sieve.
I power it off to save electricity
I close the lid and don’t give a damn what happens.
Power off because I don’t know when I’ll be back. If I know I’m back in a few minutes or an hour? That shit stays on.
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.
🤷
I was trained to turn off PCs completely from a young age so still do this, necessary or not
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 neoprene. 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?
Maybe cause I’m old but boot times are so quick if I need to move i just shutdown throw it in my backpack and go. I don’t want it on in any fashion while in my bag and hibernating to disk means all my shell sessions and anything else disconnected anyhow.
hibernating to disk means all my shell sessions and anything else disconnected anyhow.
If you can run
tmux
on the remote system, can manually reattach when you reconnect.If you use the UDP-based mosh instead of the TCP-based
ssh
— it uses ssh to bootstrap auth, then hands off to its own protocol — (a) the system can use local prediction in some cases, leaving it feeling snappier, but also (b) the thing will automatically reconnect and resume sessions. I mostly find it useful on flaky/slow links, but it is also kind of neat to just close a lid, and then pop it open again days or a week later and then just resume working without any user-visible disruption.I normally use
mosh
in conjunction withtmux
, since withmosh
alone, there’s no way for another host to reconnect to amosh
session…but another host can connect and take over atmux
session being run by amosh
session.Finally got around to playing with mosh today and with it using ssh for auth it was so simple to setup. It actually works really well!
Thanks for the recomendation
I do use tmux daily and have a session that connects to most my other sessions.
suspend has to keep supplying power to the RAM
When I close my laptop’s lid, I have it set up to suspend for five minutes, then hibernate.
That lets me close the lid and move the laptop to somewhere nearby without using much battery power, but if it gets left closed for long, the thing will hibernate, so it won’t drain the battery.
That’s
HandleLidSwitch=suspend-then-hibernate
in /etc/systemd/logind.conf, andHibernateDelaySec=300
in /etc/systemd/sleep.conf.Any other system just gets shut down.
EDIT: Note that I don’t believe that this is necessary to avoid data loss. I think that the default on Debian is to suspend, but there’s another default to hibernate when the battery becomes extremely low, so either way, a laptop sitting on a shelf for a week — or however long it takes to drain whatever battery is left while suspended — should wind up hibernated. But with the defaults, it’s going to have a laptop with critical battery next time you open it up, and with my settings, it’ll have about as much charge as when you closed the thing.
With how fast boot times are nowadays? I shutdown nightly and save me the hassle of having to worry about some weird oddity occurring, usually it doesn’t but every once and a blue moon plasma hangs on the lockscreen and I get greeted with either a broken desktop or a pitch black screen, both usually are easiest to resolve via rebooting anyway.
Hmmm, but in the wee hours is when I have my backups and automated maintenance scheduled.
I have timeshift running hourly regardless if using the system. Once the initial backup is complete, any actual performance drops are very negligible since it uses incremental backups, I don’t even notice the program is running most the time. As for automated maintenance, I don’t really have anything like that, I run an update manually every few days, but I could probably configure unattended-updates to do it for me, I just don’t like the idea of automating that.
Snapshots, or actual backups? You’re doing full system backups hourly?
My backups go pretty fast, but they still impact CPU, and interfere with both network, SSD, and USB bandwidth. I could do that hourly, but jesus that’d impact my B2 bill significantly. And I hate having things randomly slow down.
Snapshots are cheap and fast, but they aren’t backups.
Timeshift uses incremental backups under the hood (using rsync) calling them snapshots. As long as you are using the rsync one and not the BTRF style one, it works the same. I can load my current setup from a live disk and restore just the same.
Basically the first backup ever done is a “full backup” then every backup past that is an incremental one.
Being said, my off site backup isn’t using a cloud provider, my risk case doesn’t need that, I store backups locally and then clone to an offsite every once and awhile