dell / dell/libsmbios

Dell Inspiron 16 5645: battery charge limit does not work

Open
#152 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
221
Forks
42
PR merge metrics
No merged PRs in 30d

Description

Hi,
I am new to this tool that I found while looking for a way to limit battery charge. I have ubuntu 24.04 LTS with linux kernel 6.11.

```
sudo modprobe dell-smbios-wmi
modprobe: FATAL: Module dell-smbios-wmi not found in directory /lib/modules/6.11.0-29-generic

sudo smbios-sys-info-lite
Libsmbios: 2.4.3
System ID: 0x0C9E
Asset Tag: Not Specified
Product Name: Inspiron 16 5645
BIOS Version: 1.11.0
Vendor: Dell Inc.
Is Dell: 1
OEM String 1: Dell System
OEM String 2: 1[0C9E]
OEM String 5: 5[0000]
OEM String 6: 6[D0, D4, D8, DA, DE]
OEM String 10: 10[1.11.0]
OEM String 12: 12[www.dell.com]
OEM String 13: 13[P131F002]
OEM String 14: 14[2]
OEM String 15: 15[0]

sudo smbios-battery-ctl --battery-charge
Libsmbios version : 2.4.3
smbios-battery-ctl version : 2.4.3
Info: Unable to read Current Battery Charging State on this system

sudo smbios-battery-ctl --set-custom-charge-interval 75 80
Custom charge interval has been set to (75, 80)

sudo smbios-battery-ctl --set-charging-mode=primarily_ac
Charging mode has been set to: primarily_ac

sudo smbios-battery-ctl --get-charging-cfg
Traceback (most recent call last):
File "/usr/sbin/smbios-battery-ctl", line 275, in
sys.exit( main() )
^^^^^^
File "/usr/sbin/smbios-battery-ctl", line 241, in main
print_primary_battery_cfg()
File "/usr/sbin/smbios-battery-ctl", line 190, in print_primary_battery_cfg
mode = get_charging_mode()
^^^^^^^^^^^^^^^^^^^
File "/usr/sbin/smbios-battery-ctl", line 143, in get_charging_mode
raise RunTimeBatteryErr(
RunTimeBatteryErr: Multiple charging modes enabled: primarily_ac and adaptive enabled at the same time

```
Thank you

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.