Ubuntu/Gnome3 doesn't directly go to sleep (after being instructed to do so) anymore?












1















So, I'm using Ubuntu 18.04, with Ubuntu desktop (I guess):



$ env | grep DESKTOP
DESKTOP_SESSION=ubuntu
XDG_SESSION_DESKTOP=ubuntu
XDG_CURRENT_DESKTOP=ubuntu:GNOME
GNOME_DESKTOP_SESSION_ID=this-is-deprecated


I'm also using this extension:




  • https://extensions.gnome.org/extension/826/suspend-button/


So, up to a month or so ago, if I clicked this suspend ("pause") button, the system would just go to sleep, no questions asked - as I expected it to. Then when the system woke up for sleep, I would have been presented with a login screen, where I'd have to enter my password, to go back to the desktop,



In the past few weeks, though, when I click the suspend button, first I'm taken to the login screen, and then nothing happens. So, I have to "drag" the login screen, then enter my password (as when I log in) - and only then does the system go to sleep. Then when the system wakes up from sleep - I'm directly taken to the desktop, without being prompted for a password beforehand.



It seems something "crossed the wires" in the system, so it asks for the password - the one it should ask for upon wake up - right before the system goes to sleep...



Does anyone have an idea what possibly could have broken the original behavior - and more importantly, how can I restore the original sleep behavior?



EDIT: note that sudo pm-suspend works - but it doesn't raise/deal with password prompts anyways..










share|improve this question


















  • 1





    without that extension.. have you not tried to pressing ALT while hovering on shutdown symbol?

    – PRATAP
    Jan 15 at 7:00






  • 1





    Thanks @PRATAP - no, haven't tried that - had no idea it works like that :) Just tried it - and it just gives me "Cancel", "Restart" and "Power off", no "Suspend" - which is probably why I installed the extension in the first place.

    – sdaau
    Jan 15 at 7:41






  • 1





    ya, without installing that extension by default it is settings lockscreen and shutdown symbols, but with pressing Alt the shutdown symbol changes to pause symbol.

    – PRATAP
    Jan 15 at 7:42








  • 1





    i.stack.imgur.com/AzmKr.gif did you try this way?

    – PRATAP
    Jan 15 at 7:45






  • 1





    Thanks @PRATAP, especially for the gif - I tried it, but it doesn't change on my system to "pause", I guess that is because I use the Alt key to drag windows (as in old Gnome), I simply cannot get used to using the Super key for dragging windows. So, I guess I need this extension, if I want to both have a suspend icon, and to use Alt to drag windows. EDIT: if I disable the extension, then I do get that, also with Alt mapped to drag windows! EDIT2: and yes, with the extension disabled, and Alt for suspend, suspend works properly! Thanks again!

    – sdaau
    Jan 15 at 7:51
















1















So, I'm using Ubuntu 18.04, with Ubuntu desktop (I guess):



$ env | grep DESKTOP
DESKTOP_SESSION=ubuntu
XDG_SESSION_DESKTOP=ubuntu
XDG_CURRENT_DESKTOP=ubuntu:GNOME
GNOME_DESKTOP_SESSION_ID=this-is-deprecated


I'm also using this extension:




  • https://extensions.gnome.org/extension/826/suspend-button/


So, up to a month or so ago, if I clicked this suspend ("pause") button, the system would just go to sleep, no questions asked - as I expected it to. Then when the system woke up for sleep, I would have been presented with a login screen, where I'd have to enter my password, to go back to the desktop,



In the past few weeks, though, when I click the suspend button, first I'm taken to the login screen, and then nothing happens. So, I have to "drag" the login screen, then enter my password (as when I log in) - and only then does the system go to sleep. Then when the system wakes up from sleep - I'm directly taken to the desktop, without being prompted for a password beforehand.



It seems something "crossed the wires" in the system, so it asks for the password - the one it should ask for upon wake up - right before the system goes to sleep...



Does anyone have an idea what possibly could have broken the original behavior - and more importantly, how can I restore the original sleep behavior?



EDIT: note that sudo pm-suspend works - but it doesn't raise/deal with password prompts anyways..










