Gnome tricks

When laptop is on power supply gnome will perform an ACPI suspend if there is no activity. This is not necessary what is wanted (bug in suspend/resume, background process, …), to prevent this behavior we need to switch sleep-inactive-ac-type from suspend (default) to blank or nothing:

Disable inactive suspend when on AC
gsettings set org.gnome.settings-daemon.plugins.power \
              sleep-inactive-ac-type nothing