Whenever I plugged in charger on my laptop, it gets suspend/sleep/hibernate. How can I fix it? And after disabling suspend by running this command: sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Then whenever I plugged in charger, light of the screen gets off and at that time keyboard and mouse is not working. I am using Ubuntu 20.04.