Dell

Capability

  • 3 Presets**: Full Capacity, Balance, and Maximum Life Span.
  • 2 Additional Modes**: Express and Adaptive.
  • Thresholds**: Preset modes have default threshold values set at 100/95%, 80/75%, and 60/55%. Customization options are available for each preset:
  • End threshold values can be set between 100-80%, 85-65%, and 85-55%.
  • Start threshold values can be set between 95-75%, 80-60%, and 80-50%.
  • Note: The difference between end and start threshold values must be at least 5%.

Using Express mode may accelerate battery wear.

Dependencies

  • There are two available packages for Dell laptop to control charging threshold / mode. Libsmbios and Dell command configure (cctk)

libsmbios:

  • An open-source module developed for Dell laptops. available in most distro’s package managers.
  • Available with your distro’s package manager.
  • The extension will use the smbios-battery-ctl module from libsmbios to change threshold/mode.
  • More information check the link below:
    https://github.com/dell/libsmbios

Dell command configure:

  • Some Dell models work better with libsmbios, while others with Dell Command Configure.
  • Users should choose and test the package that works best for their model.
  • If both packages are installed, the extension will prompt the user to select the preferred package.

Detection Mechanism

libsmbios

The extension checks if smbios-battery-ctl from libsmbios is installed at
/usr/sbin/smbios-battery-ctl.

Dell Command Configure

The extension checks for the installation of Dell Command Center at
/opt/dell/dcc/cctk.

  • If both smbios-battery-ctl and cctk are found, an option to choose the preferred package is presented.

Testing charging threshold using command-line

libsmbios

Require root privileges

Use sudo or pkexec to run command as root
It is possible to set charging mode or threshold using comands in terminal.

Set mode to Express mode
pkexec smbios-battery-ctl --set-charging-mode=express

Set to Adaptive
pkexec smbios-battery-ctl --set-charging-mode=adaptive

Set custom threshold.
Example below shows setting start threshold to 55% and end threshold to 60%
pkexec smbios-battery-ctl --set-charging-mode=custom
pkexec smbios-battery-ctl --set-custom-charge-interval=55 60

Read current charging mode or threshold the laptop is using
pkexec smbios-battery-ctl --get-charging-cfg

Dell Command Configure

Require root privileges

Use sudo or pkexec to run command as root
It is possible to set charging mode or threshold using one or two command in terminal.

Set mode to Express mode
pkexec /opt/dell/dcc/cctk --PrimaryBattChargeCfg=Express

Set to Adaptive
pkexec /opt/dell/dcc/cctk --PrimaryBattChargeCfg=Adaptive

Set custom threshold.
Example below shows setting start threshold to 55% and end threshold to 60%
pkexec /opt/dell/dcc/cctk --PrimaryBattChargeCfg=Custom:55-60

An example of changing mode or threshold with Bios Password Validation by adding --ValSetupPwd= followed by the bios password and the command to set mode or threshold
pkexec /opt/dell/dcc/cctk --ValSetupPwd=PASSWORD --PrimaryBattChargeCfg=Express

Read current charging mode or threshold the laptop is using
pkexec /opt/dell/dcc/cctk --PrimaryBattChargeCfg


Condition for applying threshold

  • Accepted end threshold values : 55 or 100
  • Accepted start threshold values : 50 or 95
  • end threshold values > start threshold values + 5

Quick Settings


Gnome 43 and above Gnome 42

Extension Preferences



Validate using Bios Password (Dell Command Configure Only)

Dell Command Configure

  • Enable BIOS password validation in the Extension Preferences under the Device tab.
  • When Need bios password to change mode/threshold is enabled, and option will presented to enter bios password, which is then stored securely in Gnome Keyring.
  • Disabling the feature removes the stored BIOS password from Gnome keyring.

If you decide to uninstall this extension, it’s recommended to disable the BIOS password feature to remove the stored password from Gnome Keyring.