Yes. That works. It’s when the PC is shut down that I get the funky behavior.
@jonc What Brand/Model computer, maybe it’s a BIOS setting, is the BIOS the latest?