Unsolved
This post is more than 5 years old
1 Rookie
•
14 Posts
4
56963
July 4th, 2017 15:00
Setting the battery charge level within Linux
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%.


remixedcatmusic
2 Intern
•
41 Posts
0
February 8th, 2024 02:44
@Manjaro22211 will that work on inspiron 3525 and latitude 5400?
KPT1
1 Rookie
•
2 Posts
0
February 29th, 2024 11:11
@Manjaro22211 That actually works on the latest Manjaro here
KPT1
1 Rookie
•
2 Posts
0
February 29th, 2024 11:12
Installing dell-command-configure and running :
sudo cctk --PrimaryBattChargeCfg=Custom,50,80
Does work now here.
Mister Curious
1 Rookie
•
1 Message
0
April 28th, 2024 13:27
Hello there,
i see so many people struggling with this issue, and decided to post my feedback.
I actually run debian on dell Latitude 7290, and i try to limit the charge of my battery (say from 50 to 85%)
> Lauching cctk binary seems to work, but the tool tells me i cannot set custom charging mode :
~# cctk --help PrimaryBattChargeCfg
PrimaryBattChargeCfg: Configures the primary battery charging. ....
Arguments: Standard+ | Express+ | PrimAcUse | Adaptive | Custom Note : + Indicates the arguments supported in the current machine.
~# cctk --PrimaryBattChargeCfg=Custom:50-85
Error in Setting the Value.
> So i ended up using package "smbios-utils"
~# smbios-battery-ctl --set-charging-mode=custom
~# smbios-battery-ctl --set-custom-charge-interval=50 85
--------
System: Debian 12 stable
Machine : Dell Latitude 7290 2nd hand (i doubt the battery is a genuine DELL one, maybe there is some battery-firmware-sorcery in place)
AK17
1 Rookie
•
1 Message
•
2 Points
0
January 19th, 2025 13:37
I have a Dell Latitude 7480 and the BIOS trick worked for me.
I'm using a freshly installed Zorin OS 17.2 Core version.
(edited)