When I'm running on battery power, I'd like to have IdleAction=suspend-then-hibernate.

However, if mains power is connected, I'd like to have IdleAction=ignore.

How would I go about setting this up?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.