In Windows you can use the "Dell Power Manager" app or whatever it's called to set specific charging behavior. For example, I set it to only charge up to 80%, since I'm usually using the thing plugged in and I'll get a lot more life, long term, out of my battery if it's not sitting at 100% all the time.
There is a similar functionality in the BIOS.
Now these settings "work" when I'm booted into Ubuntu 16.04, in that the limits are respected but I would also like to change them from within Linux. The main use case is that *sometimes* I know I'm about the take the machine on the road so I'd like to charge up to 100%. Having to shut down everything and boot into the BIOS to do this is a pretty big pain so in practice I just live with my 80%.
The hard way still remains. I have a 3 1/2 year old Lenovo Y50 which controls an external switch to maintain the battery between 30% and 60%. I checked earlier today and the battery is at 65% capacity which seems decent for a laptop that has been plugged in for most of the 3 1/2 years. I can provide additional details if that would be helpful.
I spent a few hours today, exploring all the options including Dell Command Configure and updating my BIOS, changing the BIOS settings, etc. I have definitively concluded that my Dell Laptop (E6410) does not and will never have this BIOS setting, therefore the Dell Command Configure utility cannot set this setting (because it is a BIOS setting command line utility). Even though the documentation for the Dell Command Configure lists all possible settings, not all settings are available for every Laptop.
Dell Command Configure is available in the Ubuntu repositories (and therefore I installed it with synaptic package manager in Linux Mint). Running it from path:
/opt/dell/dcc
Like so, lists all available settings for your BIOS on your laptop:
sudo ./cctk
It is a generic Dell BIOS command line utility that only lets you set the settings that are actually in your BIOS on your laptop. If you upgrade your BIOS and new settings are added in that BIOS version, the same settings will be available to set through Linux / windows from Dell Command Configure.
I now believe that the charge controller is built into your laptop hardware (motherboard) and if the BIOS setting is not available to configure the max charge and min charge values, then there is no way for (Linux OS / Software / BIOS) to control these settings. The max charge / min charge settings must be a feature of newer chargers / motherboards and their corresponding BIOS ROMs. The only way to get the ability to control the charge is to upgrade the motherboard with one that has this feature built into it (and the BIOS).
The easiest way to change this setting if you have it in your BIOS is to go into the BIOS and change it there. If the Command Configure can't change the values then, maybe your BIOS is password protected? The read-only values are listed with an asterisk (*) when you run it with no parameters.
Is there any way to tell the battery not to charge?
When powering from an external USB battery pack, I want to power the laptop only, not to charge its batteries. That's easy to do on thinkpad, but with dell, all I have is /opt/dell/dcc/cctk --PrimaryBattChargeCfg=Custom:50-55 but this only works if the battery is still over 55%. Is there anything better, or that's the best there is?
n03i
5 Posts
42109
0
Posted October 17th, 2018 06:00
Hello,
yes, you are right. Probably this option is not possible with my model of XPS. It is not possible to set it in the BIOS.
I have seen in my research, that there was even a bug fix about the battery live. But it was only for newer models and my CPU was not affected.
Thanks for your advice.
Okay, so it seems, that there is no easy solution to save life of the battery of my Dell XPS and Ubuntu operating system.