how to stop automatic suspend in ubuntu code example
Example 1: ubuntu disable auto suspend command line
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Example 2: ubuntu disable auto suspend command line
sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target