Don't wake screen on notifications when locked

Solution 1:

Assuming you are using Ubuntu 18.04 and up, or some other version of Ubuntu with the GNOME 3 desktop, you can search for Settings -> Notifications and turn off Lock Screen Notifications.