Ubuntu 17.10: Lock screen without blanking

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
4
down vote

favorite
1












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?










share|improve this question





















  • Does this help?: askubuntu.com/questions/665176/how-to-set-up-gnome-screensaver
    – WinEunuuchs2Unix
    Jun 24 at 7:10














up vote
4
down vote

favorite
1












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?










share|improve this question





















  • Does this help?: askubuntu.com/questions/665176/how-to-set-up-gnome-screensaver
    – WinEunuuchs2Unix
    Jun 24 at 7:10












up vote
4
down vote

favorite
1









up vote
4
down vote

favorite
1






1





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?










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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
















  • 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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491