this post was submitted on 08 Jun 2026
69 points (96.0% liked)

Selfhosted

59897 readers
877 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam.

  3. Posts here are to be centered around self-hosting. Please ensure it is clear in your post how it relates to self-hosting.

  4. Don't duplicate the full text of your blog or git here. Just post the link for folks to click.

  5. Submission headline should match the article title.

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

Hello folks,

What do folks recommend as good practices to use a laptop as an always on, always plugged-in server? Specifically, how to manage the battery and some of the potential cautions/dangers of keeping it plugged in.

I have a spare Dell workstation laptop that I'd like to use as a Proxmox node. I've seen a number of posts where folks will mention that using a spare laptop works well because it has a built in 'UPS', but then in the comments there's caution about the battery being plugged in all the time.

I'm curious what folks do in terms of battery management, assuming I want to keep this as hands-off/low maintenance (but fireproof) as possible.

Thank you all so much, ~M

Update: thank you all so much for the great advice. This is a Dell Workstation and it does have a 'Primarily AC use' power setting in the BIOS, as well as custom charge levels available. Appreciate it and I hope this discussion helps other folks looking to do the same!

top 30 comments
sorted by: hot top controversial new old
[–] eager_eagle@lemmy.world 47 points 6 days ago* (last edited 6 days ago) (1 children)

I'd just take it out if it's removable. If you really care about keeping it on during power outages, I'd get an actual UPS to have router and potentially other equipment also plugged in, because I don't see a "remote" laptop on its own as being very useful without at least the local network up.

if you decide to leave it plugged in, you can configure it to stop charging at e.g. 80% and charge it again at e.g. 30%, that way it keeps a percentage that will extend the battery life.

[–] 51dusty@lemmy.world 19 points 6 days ago (2 children)

take it out. I had more than one ballon on me when I left them in.

there are lots of reasons it can happen,but since this was in a closet I didn't notice it and I suppose could've been a fire hazard eventually.

some laptops might have reduced performance in this configuration though.

[–] MagnificentSteiner@lemmy.zip 14 points 6 days ago (1 children)

The technical term is "spicy pillow" :D

[–] xzinik@feddit.cl 1 points 5 days ago

but how do i free the angry pixies out of their cells if it doesnt become a spicy pillow first

those poor pixies yearn for their freedom :c

[–] iamthetot@piefed.ca 6 points 6 days ago (1 children)

There's no supposing necessary. It was a fire hazard, and presently not eventually. When something has caused a fire, it's no longer a hazard, it's just, you know, a fire.

[–] 51dusty@lemmy.world 2 points 6 days ago

you are correct @iamthetot.

[–] spaghettiwestern@sh.itjust.works 24 points 6 days ago* (last edited 6 days ago) (1 children)

Dell bios settings often include battery charge limit settings. I have mine set to a 70% limit which provides hours of backup with the display off.

Modern laptop batteries when kept cool and undamaged are extremely safe despite what you might read in these comments, especially when you limit the charge. Parking your car in your garage is hundreds of times more hazardous.

[–] sun_is_ra@sh.itjust.works 1 points 6 days ago (1 children)

Same here, battery running for years with no noticeable degradation

[–] spaghettiwestern@sh.itjust.works 1 points 5 days ago* (last edited 5 days ago)

The anti li-ion crowd here is really strange. I wonder if they're also anti-vaccine?

[–] IcedRaktajino@startrek.website 15 points 6 days ago* (last edited 6 days ago)

If it's a relatively recent laptop, it should be fine.

Many of them will let you set custom charge limits. If yours supports that, limit it to like 60% or thereabouts. Long enough that you can get some UPS use out of it but not full enough it's ever gonna go spicy pillow on you.

If it won't let you set a charge limit, they'll still kind of float around full charge but not stay at 100% all the time. Even plugged in, mine will drop down from 100% to eventually 92% before it will start charging back to 100 again. That's over the course of several days to a week.

If the laptop is older than about 2017 or so, or still has a removable battery, you might want to just take the battery out and use an external UPS as those typically don't have the extra charge management features newer ones do.

To run them full time, you either want to remove the screen or "tent" them because a lot of heat is dissipated through the keyboard, and it's normally expected to be open while running because of that. By "tent", I mean open it halfway and put the screen facing down so it's standing up and shaped like a tent.

[–] plateee@piefed.social 9 points 6 days ago

As others have said, cap charging at ~80%. Unless you have a spare $150 for a nice UPS, I would use the built-in battery.

[–] artyom@piefed.social 5 points 6 days ago

Check your preferred distro for a "kiosk mode" that keeps it charged to ~50%

[–] Eat_Your_Paisley@lemmy.world 5 points 6 days ago (1 children)

On my XPS you can set always plugged in in the BIOS perhaps yours has the same setting

[–] mgrimace@lemmy.ca 5 points 6 days ago

It does have a ‘Primarily AC use” setting in power management, thanks so much for the lead there!

[–] irmadlad@lemmy.world 5 points 6 days ago (1 children)

I had a laptop server back in the day. I took the battery out just because it was one less thing to worry about. YMMV. At the very least, there are ways to cap the charge level on the battery, tho I have no experience doing that. Perhaps others may chime in if that is a route you choose.

