this post was submitted on 26 Apr 2025
112 points (100.0% liked)

Ask Lemmy

31280 readers
1779 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] dan69@lemmy.world 2 points 2 days ago (1 children)

Haven’t needed it to, I guess even after kernel updates you can log off and log back on to set the changes.

[–] crony@lemmy.cronyakatsuki.xyz 7 points 2 days ago* (last edited 2 days ago) (1 children)

Sorry, but to clarify no. When your kernel updates if you just log out and log back in you will still keep the same kernel version because linux keeps running a program on same version until you completely turn the program off.

That's why with the kernel and kernel modules you need to completely restart your system for the kernel to shutdown and use the updated version, it's just the way that linux works.

Hell you can even use a program after uninstalling it until you close it for a year if you wanted to ( once untistalled my termninal emulator, but still had it's window opened so just reinstalled it an hour later after realising I can't spawn a new terminal window )

[–] mormund@feddit.org 6 points 2 days ago (1 children)

There is live (kernel) patching which circumvents the need for a restart. But that is meant for servers were you cannot afford the downtime and will only work for a while. Sooner or later you will have to restart to get the latest patches.

[–] dan69@lemmy.world 1 points 1 day ago (1 children)

Correct me if I’m wrong: sudo user and kernel updates can take effect¿

[–] DaPorkchop_@lemmy.ml 1 points 14 hours ago

Not sure what you're trying to ask, are you asking if using sudo to sign in as a different user will make kernel updates take effect? If so, the answer is no.

Linux is an operating system kernel, which basically means it's a program which runs other programs inside of it. For any "normal" program running inside Linux, you can update it by installing the new version and then exiting and relaunching the program so that the installed updates take effect. Similarly, after installing the Linux kernel itself, you have to exit and restart the kernel in order for the update to take effect. Because the kernel runs programs inside of it, exiting the kernel means all of those programs will be exited as well, and because the kernel is the only program running directly on the hardware, exiting the kernel means that your computer will power off. In simpler terms: getting kernel updates to take effect necessarily means you need to exit the old kernel and launch the new one, and there is no way to do that without reboot.