oneclick / rubyinstaller2

MSYS2 based RubyInstaller for Windows
https://rubyinstaller.org
BSD 3-Clause "New" or "Revised" License
645 stars 248 forks source link

Please don't change system Power Mode #322

Closed jakitliang closed 1 year ago

jakitliang commented 1 year ago

What problems are you experiencing?

Starting irb will cause Power Mode change to HIGH PERFORMANCE

Steps to reproduce

Just start irb:

% irb
irb(main):>

Your system power setting will change to HIGH PERFORMANCE mode and no way set back to BALANCE mode.

What's the output from ridk version?

3.1.3

Others

If this version of ruby call some Win32 API to change users' system settings? Please don't do that.

jakitliang commented 1 year ago

That's the problem with irb script, which will fork an sh.exe process and cause this case.

But irb does nothing wrong.

It is the problem with the sh.exe shipped with msys2 and git for windows