654
you are viewing a single comment's thread
view the rest of the comments
[-] FedX@quokk.au 7 points 2 days ago

As everyone is saying, to can get a laptop to run with the screen closed, but, in the off chance you are wondering how to do that, let me inform you!

If you are using systemd, then edit /etc/systemd/logind.conf and add (on uncomment) a line HandleLidSwitch=ignore. If, like me, you use elogind, than it's the exact same process, except you edit the file /etc/elogind/logind.conf. If it's something else, then IDK, read the manual.

However, the screen will keep running. There are quite a number of ways of doing this, but the most efficient would probably be using a simple daemon to disable the screen after a timeout for systemd:

[Service]  
ExecStartPost=-/usr/bin/setterm --blank 1 --powerdown 2 --powersave on  

Or for the much superior dinit:

type = scripted  
command = /usr/bin/setterm --blank 1 --powerdown 2 --powersave on  

Although, there are quite a number of ways of doing this. ACPI will give you more flexibility in the execution; your able to intercept precise key-codes and change how they interact in various ways, but this is probably the way I would do it.

[-] Honytawk@discuss.tchncs.de 1 points 2 days ago* (last edited 2 days ago)

If you want to do it on Windows you go:

Settings > System > Power & Battery > Lid, Power & Sleep button controls and set it to "nothing"

[-] bold_omi@lemmy.today 10 points 2 days ago

If you are running a server on Windows, you need help.

[-] Honytawk@discuss.tchncs.de -3 points 2 days ago* (last edited 2 days ago)

Nah, plenty of dedicated game servers are ran on it. Running one right now of Enshrouded.

Can't do that on Linux, because it doesn't support it, except through some wanky third party software.

It is much easier to run on Windows. As is shown by how easy this setting is changed on Windows compared to Linux. You don't have to copy paste some unknown commands that could do harm, you just flick a switch in the GUI.

Because that is what a GUI is for. Easy access to settings.

It is also your type of comments that make people hate the Linux community. Such entitled bitches who think they are right all the time even when they are proven wrong. You are a detriment to your fanclub.

[-] bold_omi@lemmy.today 3 points 2 days ago* (last edited 2 days ago)

I do not use Linux to be a member of a 'fanclub'. I use it because I refuse to run a sloppy corporate spyware operating system with inferior efficiency and customizability.

this post was submitted on 25 Nov 2026
654 points (99.7% liked)

Programmer Humor

34316 readers
1496 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS