7

I'm running on UPS power and would like to prevent the laptop's battery from charging, to increase the amount of power available to other devices. Is there a way to do this?

update

The machine is a Dell Latitude D400. If people want more details, just ask.

Also, I'm gathering that I need to explain my desired setup a little better. I've gotten a bunch of suggestions about taking the battery out. I'm not sure if people are suggesting to take the battery out while the machine is running — this, as I understand, is not a good idea with most laptops — or to just remove the battery altogether.

The latter option is not optimal, because ideally I'd like to use the 30-60 minutes of power in the laptop battery and then switch over to UPS power. The details of the switch-over may constitute a separate question, but if I can't find a way to keep the laptop battery from charging, then removing the battery from the machine altogether may be the best way to do this. I'm not sure yet if this machine will run without a battery, but I'll check that out.

Other than the laptop, the UPS is just supporting a cable modem and router and a USB hub.

Again in the idealized version of this setup, all the power management changes would be automated, i.e. not require replugging anything or pressing Fn-keys. I'd like the machine to start using laptop battery power when apcupsd indicates that the UPS A/C is out, and then start using UPS power, but not charging the battery, when the battery is almost depleted.

intuited
  • 7,213

2 Answers2

1

At least some Dell laptops have a key that you can hit to disable battery charging. I think it was Fn-F2 or so. The key has a little blue battery icon on it.

psusi
  • 37,551
  • Hmmm... yes, I do have one of those. Guess I'll read the fricking manual. Though this is still not really what I'm looking for, unless there's a way to fake a Fn-key keypress from a script. I was really hoping for something simple like echo no > /sys/blah/blahblah/powerfoo/use_battery, but I guess no shinies on that one. – intuited Jan 13 '11 at 08:12
  • Nope. Theoretically it is possible but vendors don't implement the hardware and ACPI bios support properly. – psusi Jan 13 '11 at 18:14
  • 1
    in any case, the battery button —Fn-F3 in my case— is just meant to display the Dell™ QuickSet Battery Meter. – intuited Jan 14 '11 at 05:58
  • @intuited I thought it was probably for something like that in Windows, which is why I was surprised to find that when I hit it in Ubuntu, the battery refused to charge. I thought something was wrong at first until I tried hitting that key on a whim and it started charging again. – psusi Jan 14 '11 at 14:32
  • What model do you have? I was getting a HUD via gnome-power-manager displaying various informations. I've since killed gnome-power-manager because of its memory leak issues, and now nothing seems to happen. Admittedly I haven't actually tried using it to enable/disable battery charging. My last comment was based on the info in the Users Guide. – intuited Jan 14 '11 at 16:52
1

Given that manual intervention on your part would be required, I'd suggest a low tech workable solution. Plug the laptop into a switchable power strip and plug the power strip into the UPS. Switching off the power strip will stop your laptop from charging and the laptop battery takes over powering the laptop without missing a beat. The UPS will now have more available power for your network components.

fragos
  • 3,503
  • This isn't what I want, though. I want the laptop to use the UPS battery power after its own battery supply has been depleted. – intuited Sep 26 '11 at 00:19
  • What you want to do makes sense but to my understanding laptops are designed to favor and use AC power if present but the control of the AC power is a user manual process. Effectively your laptops battery is a backup for when AC power isn't present. – fragos Sep 26 '11 at 23:21