I have this issue with my power bank and my Linux machine. In the end my workaround has to put it in suspend by closing the lid then plugging in the power bank