RetroFed Forum
Your home away from modern life.
The other side of Linux shutdown
Post Reply
AuthorMessage
iknewitwhenisawit fedinsfw.app iknewitwhenisawit@fedinsfw.app
Joined: 2026-03-26
#52 · Quote Reply

If you hit Ctrl-Alt-Delete 7 times in 2 seconds it will skip immediately

I can't tell if you're fucking with us or not. 😒

9
trem lemmy.blahaj.zone trem@lemmy.blahaj.zone
Joined: 2026-04-20
#53 · Quote Reply

Huh, used to see this regularly, but have not seen it for a few years now...

5
xthexder l.sw0.com xthexder@l.sw0.com
Joined: 2023-07-09
#54 · Quote Reply

That is good to know, because I do not want to replace a 2tb ssd.

Apart from static discharge, or a broken power supply, I don't think there's anything your computer could do to the SSD to actually break it. Worst case you just need to reformat it.

(I guess if it writes to it constantly it could wear out, but that's different than a hard shutdown)

7
sepi piefed.social sepi@piefed.social
Joined: 2024-01-27
#55 · (edited) Quote Reply

Better the ups than the stuff attached to it.

If only we could be so lucky. They don't make Minutemans anymore.

My house flooded once, had like an inch of water in the living room, and my Minuteman ups was just sitting there beeping cos there was no power.

6
Auster thebrainbin.org Auster@thebrainbin.org
Joined: 2024-10-28
#56 · Quote Reply

I miss Ctrl-Alt-Backspace

How many times have I clicked this combo by accident and logged off Mint... 🥲

3
IrateAnteater sh.itjust.works IrateAnteater@sh.itjust.works
Joined: 2023-09-07
#57 · Quote Reply

If only we could be so lucky. They don't make Minutemans anymore. My house flooded once, had like an inch of water in the living room, and my Minuteman ups was just sitting there beeping cos there was no power.

Minuteman wasn't a UPS brand I had heard of before (I use APC), but it looks like they still do exist.

4
gh0stcassette lemmy.blahaj.zone gh0stcassette@lemmy.blahaj.zone
Joined: 2023-06-17
#58 · Quote Reply

Idk if this is a hot take but „no limit“ should straight up not exist. Just set a limit and blow the whole PC up when it takes too long.

I'm ngl if I see this shit, I just hard power-cycle the machine. I ain't got time for that.

38
MalReynolds piefed.social MalReynolds@piefed.social
Joined: 2025-06-08
#59 · Quote Reply

I can't tell if you're fucking with us or not. 😒

Hard power off dont care, and neither do modern filesystems.

2
rumba lemmy.zip rumba@lemmy.zip
Joined: 2024-09-24
#60 · Quote Reply

I have less issues with that than i do shit getting slow at startup. I hunted down a PAM problem (that I didn't even configure) for a couple of days of my spare time. 5 minutes startup, i could feel my hail/nails growing between power on and Graphical.

2
Ricky Rigatoni piefed.zip RickyRigatoni@piefed.zip
Joined: 2026-02-14
#61 · Quote Reply

Brownout once fried my UPS. My guess is the inverter circuit.

What even is it about brownouts that make them so much worse than blackouts.

4
palordrolap fedia.io palordrolap@fedia.io
Joined: 2024-08-13
#62 · Quote Reply

This actually got me to go track down the systemd service that has been responsible for being unresponsive and causing a 90-second shutdown delay way more often than it should.

Do you really want technical details?

In my case it's the MPRIS service that's supposed to provide playback control on media players and related software.

... and so now it's disabled to see what, if anything, breaks without it. So far, none of the media apps I regularly use seem to be affected (browsers, a computer emulator, DOSBox, VLC).

It looks to be Bluetooth-associated based on the package it's installed with, and I don't need Bluetooth 99.9%+ of the time, so it might be a while, if ever, before I notice anything wrong.

20
bitjunkie lemmy.world bitjunkie@lemmy.world
Joined: 2024-06-19
#63 · Quote Reply

That's what kill -9 is for.

13
WhyJiffie sh.itjust.works WhyJiffie@sh.itjust.works
Joined: 2023-07-11
#64 · Quote Reply

You can do systemctl edit <unit>. There you can override all options without changing the main unit file.

oh, I thought you mean skipping the timeout that one time

3
WhyJiffie sh.itjust.works WhyJiffie@sh.itjust.works
Joined: 2023-07-11
#65 · Quote Reply

Hard power off dont care, and neither do modern filesystems.

databases may still care

3
Err(()).unwrap() Moderator rtxn@lemmy.world
Joined: 2023-06-24
#66 · (edited) Quote Reply

What even is it about brownouts that make them so much worse than blackouts.

A blackout is just a loss of power. Nothing complicated about it. There are obvious human and societal consequences, but as far as the infrastructure is concerned, a blackout usually means that protection devices have been tripped and the system has protected itself from greater damage.

A brownout means that the electric grid (or interconnection), for some reason, can't supply enough power to satisfy the demand, but protection devices haven't tripped yet. It can result in momentary power losses, drops in voltage, drops in frequency, or some generators getting desynchronized with the rest of the grid. If reactive loads (like HVAC motors) go offline momentarily, they can cause spikes in power consumption, which can overload circuits and trip safety devices.

A UPS needs to immediately switch to battery power when there are signs of an imminent power loss. A brownout might cause a consumer-grade UPS to switch on and off repeatedly, which the inverter circuit probably doesn't like.

This channel is run by a real civil engineer, he's released some great videos about the challenges of maintaining an electric grid.

11
remotelove lemmy.ca remotelove@lemmy.ca
Joined: 2023-08-15
#67 · Quote Reply

Did you learn your lesson and get a UPS?

I did. All the important things have time to gracefully shutdown now. (Except my for my rack of 4 DL360's, which need something a little more robust than a Walmart UPS. They aren't critical and only exist to handle weird one-off projects anyway.)

3
slazer2au lemmy.world slazer2au@lemmy.world
Joined: 2023-06-30
#68 · Quote Reply

On Windows I get a "some apps are preventing shutdown....". With a list of apps. The app that is stopping shutdown? It's called "shutting down". Wtf

Sometimes the list is empty and I'm like, well there is nothing in the list shut down you idiot before I pull the damn power out.

12
HeHoXa lemmy.zip HeHoXa@lemmy.zip
Joined: 2026-04-08
#69 · Quote Reply

The weak must perish.

How will we learn without testing? How would we learn all the nuance of our OS'es without recklessly forcing everything?

3
AceFuzzLord lemmy.zip AceFuzzLord@lemmy.zip
Joined: 2025-06-19
#70 · Quote Reply

I am lucky enough to not have had any problems with calling a shutdown... just now with a problem I recently learned where my desktop treats shutdown as reboot. Definitely gotta look into that.

8
JTskulk lemmy.world JTskulk@lemmy.world
Joined: 2023-06-20
#71 · Quote Reply

That's what kill -9 is for.

Recently I had to reboot to fix a zombie process (caused by a GPU crash, not sure if it was hardware or the driver). When shutting down systemd waited 2 minutes for all process to be killed and then another 2 minutes for the specific zombie process.

2
Everyday0764 lemmy.zip Everyday0764@lemmy.zip
Joined: 2025-06-09
#72 · Quote Reply

This actually got me to go track down the systemd service that has been responsible for being unresponsive and causing a 90-second shutdown delay way more often than it should. ::: spoiler Do you really want technical details? In my case it's the MPRIS service that's supposed to provide playback control on media players and related software. ... and so now it's disabled to see what, if anything...

systemd-analyze ?

5
MalReynolds piefed.social MalReynolds@piefed.social
Joined: 2025-06-08
#73 · Quote Reply

databases may still care

Fair

2
palordrolap fedia.io palordrolap@fedia.io
Joined: 2024-08-13
#74 · Quote Reply

systemd-analyze ?

What about it? I admit that I don't know a great deal about systemd and all its subcommands - it took me a while to figure out how to disable that service properly, for example - but the manual seems to suggest that systemd-analyze is for startup processes, not shutdown.

I'll gladly take pointers on how to get it to say why a particular service hung on shutdown.

1
TrackinDaKraken lemmy.world DarrinBrunner@lemmy.world
Joined: 2025-02-26
#75 · Quote Reply

I hope my installation of Mint doesn't start acting up, because I don't want to learn whatever it is half y'all are talking about.

I just want it to work, and so far it has.

The only problem I've had is nvidia driver updates breaking Blender. So, I need to restore and tell update to ignore that one.

25
a_non_monotonic_function lemmy.world a_non_monotonic_function@lemmy.world
Joined: 2025-10-22
#76 · Quote Reply

Recently I had to reboot to fix a zombie process (caused by a GPU crash, not sure if it was hardware or the driver). When shutting down systemd waited 2 minutes for all process to be killed and then another 2 minutes for the specific zombie process.

What happened when you called kill?

1
JTskulk lemmy.world JTskulk@lemmy.world
Joined: 2023-06-20
#77 · Quote Reply

What happened when you called kill?

Absolutely nothing. kill -9, SIGCHLD to the parent which was pid 1, relogged my graphical session. After I rebooted I had the thought that I should have tried removing and reinserting the amdgpu module to avoid a reboot. I couldn't start new mpv processes so shit was pretty fucked lol.

6
Deebster infosec.pub Deebster@infosec.pub
Joined: 2023-10-16
#78 · Quote Reply

I hope my installation of Mint doesn't start acting up, because I don't want to learn whatever it is half y'all are talking about. I just want it to work, and so far it has. The only problem I've had is nvidia driver updates breaking Blender. So, I need to restore and tell update to ignore that one.

Same, my shutdowns take about about two seconds, although suspend can sometimes take about six seconds (but normally one).

I'm on Gentoo, so it's probably a leaner install than most.

10
Venia Silente lemmy.dbzer0.com veniasilente@lemmy.dbzer0.com
Joined: 2025-06-09
#79 · Quote Reply

You didn't solve the problem. You only ignored it. Systemd does exactly what it's instructed to do. If a program takes longer it waits if it's instructed to do so. It's well defined and predictable. Much better than a random assortment of bash scripts. And it's incredibly customizable. If the defaults don't fit you, you can easily override them without touching the main unit itself.

Oh no, I solved the problem: I uninstalled systemd. It's systemd who is ignoring things, such as the longstanding history of Unix and Linux (research what happened between systemd and screen, tmux, dtach).

-1
Venia Silente lemmy.dbzer0.com veniasilente@lemmy.dbzer0.com
Joined: 2025-06-09
#80 · Quote Reply

I don't think that's true. Bootup and suspending don't need stopping things like that. Source: I use systemd btw

Oh but it's not just stopping things, starting things is subject to the same issue also:

A start job is running for "wait for network to be available"

(attached to a network interface that is not necessarily connected at bootup)

Systemd is just ~special~.

-1
Venia Silente lemmy.dbzer0.com veniasilente@lemmy.dbzer0.com
Joined: 2025-06-09
#81 · Quote Reply

Because you didn't bother fixing the underlying issue but got lucky. Or these other inits are more brutal in their shutdown procedure, but I doubt that.

What "underlying issue"? The one in systemd?

Everything works correctly (starting, shutting down under openrc / under sysvinit / manually / with killall)... except specifically systemd.

1
sonofearth lemmy.world sonofearth@lemmy.world
Joined: 2025-09-23
#82 · Quote Reply

I am lucky enough to not have had any problems with calling a shutdown... just now with a problem I recently learned where my desktop treats shutdown as reboot. Definitely gotta look into that.
[deleted]
1
a_non_monotonic_function lemmy.world a_non_monotonic_function@lemmy.world
Joined: 2025-10-22
#83 · Quote Reply

Absolutely nothing. kill -9, SIGCHLD to the parent which was pid 1, relogged my graphical session. After I rebooted I had the thought that I should have tried removing and reinserting the amdgpu module to avoid a reboot. I couldn't start new mpv processes so shit was pretty fucked lol.

Dang. That's a good one.

4
halcyoncmdr piefed.social halcyoncmdr@piefed.social
Joined: 2026-01-15
#84 · Quote Reply

A blackout is just a loss of power. Nothing complicated about it. There are obvious human and societal consequences, but as far as the infrastructure is concerned, a blackout usually means that protection devices have been tripped and the system has protected itself from greater damage. A brownout means that the electric grid (or interconnection), for some reason, can't supply enough power to s...

This channel is run by a real civil engineer, he's released some great videos about the challenges of maintaining an electric grid.

Practical Engineering is awesome. For those that don't want to deal with YouTube, his content is available on Nebula as well.

5
AceFuzzLord lemmy.zip AceFuzzLord@lemmy.zip
Joined: 2025-06-19
#85 · (edited) Quote Reply

[deleted]

I think I figured out my issue, literally a few minutes ago. I've never really dealt with ethernet, so I just learned my bios might have some sort of "wake up on lan" setting enabled that stops me from fully shutting down.

Why would I ever want something like that, though?

2
nixukty lemmy.zip nixukty@lemmy.zip
Joined: 2026-03-01
#86 · Quote Reply

[deleted]
32
sepi piefed.social sepi@piefed.social
Joined: 2024-01-27
#87 · Quote Reply

Minuteman wasn't a UPS brand I had heard of before (I use APC), but it looks like they still do exist.

That's odd. I thought they died around the dotcom boom. Happy to be wrong today!

3
Nailbar sopuli.xyz nailbar@sopuli.xyz
Joined: 2023-06-12
#88 · (edited) Quote Reply

I think I figured out my issue, literally a few minutes ago. I've never really dealt with ethernet, so I just learned my bios might have some sort of "wake up on lan" setting enabled that stops me from fully shutting down. Why would I ever want something like that, though?

Why would I ever want something like that, though?

I should look into wake on lan for my media center so I wouldn't have to run downstairs to the living room to turn it on if I want to browse my photo/video collection.

I prefer keeping it off when it's not in use.

5
yaw infosec.pub yaw@infosec.pub
Joined: 2026-02-26
#89 · Quote Reply

Same, my shutdowns take about about two seconds, although suspend can sometimes take about six seconds (but normally one). I'm on Gentoo, so it's probably a leaner install than most.

> doesn’t want to learn about Linux
> runs Gentoo

14
Deebster infosec.pub Deebster@infosec.pub
Joined: 2023-10-16
#90 · (edited) Quote Reply

> doesn’t want to learn about Linux > runs Gentoo

So I should wish for my computer to start acting up so I can have an educational experience attempting to fix it? No thanks, there's less frustrating ways to learn.

Also, if you're trying to go for a greentext-style formatting, put two spaces at the end of your first line.

9
Aatube lemmy.dbzer0.com Aatube@lemmy.dbzer0.com
Joined: 2023-06-18
#91 · (edited) Quote Reply

Oh but it's not just stopping things, starting things is subject to the same issue also: A start job is running for "wait for network to be available" (attached to a network interface that is not necessarily connected at bootup) Systemd is just ~special~.

https://askubuntu.com/questions/972215/a-start-job-is-running-for-wait-for-network-to-be-configured-ubuntu-server-17-1

2
lambisio feddit.cl lambisio@feddit.cl
Joined: 2026-04-09
#92 · Quote Reply

If anything ever makes me leave systemd. It'll be this.

What, not any of the other stuff?

Like the same locking wait message, but on startup because of wifi

3
Ricky Rigatoni piefed.zip RickyRigatoni@piefed.zip
Joined: 2026-02-14
#93 · Quote Reply

What, not any of the other stuff? Like the same locking wait message, but on startup because of wifi

I haven't gotten a startup wait in over 7 years but if I got it now I'd be pretty miffed.

4
lambisio feddit.cl lambisio@feddit.cl
Joined: 2026-04-09
#94 · Quote Reply

possibly they ship a bad systemd unit config for their package

Not onl that but they usually remove the init script as well, so unless you go for archives you no longer have a sane mechanism for starting and stopping the service.

Fortunately Debian has a orphaned-init-scripts package that can help alleviate that pain, as you can also use those scripts (or even better, openrc scripts) as skeletons to replace systemd service units.

3
lambisio feddit.cl lambisio@feddit.cl
Joined: 2026-04-09
#95 · (edited) Quote Reply

https://askubuntu.com/questions/972215/a-start-job-is-running-for-wait-for-network-to-be-configured-ubuntu-server-17-1

Don't mask or disable the systemd service.

Edit /etc/netplan/01-netcfg.yaml and add optional: true to any devices that may not always be available.

That's absolutely systemd's fault. In any Linux system the only network interface that can (more or less) always trusted to be available and complete a full initialization sequence is lo Absolutely nothing else.

(The worse if you happen to have a WiFi that autoconnects but does it across the same SSID to different endpoints, but that one is wpa_supplicant's fault if I'm not mistaken. Systemd just makes it worse)

2
Venia Silente lemmy.dbzer0.com veniasilente@lemmy.dbzer0.com
Joined: 2025-06-09
#96 · Quote Reply

In reply to an earlier post

Just set the limit to something sane like 2³² seconds!

7
Venia Silente lemmy.dbzer0.com veniasilente@lemmy.dbzer0.com
Joined: 2025-06-09
#97 · Quote Reply

systemd-analyze ?

"Ask systemd what's wrong with systemd" feels like "ask Grok what is bad about child sexual abuse" lol.

2
chris l.roofo.cc chris@l.roofo.cc
Joined: 2023-06-14
#98 · Quote Reply

oh, I thought you mean skipping the timeout that one time

For reboots pressing ctrl+alt+del at least 7 times will force a reboot

2
Aatube lemmy.dbzer0.com Aatube@lemmy.dbzer0.com
Joined: 2023-06-18
#99 · Quote Reply

Don't mask or disable the systemd service. Edit /etc/netplan/01-netcfg.yaml and add optional: true to any devices that may not always be available. That's absolutely systemd's fault. In any Linux system the only network interface that can (more or less) always trusted to be available and complete a full initialization sequence is lo Absolutely nothing else. (The worse if you happen to have a Wi...

It depends on whether you're a server or PC. For PCs (as in personal computing) I agree systemd-networkd-wait-online.service should be disabled. For servers, I think it's plausible that you require a network to be at all meaningful, especially if there's some sort of database.

1
rhpp programming.dev rhpp@programming.dev
Joined: 2023-06-27
#100 · Quote Reply

In reply to an earlier post

Unless the culprit is that one process permanently stuck in uninterruptible disk sleep, in which case the timer would just perpetually go up, and pressing 7x Ctrl-Alt-Del as you mentioned will simply shut down systemd and the kernel itself will start complaining (faulty hardware can cause this)

2
cley_faye lemmy.world cley_faye@lemmy.world
Joined: 2023-06-20
#101 · Quote Reply

In reply to an earlier post

Due to what I call some quirks (but what other people call "good, sane, excellent design decisions"), you can set a hard timeout… that can be flatly ignored by systemd for various reasons that might or might not be obvious. In that case it will happily show you <current timer> / <timeout>, then move to <current timer> / <timeout * 2>, and so on.

Because that, for some reasons, makes a lot of sense to some people that are not me.

8
Post Reply Page 2 of 3   Goto page « First 1, 2, 3 Last »
Back to top