Peak homelabbing
-
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'
Thanks, but honestly, a simple cat <file> would be more helpful than a sed line. I mean, who reads sed lines?
-
Disable sleep-on-lid-closed.
Take out the lid-close sensor and use it in a side project that requires a proximity sensor.
-
This post did not contain any content.
TIL: maybe my local laptop-server shouldn't have the lid closed. Probably not gonna change my ways, though. What an inconvenience that'd be
-
This post did not contain any content.
Closing lid goes brrr
-
Which is exactly why it overheats so quickly when they close the lid.
Let's face it, the place using a laptop on the floor with a paper sign probably doesn't have the budget for real sysadmins. At the same time, most real sysadmins know to disable the lid-closing behavior and get the laptop off of the carpet because they've been foiled in their past by people who refused to read the goddamn paper sign.
So OOP is just in the pre-sysadmin stage
-
Take out the lid-close sensor and use it in a side project that requires a proximity sensor.
isn't it Hall sensor?
-
isn't it Hall sensor?
wrote last edited by [email protected]I might/might not be one.
But it definitely is a proximity sensor. Unless yours is an Apple device, in which case, it might be an angle sensor.
The term "Hall sensor" would refer to the tech used in it, whereas the term "proximity sensor" refers to its function.
It could be using any other proximity sensing technique too and it would still be a proximity sensor. -
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 might/might not be one.
But it definitely is a proximity sensor. Unless yours is an Apple device, in which case, it might be an angle sensor.
The term "Hall sensor" would refer to the tech used in it, whereas the term "proximity sensor" refers to its function.
It could be using any other proximity sensing technique too and it would still be a proximity sensor.technically yes. usually proximity sensor is used to mean IR or sonic sensors and I read in that sense.
-
isn't it Hall sensor?
If the Dexter actor is near it, the screen goes off
-
This post did not contain any content.
which one of you took a picture of my jellyfin server?
-
isn't it Hall sensor?
On thinkpads it is, there is a magnet on the bottom.
-
TIL: maybe my local laptop-server shouldn't have the lid closed. Probably not gonna change my ways, though. What an inconvenience that'd be
You should be able to deactivate shutdown or sleep mode on lid closure with some commands.
-
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
-
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'
put it in /etc/systemd/logind.conf.d/nosleep.conf so that updates can't ever undo this
-
See I would have more problems with cats chilling on the keyboard than folks closing the lid or unplugging it
It could be worse. I do not want to have to clean a hairball out of a keyboard ever again. (At least it was a desktop keyboard, so applying water was an option. I don't want to even think what would have been needed to clean a similarly soiled laptop.)
-
Disable sleep-on-lid-closed.
It's probably to prevent overheating.
Why is it just sitting on the carpet though?
-
It's probably to prevent overheating.
Why is it just sitting on the carpet though?
To prevent underheating, they're going for a medium laptop.
-
This post did not contain any content.
Man when I was a kid I ran a runescape private server for anywhere within 20-100 people at a time, and for the first few weeks users reported a lot of downtime, which didn't make sense to me as whenever I tried to login it was totally fine!!
Eventually figured out closing my laptop lid put the laptop to sleep and scraped together some chore money for a VPS lol
-
And the lid is not open because of preventing it sleeping, but rather to cool it down
But it looks like it's sitting on carpet which would definitely block the vents