Notifications power on display even if `show-in-lock-screen` is `false`, doesn't turned off sometimes.
I've set the setting using gnome-control-center
.
> gsettings get org.gnome.desktop.notifications show-in-lock-screen
false
Notifications such as notify-send
will power on my display when the display is properly locked and powered off.
The screen is then show black screen, and powered off after some time.
I'm using PC (Ubuntu 20.10, gnome-settings-daemon 3.38.0-1ubuntu1) with a monitor. I used the monitor as a secondary screen for my laptop, but I had no problem with that.
Also, display never be turned off on some application's notifications. Firefox's notifications also turn on the display, but the display won't be turned off after.
This HTML reproduces the bug on my PC.
<html>
<head>
<script type="text/javascript">
function notification() {
setTimeout(() => {
new Notification("Notification!");
}, 60*1000);
}
function popupTest() {
setTimeout(() => {
window.open("about:blank");
}, 1);
}
function notificationAndPopup() {
setTimeout(() => {
new Notification("Notification!");
window.open("about:blank");
}, 60*1000);
}
</script>
</head>
<body>
<div>
<button onClick="notification()">Button 1. Notification after 10s</button>
</div>
<div>
<button onClick="popupTest()">Test popup blockers</button>
<button onClick="notificationAndPopup()">Button 2. Notification and popup 10s</button>
</div>
</body>
</html>
Save this HTML, and open it with Firefox (I'm using 87.0). When I click the button Button 1 and lock the screen, this happens:
- Click the Button 1.
- Lock the screen.
- After some times, the display is powered off.
- After 60s timeout, the display is powered on, black screen is shown.
- The display is not powered off automatically.
Button 2 will give it a subtle difference. Make sure to test popup blockers so it won't block a popup.
- Click the Button 2.
- Lock the screen.
- After some times, the display is powered off.
- After 60s timeout, the display is powered on, black screen with mouse pointer is shown
- The display is not powered off automatically.