0

I got to the point of

@echo off

powercfg /S SCHEME_BALANCED

powercfg /SETACVALUEINDEX SCHEME_BALANCED SUB_BUTTONS LIDACTION 0

powercfg /SETDCVALUEINDEX SCHEME_BALANCED SUB_BUTTONS LIDACTION 0

When I run this, the power options GUI doesn't change until i refresh it, and even if I do it doesn't always work. The GUI says it won't sleep when I close the lid but it does. Any way to fix this or a different way to do the same thing?

  • Possible duplicate of Change what closing the lid does, from the commandline? Would the answers there be of any benefit? – Moses Oct 22 '18 at 21:35
  • 1
    Yes, I did use that and the code I have above is what I got from it. It didn't work though. I have, however fixed it, by adding powercfg /S SCHEME_BALANCED to the end again. I noticed that running it twice worked so I tried to do that and it worked. No idea why – relativelygood Oct 24 '18 at 19:36
  • Interesting. In that case, I retracted my close vote. Your comment has some valuable info that solved the issue. Feel free to add that as an answer to your own question, that's perfectly allowed. Welcome to Superuser! – Moses Oct 24 '18 at 21:40
0

I have fixed it by adding powercfg /S SCHEME_BALANCED to the end again. I noticed that running it twice worked so I tried to do that and it worked. No idea why

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.