This bug has been reported here and here, in much more detail.
It seems the fix is:
# become the superuser
sudo su
# launch a bash shell as lightdm
su - -s /bin/bash lightdm
# use dbus-launch to launch the gstreamer command within the active dbus session
# the gstreamer command sets the given key to the special value 'nothing', which is the setting which
# should disable suspend when connected to a power source:
dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type \nothing
# to set the sleep time on battery to 30 minutes:
dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout \1800
To check your current settings:
# enter lightdm settings again (or don't exit and skip these 2 lines):
sudo su
su - -s /bin/bash lightdm
# number of seconds before AC timeout action (mine said 1200, only 20 minutes):
dbus-launch gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout
# what is the AC timeout action:
dbus-launch gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type
# number of seconds before battery timeout action:
dbus-launch gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout
# what is the battery timeout action:
dbus-launch gsettings get org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type
Alternatively you could set a longer ac timeout time instead of disabling suspend (3600s - 1 hour):
dbus-launch gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout \3600