M3 MacBook Air screen is dim after opening lid
I have an M3 MacBook Air 2024, running Sonoma 14.6.1. When opening the lid, the screen is sometimes very dim/dark. I can barely see the apps and am able to interact with them - the keyboard and trackpad all seem to work fine. The only way I've found to restore the screen to its previous brightness (the brightness it was at before closing the lid) is to hit the brightness up (F2) key. I have "Automatically adjust brightness" turned on. I ran diagnostics and no issues were found. This doesn't happen every time I open the lid, but seems to happen more often when the lid has been closed for a longer time. I bought this MacBook in April, and the issue just started a couple weeks ago.
MacBook Air 15″, macOS 14.6