Ubuntu 17.10: Lock screen without blanking
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
4
down vote
favorite
By default, locking the screen in Ubuntu 17.10 also immediately blanks it. This seems to go back to gnome-screensaver by default blanking whenever it's told to lock (with gnome-screensaver-command -l or the keyboard shortcut.)
What I would like to do is to only lock my screen, without having it go blank as well. The reason is partly aesthetic but also to save time when returning to unlock the workstation once again. This question asks the same thing but without a solution.
This question addressed the same problem a few years back, where it could be worked around with a script that immediately after the lock command, sent an automated key press (with xdotool) to unblank the screen again.
Unfortunately this does not work for me at all with 17.10. In Wayland, I can't find that anything happens at all, it simply locks and blanks. I've tried switching to Xorg, where the scripted key press does work to unblank the screen, but only for a few seconds before it's engaged once more and the screen goes dark. I suppose one could have the xdotool keep repeating the key press and see if that prevents the blanking, I made a brief attempt at this (xdotool sleep 1 key --repeat 225 --repeat-delay 4 Ctrl) which did not really work. It also seems fairly bizarre to have to do that.
Is there really no straightforward way in Ubuntu 17.10 to simply lock the screen and have it display something - anything - instead of blanking out?
17.10 screensaver gnome-screensaver
add a comment |Â
up vote
4
down vote
favorite
By default, locking the screen in Ubuntu 17.10 also immediately blanks it. This seems to go back to gnome-screensaver by default blanking whenever it's told to lock (with gnome-screensaver-command -l or the keyboard shortcut.)
What I would like to do is to only lock my screen, without having it go blank as well. The reason is partly aesthetic but also to save time when returning to unlock the workstation once again. This question asks the same thing but without a solution.
This question addressed the same problem a few years back, where it could be worked around with a script that immediately after the lock command, sent an automated key press (with xdotool) to unblank the screen again.
Unfortunately this does not work for me at all with 17.10. In Wayland, I can't find that anything happens at all, it simply locks and blanks. I've tried switching to Xorg, where the scripted key press does work to unblank the screen, but only for a few seconds before it's engaged once more and the screen goes dark. I suppose one could have the xdotool keep repeating the key press and see if that prevents the blanking, I made a brief attempt at this (xdotool sleep 1 key --repeat 225 --repeat-delay 4 Ctrl) which did not really work. It also seems fairly bizarre to have to do that.
Is there really no straightforward way in Ubuntu 17.10 to simply lock the screen and have it display something - anything - instead of blanking out?
17.10 screensaver gnome-screensaver
Does this help?: askubuntu.com/questions/665176/how-to-set-up-gnome-screensaver
â WinEunuuchs2Unix
Jun 24 at 7:10
add a comment |Â
up vote
4
down vote
favorite
up vote
4
down vote
favorite
By default, locking the screen in Ubuntu 17.10 also immediately blanks it. This seems to go back to gnome-screensaver by default blanking whenever it's told to lock (with gnome-screensaver-command -l or the keyboard shortcut.)
What I would like to do is to only lock my screen, without having it go blank as well. The reason is partly aesthetic but also to save time when returning to unlock the workstation once again. This question asks the same thing but without a solution.
This question addressed the same problem a few years back, where it could be worked around with a script that immediately after the lock command, sent an automated key press (with xdotool) to unblank the screen again.
Unfortunately this does not work for me at all with 17.10. In Wayland, I can't find that anything happens at all, it simply locks and blanks. I've tried switching to Xorg, where the scripted key press does work to unblank the screen, but only for a few seconds before it's engaged once more and the screen goes dark. I suppose one could have the xdotool keep repeating the key press and see if that prevents the blanking, I made a brief attempt at this (xdotool sleep 1 key --repeat 225 --repeat-delay 4 Ctrl) which did not really work. It also seems fairly bizarre to have to do that.
Is there really no straightforward way in Ubuntu 17.10 to simply lock the screen and have it display something - anything - instead of blanking out?
17.10 screensaver gnome-screensaver
By default, locking the screen in Ubuntu 17.10 also immediately blanks it. This seems to go back to gnome-screensaver by default blanking whenever it's told to lock (with gnome-screensaver-command -l or the keyboard shortcut.)
What I would like to do is to only lock my screen, without having it go blank as well. The reason is partly aesthetic but also to save time when returning to unlock the workstation once again. This question asks the same thing but without a solution.
This question addressed the same problem a few years back, where it could be worked around with a script that immediately after the lock command, sent an automated key press (with xdotool) to unblank the screen again.
Unfortunately this does not work for me at all with 17.10. In Wayland, I can't find that anything happens at all, it simply locks and blanks. I've tried switching to Xorg, where the scripted key press does work to unblank the screen, but only for a few seconds before it's engaged once more and the screen goes dark. I suppose one could have the xdotool keep repeating the key press and see if that prevents the blanking, I made a brief attempt at this (xdotool sleep 1 key --repeat 225 --repeat-delay 4 Ctrl) which did not really work. It also seems fairly bizarre to have to do that.
Is there really no straightforward way in Ubuntu 17.10 to simply lock the screen and have it display something - anything - instead of blanking out?
17.10 screensaver gnome-screensaver
17.10 screensaver gnome-screensaver
asked Feb 7 at 10:44
anlag
213
213
Does this help?: askubuntu.com/questions/665176/how-to-set-up-gnome-screensaver
â WinEunuuchs2Unix
Jun 24 at 7:10
add a comment |Â
Does this help?: askubuntu.com/questions/665176/how-to-set-up-gnome-screensaver
â WinEunuuchs2Unix
Jun 24 at 7:10
Does this help?: askubuntu.com/questions/665176/how-to-set-up-gnome-screensaver
â WinEunuuchs2Unix
Jun 24 at 7:10
Does this help?: askubuntu.com/questions/665176/how-to-set-up-gnome-screensaver
â WinEunuuchs2Unix
Jun 24 at 7:10
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1003838%2fubuntu-17-10-lock-screen-without-blanking%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Does this help?: askubuntu.com/questions/665176/how-to-set-up-gnome-screensaver
â WinEunuuchs2Unix
Jun 24 at 7:10