11
u/Awkward-Flan6379 6d ago
You can actually turn the lid off and run the server 24/7 without worrying if you're using debian distro. There's a way to make it never sleep when the lid is closed.
5
u/adirajk05_cmd 6d ago
It is already doing that, just opened it for this post
4
u/gpsxsirus 6d ago
Hopefully it's placed on the carpet just for this post as well. Otherwise those fans a struggling for dear life.
1
u/metalwolf112002 5d ago
Really? Has the laptop been sitting on the floor open since you took this picture over 2 years ago?
Funny how many similar setups you'll find if you Google "laptop I'm a server".
7
4
3
u/frostyflakes1 7d ago
Is this a Lenovo Y510p or some variant? I had this same laptop. My first gaming computer. Had two 750Ms running in SLI. Good times.
1
3
u/IlTossico 5d ago
You can close the lid and have it working. Probably better.
1
1
u/GeroldM972 5d ago
Working? Sure!
Throttling? Absolutely!Laptop screens, when closed, block a lot of thermal venting, especially when the laptop is an older model, like shown in the OP. Result? The already poor performance will become poorer still, because of throttling.
Keep the lid open.
1
u/_-Mephist0-_ 4d ago
I'd be more concerned about it being on the floor than whether the lid was open.
0
u/IlTossico 5d ago
Depends on the laptop. This doesn't apply for all laptops. And 99% of them have their own duct in for the fan and duct out on the side or rear. Having the lid closed doesn't prevent air from getting in.
Plus this is a home lab, meaning the laptop is idling 99% of the time, probably the fan is not even spinning.
There are laptops, like my X390 Yoga, where the keyboard is air tied compared to the motherboard, so that if you spill liquids they don't get into the motherboard, in situations like mine, having the lid open would make 0 difference. So depends, but for experience, generally doesn't make a difference.
1
0
u/sheep_duck 4d ago
Venting air is one thing but the keyboard and surrounding surfaces also act like a passive cooler
211
u/SleepyKoalas23 7d ago
We all did this once until you remember there's an option to keep the laptop on even when the screen is closed. Then you feel like a god.
77
u/Otherwise_Task7876 7d ago
I didn't. I left it open so it can actually breathe through its vents and ease of access.
20
u/I_Dunno_Its_A_Name 7d ago
I have a laptop like that. It blows the exhaust air between the monitor and the keyboard.
12
u/cpgeek 6d ago
some of them will overheat - I typically remove the display on the laptops i've used as servers. - it's usually *SUPER* easy. you just pop it open, unplug all the wires that go to the display module, and unscrew the display module from the hinge. - then you've got a proper headless server - typically storing away the display module in a closet or a high shelf, often in a towel or something, until it's needed again, along with it's screws in a small ziplock.
5
0
u/variablemechanics 5d ago
Carn, took me bloody ages to suss the hibernate setting was overriding the lid action.
24
u/VegetarianZombie74 6d ago
Back in 2000, I worked for Disney for a bit, managing websites for a bunch of TV shows. One day, all the message boards went down. We did all this troubleshooting and couldn't find the cause.
Turns out the message board server was just a random server on some random desk in the office at Sunnyvale. When a new hire took the desk, no one told her about the server and its function. To her, it was just some random computer in her space. She found the noise distracting, so she turned it off.
-23
u/ryfromoz 6d ago
Hopefully they were fired for that blunder. If youre new, dont mess with shit
11
u/Brooklyn030 6d ago
The it guy should have been fired for leaving a server on a random desk instead of in a dedicated space clearly labeled.
13
8
u/Jeff_B_83 6d ago
Should change the power settings to do nothing when screen is closed. That way it stays turned on even when the lid is closed
6
u/DankOverwood 6d ago
Yeah how do you run a server but not find your way through simple browsing and searching to disabling your laptop lid behaviors? kinda remarkable.
2
u/Not-Noah 5d ago
15 year old just discovered port forwarding and set up his own game server for his friends lol
1
u/rob417 7d ago
I've always wondered for people who use a spare laptop as a server. How long can it be plugged in before it runs into battery issues? Are we talking about a few months? A few years? Or randomly at no predefined time interval?
6
6
u/skwerks 7d ago
I use an old thinkpad and I removed the internal battery completely. Not worth it to come home to a burnt down house if it were to explode lol.
I also went and edited one of the files in my Ubuntu server install that allows me to close the lid and now the laptop just sits there running full time behind my tv stand lol
I just remote on from my main computer whenever I need to do anything
3
u/cougomdd 6d ago
My father-in-law once told me that he had talked to a colleague about the danger of lithium batteries, and that my girlfriend and I had to pay attention.
I pointed out to him that their laptops have been permanently plugged in since 2019 because the battery was dead
He wanted me to be careful while making no effort on his part
1
u/AlterTableUsernames 6d ago
I believe this risk to be hugely overblown and would consider the fire hazard by a machine with closed lit higher than that of an okayish battery pack and open lit sitting there for 10+ years.
1
u/No_Suit7363 5d ago
With older laptops it's definitely a real risk. But a modern one from the last few years probably overblown.
1
3
u/ipapipap 6d ago
I use my old lenovo laptop for my main sever with battery plug in. It's been almost 2 years. Let's find out.
1
u/deadduck_09 5d ago
i actually just setup my old laptop as a server like rn would it be better is i remove the battery completely and put it on charge??
2
u/ipapipap 5d ago
Depends on your laptop battery. If it's some kind of 18650 liion battery, you can. But if your battery type of flat cells, it's better to took them off
1
u/deadduck_09 5d ago
ohh i have liion one on top of that its a removable one too
thanks for the reply1
u/Noclahle 3d ago
A menos que la baterÃa esté en buen estado y te sirva como un mini UPS, lo mejor es sacarla y evitar calentamiento
1
2
u/GamerBears 7d ago
I had an old MSI laptop plugged in and running 24/7. It had no battery issues at all. As long as it was plugged in. I did have to restart it once in a while.
2
u/Zoltarr777 6d ago
I had a dead battery laptop that worked just fine while it was plugged into a wall, but wouldn't turn on with it, so not the end of the world either.
2
u/No_Suit7363 5d ago edited 5d ago
You remove the battery. Some people don't but that's a stupid move.
EDIT: I should say if it's an ancient laptop you remove the battery. New ones don't really have that kind of risk that should be avoided. But those old ass laptops are the best servers. Cheap, run linux perfectly, and also cheap (so good I said it twice).
2
u/metalwolf112002 5d ago
Depends on the laptop. Some have property battery management. My work is getting some laptops back with battery discharge cycles in the double digits because they were work from home units only. Some of them are in excellent condition.
Other laptops, the batteries just float charge and after being plugged in for years are toast.
Your milage will vary.
1
u/kazurabakouta 7d ago
I don't think it's that problematic with modern machine. In my experience most of older machines that were used for this purpose would have had problematic battery anyway. I think what ruined the battery the most was drawing huge power from the battery WHILE it was charged. Fully charged machine would just draw its current from the wall socket.
0
u/adirajk05_cmd 5d ago
I've been using it for over a year now, and I haven't witnessed any battery issues or any other possible issue we can think of. It's working great. Before using it as a server, I upgraded its storage to a 2TB hard drive and 16GB of RAM, and I also undervolted my CPU for maximum efficiency. If there is a power cut — currently it is running a Minecraft server, some Docker containers with Kubernetes and Jellyfin inside it, along with some of my other personal stuff. I like to restore old applications and preserve them. It already has more than 800GB of data in it. I'm also thinking of adding a Mac Mini, or if my budget increases, a DGX Spark for a local AI to run my Home Assistant and all.
2
2
2
u/_angh_ 6d ago
Your server... Right? Nice karma farming: https://www.reddit.com/r/ProgrammerHumor/s/x2QrGMC6Zp https://www.reddit.com/r/selfhosted/comments/1s9ocx3/im_a_server/ And many, many more...
2
u/Brooklyn030 6d ago
Why not disable lid functions?? I have a laptop in my rack with lid functions disabled running proxmox as the tie breaker plus running some light services. It sits in my server rack and just chills
1
u/_keyboard-bastard_ 7d ago
I had one of these on my desk in the office around 2014 running my on-prem helpdesk.
1
1
u/stinger32 7d ago
I was able to disable the lid or whatever feature it is on my razor. No luck with yours? Congrats!!
1
u/Vegetable_Flounder12 7d ago
wow, sitting on carpet , good luck with sucking in all that nice fibers/fluff. doubles as a vacuum cleaner.
1
1
u/Tony1Rice 6d ago
I have a 2015 vintage laptop that I've been using as a desktop - plugged in 24/7 and running almost 24/7 - for three or four years and it's fine - even the battery appears to be healthy.
1
u/Fair-Promise4552 6d ago
you can disable the lid... and then put it into your shelf like a book to expose the fan intake.... nice server btw
1
1
1
1
u/TheAggressiveSloth 3d ago
Just close the lid and have to set to closing lid doesn't do anything to the screen. Case colved.
1
u/Brotakul 2d ago
sudo mkdir -p /etc/systemd/logind.conf.d && printf '[Login]\nHandleLidSwitch=ignore\nHandleLidSwitchExternalPower=ignore\nHandleLidSwitchDocked=ignore\n' | sudo tee /etc/systemd/logind.conf.d/99-lid.conf > /dev/null && sudo systemctl restart systemd-logind
1
u/Zealousideal-Ice2580 1d ago
I use one of my laptops as a jumpbox with the screen normally showing frigate camera view. I have it mounted semi-flat on the wall near my desk.
I have charging set to charge battery 60% max.
1
u/Different-Apple-1091 1d ago
There are settings you can use that keep the laptop on when you close the lid. Battery shmattery, take it out when it swells. You can also set power on at AC Input in your settings and plug it into a surge protector with a switch, then you never need to open it if you ssh it
126
u/codear 7d ago
Where's your Ethernet cable, server?