Resume from Suspend closes applications
Just loaded Ubuntu 15.10 on my old HP E1 Vision and am very pleased with it. I have a minor issue in that if I Suspend using the power icon in the upper right corner of the screen, close the lid and then open later, the automatic resume loses all of the applications I had open.
This does not happen if I leave the lid open and resume with the power button on the console. Also does not happen if I Suspend by closing the lid. As I say this is minor and the work around is to avoid suspending with the power icon. Thoughts?
suspend laptop power-management
add a comment |
Just loaded Ubuntu 15.10 on my old HP E1 Vision and am very pleased with it. I have a minor issue in that if I Suspend using the power icon in the upper right corner of the screen, close the lid and then open later, the automatic resume loses all of the applications I had open.
This does not happen if I leave the lid open and resume with the power button on the console. Also does not happen if I Suspend by closing the lid. As I say this is minor and the work around is to avoid suspending with the power icon. Thoughts?
suspend laptop power-management
add a comment |
Just loaded Ubuntu 15.10 on my old HP E1 Vision and am very pleased with it. I have a minor issue in that if I Suspend using the power icon in the upper right corner of the screen, close the lid and then open later, the automatic resume loses all of the applications I had open.
This does not happen if I leave the lid open and resume with the power button on the console. Also does not happen if I Suspend by closing the lid. As I say this is minor and the work around is to avoid suspending with the power icon. Thoughts?
suspend laptop power-management
Just loaded Ubuntu 15.10 on my old HP E1 Vision and am very pleased with it. I have a minor issue in that if I Suspend using the power icon in the upper right corner of the screen, close the lid and then open later, the automatic resume loses all of the applications I had open.
This does not happen if I leave the lid open and resume with the power button on the console. Also does not happen if I Suspend by closing the lid. As I say this is minor and the work around is to avoid suspending with the power icon. Thoughts?
suspend laptop power-management
suspend laptop power-management
asked Nov 3 '15 at 12:04
d. Fowler
11
11
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Create the file /etc/acpi/local/lid.sh.post and add the following to it:
#!/bin/bash
grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
/usr/sbin/pm-suspend
fi
Make the file executable with chmod +x lid.sh.post and your problem should be solved.
@d.Fowler glad it did :) you should accept this answer by clicking on the grey tick just below this answer's downvote button :)
– TellMeWhy
Nov 3 '15 at 13:47
add a comment |
I had the same issue with my XPS 13 (9350) running Ubunutu 8.10. In some cases, it is an issue with drivers and hardware support.
I was able to resolve it by updating my kernel (Ubuntu):
sudo apt-get update
sudo apt-get upgrade linux-generic
For more info and commands for other distros, see: https://www.linode.com/docs/platform/update-kernel/
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f693394%2fresume-from-suspend-closes-applications%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Create the file /etc/acpi/local/lid.sh.post and add the following to it:
#!/bin/bash
grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
/usr/sbin/pm-suspend
fi
Make the file executable with chmod +x lid.sh.post and your problem should be solved.
@d.Fowler glad it did :) you should accept this answer by clicking on the grey tick just below this answer's downvote button :)
– TellMeWhy
Nov 3 '15 at 13:47
add a comment |
Create the file /etc/acpi/local/lid.sh.post and add the following to it:
#!/bin/bash
grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
/usr/sbin/pm-suspend
fi
Make the file executable with chmod +x lid.sh.post and your problem should be solved.
@d.Fowler glad it did :) you should accept this answer by clicking on the grey tick just below this answer's downvote button :)
– TellMeWhy
Nov 3 '15 at 13:47
add a comment |
Create the file /etc/acpi/local/lid.sh.post and add the following to it:
#!/bin/bash
grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
/usr/sbin/pm-suspend
fi
Make the file executable with chmod +x lid.sh.post and your problem should be solved.
Create the file /etc/acpi/local/lid.sh.post and add the following to it:
#!/bin/bash
grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
/usr/sbin/pm-suspend
fi
Make the file executable with chmod +x lid.sh.post and your problem should be solved.
answered Nov 3 '15 at 12:17
TellMeWhy
7,8211766114
7,8211766114
@d.Fowler glad it did :) you should accept this answer by clicking on the grey tick just below this answer's downvote button :)
– TellMeWhy
Nov 3 '15 at 13:47
add a comment |
@d.Fowler glad it did :) you should accept this answer by clicking on the grey tick just below this answer's downvote button :)
– TellMeWhy
Nov 3 '15 at 13:47
@d.Fowler glad it did :) you should accept this answer by clicking on the grey tick just below this answer's downvote button :)
– TellMeWhy
Nov 3 '15 at 13:47
@d.Fowler glad it did :) you should accept this answer by clicking on the grey tick just below this answer's downvote button :)
– TellMeWhy
Nov 3 '15 at 13:47
add a comment |
I had the same issue with my XPS 13 (9350) running Ubunutu 8.10. In some cases, it is an issue with drivers and hardware support.
I was able to resolve it by updating my kernel (Ubuntu):
sudo apt-get update
sudo apt-get upgrade linux-generic
For more info and commands for other distros, see: https://www.linode.com/docs/platform/update-kernel/
add a comment |
I had the same issue with my XPS 13 (9350) running Ubunutu 8.10. In some cases, it is an issue with drivers and hardware support.
I was able to resolve it by updating my kernel (Ubuntu):
sudo apt-get update
sudo apt-get upgrade linux-generic
For more info and commands for other distros, see: https://www.linode.com/docs/platform/update-kernel/
add a comment |
I had the same issue with my XPS 13 (9350) running Ubunutu 8.10. In some cases, it is an issue with drivers and hardware support.
I was able to resolve it by updating my kernel (Ubuntu):
sudo apt-get update
sudo apt-get upgrade linux-generic
For more info and commands for other distros, see: https://www.linode.com/docs/platform/update-kernel/
I had the same issue with my XPS 13 (9350) running Ubunutu 8.10. In some cases, it is an issue with drivers and hardware support.
I was able to resolve it by updating my kernel (Ubuntu):
sudo apt-get update
sudo apt-get upgrade linux-generic
For more info and commands for other distros, see: https://www.linode.com/docs/platform/update-kernel/
edited Dec 21 '18 at 16:37
answered Dec 18 '18 at 15:38
mepler
1013
1013
add a comment |
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f693394%2fresume-from-suspend-closes-applications%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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
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