Display goes extremely dim or just plain black when plugging in magsafe charger-happens randomly
Whenever I plug in my magsafe charger on mac, the display starts up on just a black screen and is only fixed by a restart or it just turns out really dim, and turning up brightness has no effect on the screen brightness. The only fix I found was unplugging the charger, and closing the lid where the display turned bright again, however it did not go to lock screen automatically as it usually does. However when I replug the charger after the fix it works normally. It mostly happens when I plug in the charger when the lid is closed. My mac is m3 macbook air, 16gb battery health is 97 percent. Magsafe charger. Macos sequoia.
MacBook Air 13″, macOS 15.5