Disable suspend when the laptop lid is closed on a systemd-based GNU/Linux system:
sudo sed -i 's/#HandleLidSwitch=suspend/HandleLidSwitch=ignore/g' /etc/systemd/logind.conf sudo sed -i 's/#HandleLidSwitchExternalPower=suspend/HandleLidSwitchExternalPower=ignore/g' /etc/systemd/logind.conf sudo systemctl restart systemd-logindIf you are in a TTY, you can blank the screen before closing the lid to prevent burn-in. After running this, come back later and press a key to turn the screen on again.
alias blankscreen='setterm --blank=force; read ans; setterm --blank=poke'sir this is a shitpost
People arguing about lid closing when clearly the biggest sin is a laptop on a carpet. Please put a hard surface under to stop it hoovering up all dust and particles possible and having appalling airflow
I have mine upside down so lid on ground, fan facing upwards but if I had it the correct way up wouldn’t the fans be blowing outward/down?
All laptops I have used suck air in from the base and blow it out the side/back. I like your upside down solution.
Your intake on the side would still be close to the carpet. Also outward and down would build up heat still
why the lid thing tho? you can just disable lid detection and it’ll not suspend even after closing.
Some laptops vent the hot air in a way that’s blocked if the lid is closed.
You could remove the laptop screen like I did with my home server. Although you’ll have to put it very close to the router to get a WiFi signal afterwards.
You can get an external antenna and run it to the wifi card. I did that with my beelink mini desktop because the wifi antenna was garbage.
Why would u do that other than maybe saving space? Leaving it open would have been easier and the same thing.
Not gonna vent much at all if you put in on a carpet…
makes sense. thinking again, i think my old macbook also did that…
Yeah, I think a lot of macs vent through the keyboard.
i vent through my keyboard sometimes
Makes me think of the time I was running a stripped down laptop motherboard as a server for a while. Was given a laptop with a broken screen, but it had a wired NIC, so I pulled the screen off, along with any other component that wasn’t necessary, and shoved it behind a TV where it was close to the router. Ran on that thing for years before being able to afford better equipment.
An underrated feature of the laptop server: built-in UPS!
Currently running a headless laptop with Proxmox. Love this set up and definitely great feature having the UPS.
Do you think that people that are using a laptop as a server know how to do that?
yeah, cuz i also use my laptop as a server lol
Honestly? Absolutely. I expect anyone who can set up a server to know basic shit about a laptop.
I feel like I’ve probably downloaded a torrent off this very machine.
I’m using a crappy HP mini PC from 2016 with just 4GB of RAM and it runs my Nextcloud with Talk that I use instead of Discord. The most limiting factor is actually my internet connection… Only 8 megabits of upload only gets you so far (it used to be 20 megabits but my ISP screwed me over)
If you can’t turn off sleep, you shouldn’t be setting up servers.
The laptop should already be closed.
Fuck off, let people enjoy things. The idea that you need to be knowledgeable in something before trying it is an unnecessary hurdle to just play around with things and learn
don’t gatekeep 😑 maybe that laptop is running windows 11 with teamspeak on it and a buggy video driver
Incase it is running teamspeak server, you can fix that bug by setting up a mumble server instead.
If that’s the case, the person setting it up has no place setting it up.
HOW DARE THEY HAVE A USE CASE THAT YOU DON’T APPROVE OF, OH ARBITER OF TRUTH AND JUSTICE IN THE MATTER OF SERVERS!
Agreed. How dare they. They could be running a ham sandwich or something. fuck, it must be time to eat again. i hear my cat mewing feed me. I JUST FED YOU FIVE MINUTES AGO THEY’RE NOT GONNA FALL FOR IT DIPSHIT they’re falling for it aren’t they.
Why?
Why don’t more people use Linux?
the average Linux user:
Probably, but this is much less janky than some 100% critical to the business infrastructure that I’ve personally witnessed in data centers.
I’ve seen a laptop duct taped to the desk & wall with a similar note as the OP, so you would have to make a conscious effort to fuck with it.
Funfact: not all windows laptops let you choose what happens when you close the lid.
My previous laptop had options for shut down, sleep and hibernate. And if you wanted none of those, you could go fuck yourself (or install not-windows, which didn’t work for the shitty niche software I need)
Control Panel > Power Options > Change What Closing the Lid Does > (there is no option to change what closing the lid does)
This is Windows ableism. Just because your computer works with Windows doesn’t mean everyone’s computer works well with Windows.
deleted by creator
I have a solution for that.
I bet you do
Rather than snark, maybe offer some helpful pointers, or even ask if there’s a reason for it?
Tent mode. Better air flow; no lid closing.
the hinge’s gonna break lol
Why? That’s a waste of time. The reason this is as it is is because whoever set it up can’t use a computer.
definition of gatekeeping and immeasurably destructive to any community, real or online
Jesus Christ, this is shitpost. And this image is as old as the sun.
I have my lidswitch disabled on my Debian server, but if it’s not open the MacBook won’t boot.
Even if soft/firmware won’t let you do a thing, in the case of a laptop screen it’s just a tiny magnet that can be removed in seconds.
I’m not cracking my case. I just leave the screen open











