Sometimes needs the power buton pushed multiple times to turn on
So this is.a bit of.a weird situation, partially because I had this issue once before and fixed it, but don't remember the fix.
I replaced the battery in July of this year and it worked fine for awhile but starting a few days ago I sometimes have to press the power button as many ast 30 times (no, not joking) to get it to turn on.
Now, here's the thing. I did a battery replacement in 2020 and it did this then as well. Worked fine for a few months after the replacement then one day just didn't want to turn on without multiple power button presses.
This happens both when shutdown and if it's in sleep mode long enough OR if I put in in sleep manually rather than just closting the lid.
Now, in 2020, I fixed this but I literally don't remember how I did so and can't seem to find the info now despite multiple Google searches.
What I remember of th 2020 fix:
It involved disconnecting the battery and doing something after that. It's the after disconnecting the battery part I can't remember. I do know that after I did it, I had no problems again until just in the last few days.
The first time I booted the system after performing the disconnect and doing the whatever it was the NVRAM had been reset to the factory defaults, but it was not done via the Command + Option + R + P NVRAM reset trick, beccause it wouldn't power on at all until after the fix was done.
Any ideas on what the fix was I've forgotten?
Additional note: Unlike in 2020, I have access to one tool that helped me realize it is responding to the power button: I have a blink(1) lite that is set to perform a a speciic light pattern when powered on but the OS hasn't taken over control yet. It starts to perform the pattern then powers off after about half a second.