Bug 209273

Summary: Please support Dell battery charge threshold configuration
Product: Drivers Reporter: Oded Arbel (oded)
Component: Platform_x86Assignee: drivers_platform_x86 (drivers_platform_x86)
Status: NEW ---    
Severity: enhancement CC: kernel
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 5.4.0 Subsystem:
Regression: No Bisected commit-id:

Description Oded Arbel 2020-09-15 06:09:34 UTC
Dell laptops support setting the battery charge start and stop thresholds, similar to support that is offered for other laptops through the `/sys/class/power_supply/BAT*/charge_*_threshold` API, but requires using Dell's Command Configure toolkit ( https://www.dell.com/support/manuals/il/en/ilbsdt1/command-configure-v4.2/dcc_ig_4.2/introduction-to-dell-command-configure-42 ).

For example, one can set the battery charging start and stop threshold using the command `/opt/dell/dcc/cctk --primarybatterycfg=custom:50-80` (there is also a default "standard" profile that can be used instead of "custom").

As far as I understand the Dell tool is using SMBIOS to set the the charge threshold. It would be great if the kernel can support Dell devices in a similar way it supports other devices - this would allow standard system tools such as the new Plasma battery configuration feature ( https://invent.kde.org/plasma/powerdevil/-/merge_requests/5 ).