-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
smbios-battery-ctl --get-charging-cfg on Dell Inspiron 7737 #141
Comments
I ran in the old version of python and some of the errors are fixed. $ sudo python3.6 /usr/sbin/smbios-token-ctl --dump-tokens-csv However, it is not possible to change the values of the tokens. $ sudo python3.6 /usr/sbin/smbios-token-ctl --import-token-settings-csv --token-csv=./smbtable.csvIgnoring parsing error in CSV file:Traceback (most recent call last):
|
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(<libsmbios_c.smbios_token._TokenTable object at 0x7fbac1efe2c0>, 1, )
ENTER _errorOnNullPtrFN(<libsmbios_c.smbios_token.LP__TokenTable object at 0x7fbac1efe340>, <_FuncPtr object at 0x7fbac1d5d900>, (1,), )
RAN CTYPES FUNCTION: token_table_factory
LEAVE _errorOnNullPtrFN --> <libsmbios_c.smbios_token.LP__TokenTable object at 0x7fbac1efe340>
LEAVE init --> None
LEAVE TokenTable --> <libsmbios_c.smbios_token._TokenTable object at 0x7fbac1efe2c0>
ENTER getitem(<libsmbios_c.smbios_token._TokenTable object at 0x7fbac1efe2c0>, 835, )
LEAVE getitem --> <libsmbios_c.Token ID 0x0343>
ENTER activate(<libsmbios_c.Token ID 0x0343>, )
ENTER _errorOnNegativeFN(0, <_FuncPtr object at 0x7fbac1d5df00>, (<libsmbios_c.Token ID 0x0343>,), )
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(<libsmbios_c.smbios_token._TokenTable object at 0x7f37408fe2c0>, 1, )
ENTER _errorOnNullPtrFN(<libsmbios_c.smbios_token.LP__TokenTable object at 0x7f37408fe340>, <_FuncPtr object at 0x7f374075d900>, (1,), )
RAN CTYPES FUNCTION: token_table_factory
LEAVE _errorOnNullPtrFN --> <libsmbios_c.smbios_token.LP__TokenTable object at 0x7f37408fe340>
LEAVE init --> None
LEAVE TokenTable --> <libsmbios_c.smbios_token._TokenTable object at 0x7f37408fe2c0>
ENTER getitem(<libsmbios_c.smbios_token._TokenTable object at 0x7f37408fe2c0>, 833, )
LEAVE getitem --> <libsmbios_c.Token ID 0x0341>
ENTER isActive(<libsmbios_c.Token ID 0x0341>, )
ENTER _errorOnNegativeFN(0, <_FuncPtr object at 0x7f374075de40>, (<libsmbios_c.Token ID 0x0341>,), )
RAN CTYPES FUNCTION: token_obj_is_active
LEAVE _errorOnNegativeFN --> 0
LEAVE isActive --> 0
ENTER getitem(<libsmbios_c.smbios_token._TokenTable object at 0x7f37408fe2c0>, 834, )
LEAVE getitem --> <libsmbios_c.Token ID 0x0342>
ENTER isActive(<libsmbios_c.Token ID 0x0342>, )
ENTER _errorOnNegativeFN(1, <_FuncPtr object at 0x7f374075de40>, (<libsmbios_c.Token ID 0x0342>,), )
RAN CTYPES FUNCTION: token_obj_is_active
LEAVE _errorOnNegativeFN --> 1
LEAVE isActive --> 1
ENTER getitem(<libsmbios_c.smbios_token._TokenTable object at 0x7f37408fe2c0>, 835, )
LEAVE getitem --> <libsmbios_c.Token ID 0x0343>
ENTER isActive(<libsmbios_c.Token ID 0x0343>, )
ENTER _errorOnNegativeFN(0, <_FuncPtr object at 0x7f374075de40>, (<libsmbios_c.Token ID 0x0343>,), )
RAN CTYPES FUNCTION: token_obj_is_active
LEAVE _errorOnNegativeFN --> 0
LEAVE isActive --> 0
ENTER getitem(<libsmbios_c.smbios_token._TokenTable object at 0x7f37408fe2c0>, 838, )
LEAVE getitem --> <libsmbios_c.Token ID 0x0346>
ENTER isActive(<libsmbios_c.Token ID 0x0346>, )
ENTER _errorOnNegativeFN(0, <_FuncPtr object at 0x7f374075de40>, (<libsmbios_c.Token ID 0x0346>,), )
RAN CTYPES FUNCTION: token_obj_is_active
LEAVE _errorOnNegativeFN --> 0
LEAVE isActive --> 0
ENTER getitem(<libsmbios_c.smbios_token._TokenTable object at 0x7f37408fe2c0>, 839, )
LEAVE getitem --> <libsmbios_c.Token ID 0x0347>
ENTER isActive(<libsmbios_c.Token ID 0x0347>, )
ENTER _errorOnNegativeFN(1, <_FuncPtr object at 0x7f374075de40>, (<libsmbios_c.Token ID 0x0347>,), )
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. :(
The text was updated successfully, but these errors were encountered: