smbios-battery-ctl --get-charging-cfg on Dell Inspiron 7737
- Dominant language
- C
- Stars
- 221
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
It looks like I have the latest version of the utility.
$ sudo smbios-sys-info
Libsmbios version: 2.4.3
Product Name: Inspiron 7737
Vendor: Dell Inc.
BIOS Version: A10
....
But the query returns strange battery status
$ 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(
__main__.RunTimeBatteryErr: Multiple charging modes enabled: adaptive and express enabled at the same time
Trying to change the charging status does not change anything.
`$ sudo smbios-battery-ctl --trace --set-charging-mode custom
ENTER TokenTable()
ENTER __init__(, 1, )
ENTER _errorOnNullPtrFN(, <_FuncPtr object at 0x7fbac1d5d900>, (1,), )
RAN CTYPES FUNCTION: token_table_factory
LEAVE _errorOnNullPtrFN -->
LEAVE __init__ --> None
LEAVE TokenTable -->
ENTER __getitem__(, 835, )
LEAVE __getitem__ -->
ENTER activate(, )
ENTER _errorOnNegativeFN(0, <_FuncPtr object at 0x7fbac1d5df00>, (,), )
RAN CTYPES FUNCTION: token_obj_activate
LEAVE _errorOnNegativeFN --> 0
LEAVE activate --> 0
Charging mode has been set to: custom
`
`$ sudo smbios-battery-ctl --trace --get-charging-cfg
ENTER TokenTable()
ENTER __init__(, 1, )
ENTER _errorOnNullPtrFN(, <_FuncPtr object at 0x7f374075d900>, (1,), )
RAN CTYPES FUNCTION: token_table_factory
LEAVE _errorOnNullPtrFN -->
LEAVE __init__ --> None
LEAVE TokenTable -->
ENTER __getitem__(, 833, )
LEAVE __getitem__ -->
ENTER isActive(, )
ENTER _errorOnNegativeFN(0, <_FuncPtr object at 0x7f374075de40>, (,), )
RAN CTYPES FUNCTION: token_obj_is_active
LEAVE _errorOnNegativeFN --> 0
LEAVE isActive --> 0
ENTER __getitem__(, 834, )
LEAVE __getitem__ -->
ENTER isActive(, )
ENTER _errorOnNegativeFN(1, <_FuncPtr object at 0x7f374075de40>, (,), )
RAN CTYPES FUNCTION: token_obj_is_active
LEAVE _errorOnNegativeFN --> 1
LEAVE isActive --> 1
ENTER __getitem__(, 835, )
LEAVE __getitem__ -->
ENTER isActive(, )
ENTER _errorOnNegativeFN(0, <_FuncPtr object at 0x7f374075de40>, (,), )
RAN CTYPES FUNCTION: token_obj_is_active
LEAVE _errorOnNegativeFN --> 0
LEAVE isActive --> 0
ENTER __getitem__(, 838, )
LEAVE __getitem__ -->
ENTER isActive(, )
ENTER _errorOnNegativeFN(0, <_FuncPtr object at 0x7f374075de40>, (,), )
RAN CTYPES FUNCTION: token_obj_is_active
LEAVE _errorOnNegativeFN --> 0
LEAVE isActive --> 0
ENTER __getitem__(, 839, )
LEAVE __getitem__ -->
ENTER isActive(, )
ENTER _errorOnNegativeFN(1, <_FuncPtr object at 0x7f374075de40>, (,), )
RAN CTYPES FUNCTION: token_obj_is_active
LEAVE _errorOnNegativeFN --> 1
LEAVE isActive --> 1
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(
__main__.RunTimeBatteryErr: Multiple charging modes enabled: adaptive and express enabled at the same time
`
I couldn't find a similar problem by searching. I ask for your help. I am changing the third battery in the laptop. Without a storage mode, they do not live long. :(
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.