See the relevant forum thread. It seem like multiple wakeup events are sent, from the lid switch and the keyboard (at least for the lid closing, unsure about the charging thing). This seems to cause operating systems to cancel sleep, i.e. closing the lid of a sleeping laptop wakes it up and so does plugging in the charger. Someone from the Framwork team already has a theory about the code which might case this issue:
See the relevant forum thread. It seem like multiple wakeup events are sent, from the lid switch and the keyboard (at least for the lid closing, unsure about the charging thing). This seems to cause operating systems to cancel sleep, i.e. closing the lid of a sleeping laptop wakes it up and so does plugging in the charger. Someone from the Framwork team already has a theory about the code which might case this issue:
https://github.com/FrameworkComputer/EmbeddedController/blob/833fc2f25b82e0786a1a59e8b46ec327a53e4cec/zephyr/program/lotus/azalea/src/power_sequence.c#L313