share|improve this question


















  • 1





    without that extension.. have you not tried to pressing ALT while hovering on shutdown symbol?

    – PRATAP
    Jan 15 at 7:00






  • 1





    Thanks @PRATAP - no, haven't tried that - had no idea it works like that :) Just tried it - and it just gives me "Cancel", "Restart" and "Power off", no "Suspend" - which is probably why I installed the extension in the first place.

    – sdaau
    Jan 15 at 7:41






  • 1





    ya, without installing that extension by default it is settings lockscreen and shutdown symbols, but with pressing Alt the shutdown symbol changes to pause symbol.

    – PRATAP
    Jan 15 at 7:42








  • 1





    i.stack.imgur.com/AzmKr.gif did you try this way?

    – PRATAP
    Jan 15 at 7:45






  • 1





    Thanks @PRATAP, especially for the gif - I tried it, but it doesn't change on my system to "pause", I guess that is because I use the Alt key to drag windows (as in old Gnome), I simply cannot get used to using the Super key for dragging windows. So, I guess I need this extension, if I want to both have a suspend icon, and to use Alt to drag windows. EDIT: if I disable the extension, then I do get that, also with Alt mapped to drag windows! EDIT2: and yes, with the extension disabled, and Alt for suspend, suspend works properly! Thanks again!

    – sdaau
    Jan 15 at 7:51














1












1








1








So, I'm using Ubuntu 18.04, with Ubuntu desktop (I guess):



$ env | grep DESKTOP
DESKTOP_SESSION=ubuntu
XDG_SESSION_DESKTOP=ubuntu
XDG_CURRENT_DESKTOP=ubuntu:GNOME
GNOME_DESKTOP_SESSION_ID=this-is-deprecated


I'm also using this extension:




  • https://extensions.gnome.org/extension/826/suspend-button/


So, up to a month or so ago, if I clicked this suspend ("pause") button, the system would just go to sleep, no questions asked - as I expected it to. Then when the system woke up for sleep, I would have been presented with a login screen, where I'd have to enter my password, to go back to the desktop,



In the past few weeks, though, when I click the suspend button, first I'm taken to the login screen, and then nothing happens. So, I have to "drag" the login screen, then enter my password (as when I log in) - and only then does the system go to sleep. Then when the system wakes up from sleep - I'm directly taken to the desktop, without being prompted for a password beforehand.



It seems something "crossed the wires" in the system, so it asks for the password - the one it should ask for upon wake up - right before the system goes to sleep...



Does anyone have an idea what possibly could have broken the original behavior - and more importantly, how can I restore the original sleep behavior?



EDIT: note that sudo pm-suspend works - but it doesn't raise/deal with password prompts anyways..










share|improve this question














So, I'm using Ubuntu 18.04, with Ubuntu desktop (I guess):



$ env | grep DESKTOP
DESKTOP_SESSION=ubuntu
XDG_SESSION_DESKTOP=ubuntu
XDG_CURRENT_DESKTOP=ubuntu:GNOME
GNOME_DESKTOP_SESSION_ID=this-is-deprecated


I'm also using this extension:




  • https://extensions.gnome.org/extension/826/suspend-button/


So, up to a month or so ago, if I clicked this suspend ("pause") button, the system would just go to sleep, no questions asked - as I expected it to. Then when the system woke up for sleep, I would have been presented with a login screen, where I'd have to enter my password, to go back to the desktop,



In the past few weeks, though, when I click the suspend button, first I'm taken to the login screen, and then nothing happens. So, I have to "drag" the login screen, then enter my password (as when I log in) - and only then does the system go to sleep. Then when the system wakes up from sleep - I'm directly taken to the desktop, without being prompted for a password beforehand.



It seems something "crossed the wires" in the system, so it asks for the password - the one it should ask for upon wake up - right before the system goes to sleep...



Does anyone have an idea what possibly could have broken the original behavior - and more importantly, how can I restore the original sleep behavior?



EDIT: note that sudo pm-suspend works - but it doesn't raise/deal with password prompts anyways..







18.04 gnome suspend






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 15 at 6:35









sdaausdaau

1,57512737




