Disable Sleep/Suspend in Ubuntu

Disable Sleep/Suspend in Ubuntu

click the system menu at the top right corner of your screen and select System Settings



On the System Settings panel, select Power from the list of items on the left,
Then under Suspend & Power Button, select Automatic suspend to change its settings.



Turn the button Off and exit