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

Automatically change mode to auto on power cord connection #505

Open
nasrally opened this issue Jul 4, 2020 · 5 comments
Open

Automatically change mode to auto on power cord connection #505

nasrally opened this issue Jul 4, 2020 · 5 comments

Comments

@nasrally
Copy link

nasrally commented Jul 4, 2020

Is your feature request related to a problem? Please describe.

Sometimes when my laptop is working off battery I need to set it to AC mode in order to get higher performance, but occasionally I forget to switch it back to auto, and because of that the system is running in full performance mode the whole time draing battery very fast.

Describe the solution you'd like

I'd like to have a config option that will allow tlp to automatically switch to auto mode whenever the power cable is connected no matter if it was in manual mode

Describe alternatives you've considered

None, couldn't find anything like this in tlp config.

Additional context

OS: Debian Testing; TLP version: 1.3.1

@linrunner
Copy link
Owner

Hi,

I can understand your use case very well, on the other hand "manual mode" implies that it does not change automatically.

I let this open for comments.

@phrxmd
Copy link

phrxmd commented Nov 6, 2020

Maybe there could be a --temporary flag to the tlp ac and tlp bat commands, to indicate that manual mode is temporary and that upon the next power source change it should reenter auto mode.

@mightyllama89
Copy link
Contributor

mightyllama89 commented Aug 20, 2021

I would suggest maybe a new "Performance" power mode. This mode could be used when you want everything cranked to 11. Even on AC I don't push everything to max because of the unnecessary heat, noise, contribution to rising sea levels, etc.. This mode could be started by something like tlp perfand only be active until the next power state change. I can discuss further if you are interested.

@LinuxOnTheDesktop
Copy link

+1 for the --temporary flag idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants
@linrunner @mightyllama89 @phrxmd @LinuxOnTheDesktop @nasrally and others