How can I set my system to suspend when inactive to a longer amount of time

Solution 1:

You can try with dconf-editor. If you don't find it install it with

sudo apt-get install dconf-tools

then run it searching for dconf Editor in Dash or typing dconf-editor from the alt+f2 command line. The power settings are stored in

org → gnome → settings-daemon → plugins → power

To set the timeout when plugged in change the sleep-inactive-ac-timeout option, to set the timeout when on battery change sleep-inactive-battery-timeout.

These options are indicated in waiting seconds before suspend (so a value of 14400 will suspend the system after 4 hours).

dconf-editor in ubuntu