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

Card always on on resume from sleep/hibernate #27

Closed
vcalv opened this issue Mar 7, 2023 · 1 comment · Fixed by #28
Closed

Card always on on resume from sleep/hibernate #27

vcalv opened this issue Mar 7, 2023 · 1 comment · Fixed by #28

Comments

@vcalv
Copy link
Contributor

vcalv commented Mar 7, 2023

If I switch the card off with nvx off and then suspend the laptop, after resume nvx status shows the card as on.

Video card state should be persisted.

Save the state before sleep and set that same state after resume.

systemd services should be able to achieve this.

Thank you.

@vcalv
Copy link
Contributor Author

vcalv commented Mar 7, 2023

A decent pointer for a solution is this page that mentions that scripts in /usr/lib/systemd/system-sleep are run before sleep and on resume, getting that information on the argument.

With this it should be trivial to save the state on suspend and setting it on resume.

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 a pull request may close this issue.

1 participant