I have a 2020 MBA M1 and it was working fine until a few days ago. Now when I try to close the lid, it does not go into sleep, and when I open the lid it also doesn't wake either, I have to press a button. Also when I plug into an HDMI display it does not go into clamshell, instead opting to mirror the screen thus leaves the build in display on. I have made Apple Hardware Diagnostics test and all seems fine, I also checked ambient light sensor and it's working, is this software related? How can I solve it?