Disable Lock Screen
You can disable the lock screen permanently when waking from suspend.
First use this command to discover current settings:
$ gsettings get org.gnome.desktop.lockdown disable-lock-screen
false
Now set it to true
using this command:
gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'
If you are unhappy with the new setting you can reverse it using:
gsettings set org.gnome.desktop.lockdown disable-lock-screen 'false'
Disable Screen Saver Locking
There was some confusion where people think disabling the Lock screen also disables the screen saver which is invoked after a certain period of inactivity. The screen saver requires input to get your desktop back. Some people may want the screen saver to come on but not have it locked when waking up the screen.
To check screen saver lock status use:
$ gsettings get org.gnome.desktop.screensaver lock-enabled
true
If true you can turn off screen saver locking with:
gsettings set org.gnome.desktop.screensaver lock-enabled false
To reverse the setting back use:
gsettings set org.gnome.desktop.screensaver lock-enabled true
In Gnome screen locking guide it says:
6.2. Screen Locking
By default, GNOME Power Manager supports a simple locking scheme. This
means that the screen will lock if set to Lock screen in
gnome-screensaver when the lid is closed, or the system performs a
suspend or hibernate action.
There is a complex locking scheme available for power users that
allows locking policy to change for the lid, suspend and hibernate
actions. To enable this complex mode, you will have to disable the
GConf key:
/apps/gnome-power-manager/lock/use_screensaver_settings
Then the policy keys can be set to force a gnome-screensaver lock
and unlock when the action is performed:
/apps/gnome-power-manager/lock/blank_screen
/apps/gnome-power-manager/lock/suspend
/apps/gnome-power-manager/lock/hibernate
Best Answer
Workaround
OS: Ubuntu 18.04
removing the clock is not possible unless digging the core files of gnome-shell files which is very difficult.
instead you can hide it by editing
ubuntu.css
file.Disclaimer: playing with gdm3 files is very dangerous, small mistakes will stop access to gnome desktop session. Only tty will work. i have several times reinstalled Ubuntu in such cases. although i have successfully hidden the clock-display on lock-screen. proceed with your own risk.
open the file
/usr/share/gnome-shell/theme/ubuntu.css
with below command.search for "screen-shield" and find the below content
then make the font-sizes to 0 like below
save the file, Refresh Gnome-Shell Alt+F2 r Enter.