[–] hendrik@palaver.p3x.de 3 points 6 days ago

Google and/or the Arch Wiki should have you covered. For my Dell laptop I just clicked on Settings->Battery and set it to "Preserver Battery Health". Done.

[–] hendrik@palaver.p3x.de 5 points 6 days ago* (last edited 6 days ago)

I'll go ahead and remove the battery. At least check on it regularly. I've had the spicy pillow syndrome in some of my laptops and phones. Other ones were fine. But better not have that plugged in and trickle charged for half a year.

[–] LovableSidekick@lemmy.world 2 points 5 days ago* (last edited 5 days ago)

Maybe you can take comfort from the extremely low incidence of laptop battery fires in spite of millions of people leaving them plugged in all the time.

[–] Pika@sh.itjust.works 4 points 6 days ago* (last edited 6 days ago)

As others have stated, if your model is able to have the battery removed and have it still run off power, no problem, do so.

You should be using a dedicated UPS for something like that if you're concerned about power going out , For a power input that a laptop requires, you could very easily find a $30 or $40 one at your closest big box retail store.

If you must keep the battery in it be careful to monitor it. I ran a laptop as a server for almost four years. It does work really nice. But depending on model, they may be prone to having the battery expand if it's on 24-7. And even if it doesn't, that battery is going to be shot after two or three years of constant use anyway.

You can mitigate the battery health issue by making sure you have some form of battery management software running where it stops charging the battery once it hits like 80-85%. and allows it to discharge on its own. But realistically using a laptop battery as a backup power source isn't super recommended.

Plus with a UPS, you could also hook your router and modem/ONT up to it, which means that not only is your laptop going to remain on, but usually your network will remain up as well since communication lines are quite a bit more durable and generally stay alive even if the power goes down

I love the project of using laptops as compute! I’ve only had one had the battery fail, I had to remove it and it’s still running like a champ

[–] frxe@friendsocial.inet.place 3 points 6 days ago (1 children)

Set via the OS to stop charging the laptop at 60% then it should be good to stay plugged in all the time? If anyone else knows/feels differently I'm interested to hear more info thanks friends
#battery #charging

[–] frxe@friendsocial.inet.place -1 points 6 days ago

Reading full thread now thanks all 😊

[–] sj_zero@lotide.fbxl.net 3 points 6 days ago

a lot of dell workstation class laptops have an "always plugged in" option in the bios for situations where the battery won't be exercised much.

[–] cecilkorik@lemmy.ca 3 points 6 days ago

If you have an option in the BIOS or drivers to set the battery charging threshhold to stop charging at 80% or possibly even lower (I believe Lithium Ion/Polymer cells are happiest at around 40-60% state of charge, which is why they are usually shipped that way). Sometimes this feature exists, but only vaguely described as "battery life optimization" or some similar wankery that they never properly explain.

You can also just remove the battery entirely if it will be always plugged in, but setting it to a low/modest maximum charge gives you a nice, reliable, built-in UPS in case of power interruptions.

[–] AMillionMonkeys@lemmy.world 3 points 6 days ago

My primary server is an Acer laptop running Debian. It ran on power with no modification or trouble for a couple of years, but I heard some horror stories about spicy pillows so I found a way to clamp the battery's charge level to 80%. Now it just sits there like that. I know how to do it with an Acer laptop - not sure about Dell.
But nothing has burnt down and it's been running for several years.

[–] TheBlackLounge@lemmy.zip 0 points 6 days ago (1 children)

Don't risk it, it's not made for that. It's not made for running with the lid closed even, so consider removing it.

If the laptop doesn't turn on without the battery, there are guides for modding.

[–] cecilkorik@lemmy.ca 9 points 6 days ago (1 children)

This is FUD. Dell workstation class laptops are absolutely designed for running at full power with the lid closed (and for use with a docking station, in fact). That's why it's called a "workstation". Business class laptops are a totally different beast than consumer-grade/"gaming" laptops. They are typically quite durable, quite tolerant, and quite repairable. Exceptions, obviously, exist, and we don't know the exact model OP is talking about, but there's no reason to assume they will have any issues running it as intended.

I run several old consumer grade laptops as light servers, permanently closed, and they've been perfectly fine for years.

[–] adarza@piefed.ca 7 points 6 days ago (2 children)

i run several mass-market consumer model laptops with the lid closed. as long as the vents aren't obstructed, not a problem here. mine are all lower-wattage soc with integrated gpu, though; the most demanding one that's on 24/7 is still only ~ 15w cpu at 100% load, and it never runs at that; it rarely even throttles up from the 800mhz it idles at. i stand them on end so the vents are clear, and use some lego to enforce spacing between 'em.

[–] bootstrap@lemmy.dbzer0.com 4 points 6 days ago

Lego, the original 3D printer

[–] irmadlad@lemmy.world 1 points 6 days ago

and use some lego to enforce spacing between 'em.

Brilliant! You like things straight and even...so do I :) When I read that I said. this is a kindred spirit. I have two door wedges (stops?) up under one of my keyboards because it sits behind yet another keyboard, and the factory height wasn't sufficient.