classic meme.
which one of you took a picture of my jellyfin server?
Disable suspend when the laptop lid is closed:
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-logind
If 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'
but my keyboard is a heatsink…
put it in /etc/systemd/logind.conf.d/nosleep.conf so that updates can’t ever undo this
Closing lid goes brrr
Genius
not turning off going to sleep when lid closed
Rookie maneuver.
Could be an overheating concern maybe. Some laptops weren’t designed to run with the lid closed, if it inhibits the air flow.
I can’t tell for sure, but it looks like a Lenovo y510p. Or at least it looks very similar to the one I owned back in the day.
There was a vent in the hinge, and these things would absolutely cook themselves with the lid closed
I’m currently using a y510p as a home lab. Every update resets the shutdown-on-lid-close setting. Had to set up a cron job to re-disable it on boot.
I’m pretty sure there is a regular systemd config option for that
As right as that might be, it’s on carpet!
I don’t believe they put much thought into airflow and overheating…
On carpet 😬
if you just moved in, server comes first, then a mattress, then the rest of the furniture
The laptop could have setup to not sleep on close and could have been laying closed, screen on the ground. Also it would have provided completely unrestricted airflow to the fan…
…but then the sign would have affected the airflow…
This is the best compromise until mom visits and steps on it.
I have killed two laptops by stepping on them. Is this a sign?
… Mum?
you see ivan, server is much happier when comfortable on carpet, you can tell it wams its heart
Yeah. That one triggered me.
I mean, literally just lean it against the wall, at the very least…
With a risk of falling hard drives and such? I’m not doing that…
Lol, reminds me of my old setup.
It was all old W98 laptop that I got used. I installed xunbuntu on it back when it first came out in 2006. It sat on my desk, open like that with a bit of tape over to hold the power cord because it was loose. The battery was completely dead.
It was the server I used to host all the modded maps I made for a silly little tank game. Thing ran seemlessly only going down when the power went out or somebody juggled the power cord for 5 years.
Wow five years is a long time to juggle something
and it’ll be the most reliable server you own
My server is a loose motherboard with a loose PSU, thrown into the living room TV rack, which I leave open for cooling. It’s a repurposed (free) Athlon, DDR2. I only use it for smb and git backups, and project sharing between my desktop and laptop. What amazes me most is my IT coworkers don’t find that a perfectly acceptable scenario.
Serious question that I’ve wondered about but never worked on.
Can you rig a laptop to keep running with the lid closed? Either by software or hardware? I guess you could cut the switch, but an OS-based solution would be neater.
Yes, easily. Most OSes let you do that.
In some cases, is a bios setting also.
Yes, in most OSes it’s just a setting you can toggle. But even if you can, you may want to leave it open for cooling. Lots of laptops are barely cooled enough to support themselves, and will often rely on radiating heat out of the case as a form of passive cooling. And even when the screen is open, they still struggle to stay cool. Closing the lid often makes these cooling issues much worse.