dell / dell/libsmbios

smbios-battery-ctl can't change settings when a admin password is set

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

Description

Even with the --password option, the program returns sucessfully, but changes are not applied.
This is fedora 34 on a Dell XPS 13.
```
% sudo smbios-sys-info :(
Libsmbios version: 2.4.3
Product Name: XPS 13 9380
Vendor: Dell Inc.
BIOS Version: 1.15.0
[......]
```

For example, I'm trying to set the charging mode to standard. It works if no password is set in the BIOS setup program.

```
% sudo smbios-battery-ctl --get-charging-cfg
Charging mode: primarily_ac
flo@floprimesign ~
% sudo smbios-battery-ctl --set-charging-mode=standard --trace --password=${PASSWD}
ENTER TokenTable()
ENTER __init__(, 1, )
ENTER _errorOnNullPtrFN(, <_FuncPtr object at 0x7f053f3257c0>, (1,), )
RAN CTYPES FUNCTION: token_table_factory
LEAVE _errorOnNullPtrFN -->

LEAVE __init__ --> None

LEAVE TokenTable -->

ENTER __getitem__(, 838, )
LEAVE __getitem__ -->

ENTER activate(, )
ENTER _errorOnNegativeFN(0, <_FuncPtr object at 0x7f053f325dc0>, (,), )
RAN CTYPES FUNCTION: token_obj_activate
LEAVE _errorOnNegativeFN --> 0

LEAVE activate --> 0

Charging mode has been set to: standard

% sudo smbios-battery-ctl --get-charging-cfg
Charging mode: primarily_ac
```

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.