Linux: How to use energy better in general by fine-tuning laptop battery?
from Floopquist@lemmy.org to linux@lemmy.ml on 14 May 22:06
https://lemmy.org/post/490657

Hello,

I just found out about TLP - a module to download with apt, which is a good utility for maintaining the laptop battery. You can set a minimum charge value, and a maximum charge value. But it is not sufficient for my use case. My question is - is there any utility I can use to discharge the battery WHILE connected to AC?

The reason behind this is: I want to use the solar power during the day to charge up the battery to 80 or 90% and then discharge the battery in the evening to 15-20%. Afterwards use AC power again. The solar energy during mid-day is cheaper and available in abundance.

On a big level with many computers this could make a good impact on the energy network, or am I wrong?

#linux

threaded - newest

nanook@friendica.eskimo.com on 14 May 22:18 next collapse

@Floopquist I don't think that you can do that without altering the firmware on the PD chip.

LumpyPancakes@lemm.ee on 14 May 22:32 next collapse

Sounds like a smart socket might do what you need, externally, with some coding.

Floopquist@lemmy.org on 15 May 10:28 collapse

Thank you, I like the idea. Will research in this way.

mlfh@lemmy.sdf.org on 14 May 23:26 next collapse

Some laptop battery firmware allows you to force discharge even when connected to AC, and if your laptop can use the tlp recalibrate or tlp discharge commands then yours is supported.

I use this to power my thinkpad servers off of their own batteries during a power outage, to reduce load on my UPS. Great feature.

pastermil@sh.itjust.works on 15 May 03:13 collapse

Interesting setup. How would you tell your Thinkpads if there’s a power outage?

mlfh@lemmy.sdf.org on 15 May 15:10 collapse

The ups has data output to my firewall/router via usb, which the baremetal servers all connect to via apcupsd. When the ups loses or regains AC power, it broadcasts a message to all of them and they’re each scripted to act accordingly: laptops run on their own batteries, vms migrate over to laptops, non-vital hardware shuts down, etc.

Intheflsun@lemmy.world on 15 May 01:36 next collapse

I’ve got a 2021 Dell laptop. In uefi, you can set charge times and type of charge, 50%,80%, full, and smart. I think it’s in like 1/2 hour blocks by day. By that I mean on (day of week) from 9:30am to 6:00pm charge full, different day may have different settings. .

nanook@friendica.eskimo.com on 15 May 01:50 collapse

@Intheflsun @Floopquist What I meant is that I do not think you can have it discharge the battery when AC is present without altering the PD chips firmware.

IrritableOcelot@beehaw.org on 15 May 03:37 next collapse

Well, you will have excess solar power during the day, so just keep it plugged in to the solar while solar is available. Then, just unplug the laptop in the evening until you get to 15-20%.

Trying to force the laptop to discharge while plugged in is colossally more trouble than it’s worth.

Floopquist@lemmy.org on 15 May 10:27 collapse

Unplugging by hand is a bad solution. I want to have this even when I am not at home, it has to be automated.

mexicancartel@lemmy.dbzer0.com on 15 May 04:42 next collapse

I don’t know but is that power actually worth more than battery cycles due to discharging and recharging?

Jumuta@sh.itjust.works on 15 May 05:52 collapse

modern laptops are like 8w right? it’s probably a few orders of magnitude lower than the power consumption of your appliances

Floopquist@lemmy.org on 15 May 10:22 collapse

The converter says “Output: 65W” So it would be something, and a good place to start as the battery is there anyway and is plugged in all the time too, anyway.

MangoPenguin@lemmy.blahaj.zone on 15 May 13:07 collapse

That’s the absolute maximum output, a typical laptop uses more like 2-6W while running.

Plus cycling the battery like that will wear it out faster, and they’re generally only rated for 500 or so cycles. The replacement cost would likely easily over come any savings.

Floopquist@lemmy.org on 15 May 23:36 collapse

I think most laptops get thrown away before the battery is dead. In my case, I could just throw the battery to the recycling yard and go on without battery. As I already told, the laptop is plugged in 24/7.

Jumuta@sh.itjust.works on 17 May 16:56 collapse

i think you’d save more money/environment by selling the battery right now to someone that will use it, there’s quite a lot of demand for new first party batteries