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

feat(udev): add udev rule for promptless charing threshold changes #174

Merged
merged 2 commits into from
Dec 21, 2023

Conversation

ispanos
Copy link
Contributor

@ispanos ispanos commented Dec 21, 2023

Allows user to modify the battery charge thresholds without password prompt. The rule was copied from marcosdalvarez/thinkpad-battery-threshold-extension. Works only on ThinkPads.

…hinkPads only)

Allows user to modify the battery charge thresholds without password prompt. The rule was copied from [marcosdalvarez/thinkpad-battery-threshold-extension](https://gitlab.com/marcosdalvarez/thinkpad-battery-threshold-extension).
@KyleGospo
Copy link
Member

Looks good to me, are there any security implications of regular users being able to do this? Should we limit this to the wheel group?

@ispanos
Copy link
Contributor Author

ispanos commented Dec 21, 2023

@KyleGospo I suppose it could be used maliciously. I haven't tried it, but someone could potentially use it to render a laptop temporarily unusable without a charger, i.e. setting a very low charging threshold.
Setting a very low charging threshold (1-5), if it is not noticed soon could cause the battery to degrade rapidly.

@KyleGospo
Copy link
Member

I think that's fair, if you're up for it let's just add a restriction so this only works for wheel

Copy link
Contributor Author

@ispanos ispanos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allow only wheel to change Thinkpad charging thresholds. Did I do it properly?

@KyleGospo KyleGospo enabled auto-merge December 21, 2023 22:17
@KyleGospo KyleGospo added this pull request to the merge queue Dec 21, 2023
Merged via the queue into ublue-os:main with commit e176206 Dec 21, 2023
2 checks passed
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.

3 participants