Skip to content
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

Battery: "Plugged" status for TLP settings #1769

Merged
merged 1 commit into from
Nov 4, 2022
Merged

Conversation

ericliou
Copy link
Contributor

@ericliou ericliou commented Nov 4, 2022

When using TLP for threshold, "Not charging" is still being shown, instead of "Plugged".
I don't think it was fixed as mentioned in #1560 (comment)

This should cover:
#253
#1560

Side note: my adapter does not have /status, so current_status on L477 will always be empty. This logic is also present at two other places, so I'm not sure if I understand it.I can open a separate issue if it's relevant (Lenovo laptop, Arch).

std::getline(std::ifstream(adapter_ / "status"), current_status);

@Alexays Alexays merged commit bd56780 into Alexays:master Nov 4, 2022
@Alexays
Copy link
Owner

Alexays commented Nov 4, 2022

Thanks, and yes go open another issue :)

rnestler added a commit to rnestler/dotfiles that referenced this pull request Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants