Disable auto-lock screen on inactivity Ubuntu 18.04
Solution 1:
These things worked out for me.
commands applied for turning off auto-lock and keep display on are following
if below command gives false then set it to true
$ gsettings get org.gnome.desktop.lockdown disable-lock-screen
$ gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'
if below command returns true then set it false
$ gsettings get org.gnome.desktop.screensaver lock-enabled
$ gsettings set org.gnome.desktop.screensaver lock-enabled false
if below command returns true then set it false
$ gsettings get org.gnome.desktop.screensaver idle-activation-enabled
$ gsettings set org.gnome.desktop.screensaver idle-activation-enabled false