1,57512737








  • 1





    without that extension.. have you not tried to pressing ALT while hovering on shutdown symbol?

    – PRATAP
    Jan 15 at 7:00






  • 1





    Thanks @PRATAP - no, haven't tried that - had no idea it works like that :) Just tried it - and it just gives me "Cancel", "Restart" and "Power off", no "Suspend" - which is probably why I installed the extension in the first place.

    – sdaau
    Jan 15 at 7:41






  • 1





    ya, without installing that extension by default it is settings lockscreen and shutdown symbols, but with pressing Alt the shutdown symbol changes to pause symbol.

    – PRATAP
    Jan 15 at 7:42








  • 1





    i.stack.imgur.com/AzmKr.gif did you try this way?

    – PRATAP
    Jan 15 at 7:45






  • 1





    Thanks @PRATAP, especially for the gif - I tried it, but it doesn't change on my system to "pause", I guess that is because I use the Alt key to drag windows (as in old Gnome), I simply cannot get used to using the Super key for dragging windows. So, I guess I need this extension, if I want to both have a suspend icon, and to use Alt to drag windows. EDIT: if I disable the extension, then I do get that, also with Alt mapped to drag windows! EDIT2: and yes, with the extension disabled, and Alt for suspend, suspend works properly! Thanks again!

    – sdaau
    Jan 15 at 7:51














  • 1





    without that extension.. have you not tried to pressing ALT while hovering on shutdown symbol?

    – PRATAP
    Jan 15 at 7:00






  • 1





    Thanks @PRATAP - no, haven't tried that - had no idea it works like that :) Just tried it - and it just gives me "Cancel", "Restart" and "Power off", no "Suspend" - which is probably why I installed the extension in the first place.

    – sdaau
    Jan 15 at 7:41






  • 1





    ya, without installing that extension by default it is settings lockscreen and shutdown symbols, but with pressing Alt the shutdown symbol changes to pause symbol.

    – PRATAP
    Jan 15 at 7:42








  • 1





    i.stack.imgur.com/AzmKr.gif did you try this way?

    – PRATAP
    Jan 15 at 7:45






  • 1





    Thanks @PRATAP, especially for the gif - I tried it, but it doesn't change on my system to "pause", I guess that is because I use the Alt key to drag windows (as in old Gnome), I simply cannot get used to using the Super key for dragging windows. So, I guess I need this extension, if I want to both have a suspend icon, and to use Alt to drag windows. EDIT: if I disable the extension, then I do get that, also with Alt mapped to drag windows! EDIT2: and yes, with the extension disabled, and Alt for suspend, suspend works properly! Thanks again!

    – sdaau
    Jan 15 at 7:51








1




1





without that extension.. have you not tried to pressing ALT while hovering on shutdown symbol?

– PRATAP
Jan 15 at 7:00





without that extension.. have you not tried to pressing ALT while hovering on shutdown symbol?

– PRATAP
Jan 15 at 7:00




1




1





Thanks @PRATAP - no, haven't tried that - had no idea it works like that :) Just tried it - and it just gives me "Cancel", "Restart" and "Power off", no "Suspend" - which is probably why I installed the extension in the first place.

– sdaau
Jan 15 at 7:41





Thanks @PRATAP - no, haven't tried that - had no idea it works like that :) Just tried it - and it just gives me "Cancel", "Restart" and "Power off", no "Suspend" - which is probably why I installed the extension in the first place.

– sdaau
Jan 15 at 7:41




1




1





ya, without installing that extension by default it is settings lockscreen and shutdown symbols, but with pressing Alt the shutdown symbol changes to pause symbol.

– PRATAP
Jan 15 at 7:42







ya, without installing that extension by default it is settings lockscreen and shutdown symbols, but with pressing Alt the shutdown symbol changes to pause symbol.

– PRATAP
Jan 15 at 7:42






1




1





i.stack.imgur.com/AzmKr.gif did you try this way?

– PRATAP
Jan 15 at 7:45





i.stack.imgur.com/AzmKr.gif did you try this way?

– PRATAP
Jan 15 at 7:45




1




1





Thanks @PRATAP, especially for the gif - I tried it, but it doesn't change on my system to "pause", I guess that is because I use the Alt key to drag windows (as in old Gnome), I simply cannot get used to using the Super key for dragging windows. So, I guess I need this extension, if I want to both have a suspend icon, and to use Alt to drag windows. EDIT: if I disable the extension, then I do get that, also with Alt mapped to drag windows! EDIT2: and yes, with the extension disabled, and Alt for suspend, suspend works properly! Thanks again!

– sdaau
Jan 15 at 7:51





Thanks @PRATAP, especially for the gif - I tried it, but it doesn't change on my system to "pause", I guess that is because I use the Alt key to drag windows (as in old Gnome), I simply cannot get used to using the Super key for dragging windows. So, I guess I need this extension, if I want to both have a suspend icon, and to use Alt to drag windows. EDIT: if I disable the extension, then I do get that, also with Alt mapped to drag windows! EDIT2: and yes, with the extension disabled, and Alt for suspend, suspend works properly! Thanks again!

– sdaau
Jan 15 at 7:51










0






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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
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%2f1109830%2fubuntu-gnome3-doesnt-directly-go-to-sleep-after-being-instructed-to-do-so-any%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1109830%2fubuntu-gnome3-doesnt-directly-go-to-sleep-after-being-instructed-to-do-so-any%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

張江高科駅