-
-
Notifications
You must be signed in to change notification settings - Fork 260
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]: Action trigger at battery percentage #564
Comments
This was discussed before, but can't find the issue now. Anyway, triggering Actions at certain battery percentage is not planned, because it can't be implemented reliably: for example actions won't run when laptop is sleeping or off (naturally). I see you mention Conservation mode limits - long story short if the 60% limit is too low for you, it kind of indicates that you use your laptop on battery, so why do you use conservation mode? (Previously discussed here: #20 (comment)) The alternative you presented is already implemented: there are actions for plugging in AC adapter. Lastly the idea with adding "Low battery" trigger is good, let me know if you'd be interested in that. |
I understand the drawbacks and for me it would still be useful. However I agree that it might not make sense for most users, unfortunately. I use my laptop mostly on AC power but I would like to have it ready to go when I need it. At 60 % the battery just doesn't last long enough to be useful and I feel like 80 or 90 % would be a good compromise, as 90 % already decreases wear significantly compared to 100 %. With the alternative, I was suggesting still making it dependent on battery percentage, but instead of differentiating between rising and falling, differentiating between battery and AC power, which would be the same thing in practice. Personally I would not be that interested in a low battery trigger, because I already have set the trigger for AC power disconnection to take some power saving measures. |
OK, I will keep the issue open but on hold. I need to think if I can fit this into the current architecture without making major changes. |
I agree with @Xerionius I've wanted a feature like this for a while. Being able to trigger actions at certain battery %ages. A disclaimer that it won't work reliably with the machine sleeping would be good so people understand the limitations of the feature. |
Looking forward to use this too. |
I am interested in implementing the low battery trigger. I took a look into it and it would take me some time to go through the code base and understand what's happening and how I can integrate a listener for the event you linked. If you have time to sketch what changes have to be made I would give it a try. |
After the introduction of LLT CLI, I was able to code a fairly simple python script to achieve this, I will attach it to this comment
|
Version
2.9.1
OS
Windows 11
Device
Legion 5 Pro 16ACH
Is your feature request related to a problem?
No
How would you like the problem to be solved?
Having a certain battery percentage as a trigger for actions would be great. You should be able to specify at which battery percentage the action should trigger and whether it should trigger on rising or falling battery level.
This way you could enable conservation mode on a certain battery percentage to get around the default limit of 60 %. And you could change the refresh rate, resolution and brightness when the battery gets low.
What alternatives have you considered?
Instead of differentiating between rising and falling battery levels, it could also differentiate between "plugged in" and "not plugged in".
Additional information
No response
The text was updated successfully, but these errors were encountered: