Ubuntu 18 and TinkPad Yoga 12: Suspend works only every other time, not hibernate at all





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I gave up debugging hibernate, but I would like to have suspend working. Now on first suspend try, screen goes off, red led starts blinking, but PC is powered on and led keeps blinking forever. I have to press power button to wake it. On second suspend, the PC suspends correctly. On third suspend, it is same as on first. And so on. Has anyone had this behavior and fixed it?










share|improve this question























  • Hi, I fixed both hibernate and suspend by switching up from ubuntu 18.04 to ubuntu 18.10. if you're not open to that, ubuntu 19.04 releases 27 days from now and it will fix it too. Does this work as an answer for you? if yes I'll fill out the answer and you can mark me as answer to help other people find the solution.

    – tatsu
    Mar 22 at 12:40













  • I have upgraded to Ubuntu 18.10 and it did not fix the problem. Suspend still works only on every second try.

    – Jan
    Mar 24 at 17:28











  • "upgraded" or installed?

    – tatsu
    Mar 25 at 6:38


















0















I gave up debugging hibernate, but I would like to have suspend working. Now on first suspend try, screen goes off, red led starts blinking, but PC is powered on and led keeps blinking forever. I have to press power button to wake it. On second suspend, the PC suspends correctly. On third suspend, it is same as on first. And so on. Has anyone had this behavior and fixed it?










share|improve this question























  • Hi, I fixed both hibernate and suspend by switching up from ubuntu 18.04 to ubuntu 18.10. if you're not open to that, ubuntu 19.04 releases 27 days from now and it will fix it too. Does this work as an answer for you? if yes I'll fill out the answer and you can mark me as answer to help other people find the solution.

    – tatsu
    Mar 22 at 12:40













  • I have upgraded to Ubuntu 18.10 and it did not fix the problem. Suspend still works only on every second try.

    – Jan
    Mar 24 at 17:28











  • "upgraded" or installed?

    – tatsu
    Mar 25 at 6:38














0












0








0








I gave up debugging hibernate, but I would like to have suspend working. Now on first suspend try, screen goes off, red led starts blinking, but PC is powered on and led keeps blinking forever. I have to press power button to wake it. On second suspend, the PC suspends correctly. On third suspend, it is same as on first. And so on. Has anyone had this behavior and fixed it?










share|improve this question














I gave up debugging hibernate, but I would like to have suspend working. Now on first suspend try, screen goes off, red led starts blinking, but PC is powered on and led keeps blinking forever. I have to press power button to wake it. On second suspend, the PC suspends correctly. On third suspend, it is same as on first. And so on. Has anyone had this behavior and fixed it?







power-management






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 22 at 12:36









JanJan

1




1













  • Hi, I fixed both hibernate and suspend by switching up from ubuntu 18.04 to ubuntu 18.10. if you're not open to that, ubuntu 19.04 releases 27 days from now and it will fix it too. Does this work as an answer for you? if yes I'll fill out the answer and you can mark me as answer to help other people find the solution.

    – tatsu
    Mar 22 at 12:40













  • I have upgraded to Ubuntu 18.10 and it did not fix the problem. Suspend still works only on every second try.

    – Jan
    Mar 24 at 17:28











  • "upgraded" or installed?

    – tatsu
    Mar 25 at 6:38



















  • Hi, I fixed both hibernate and suspend by switching up from ubuntu 18.04 to ubuntu 18.10. if you're not open to that, ubuntu 19.04 releases 27 days from now and it will fix it too. Does this work as an answer for you? if yes I'll fill out the answer and you can mark me as answer to help other people find the solution.

    – tatsu
    Mar 22 at 12:40













  • I have upgraded to Ubuntu 18.10 and it did not fix the problem. Suspend still works only on every second try.

    – Jan
    Mar 24 at 17:28











  • "upgraded" or installed?

    – tatsu
    Mar 25 at 6:38

















Hi, I fixed both hibernate and suspend by switching up from ubuntu 18.04 to ubuntu 18.10. if you're not open to that, ubuntu 19.04 releases 27 days from now and it will fix it too. Does this work as an answer for you? if yes I'll fill out the answer and you can mark me as answer to help other people find the solution.

– tatsu
Mar 22 at 12:40







Hi, I fixed both hibernate and suspend by switching up from ubuntu 18.04 to ubuntu 18.10. if you're not open to that, ubuntu 19.04 releases 27 days from now and it will fix it too. Does this work as an answer for you? if yes I'll fill out the answer and you can mark me as answer to help other people find the solution.

– tatsu
Mar 22 at 12:40















I have upgraded to Ubuntu 18.10 and it did not fix the problem. Suspend still works only on every second try.

– Jan
Mar 24 at 17:28





I have upgraded to Ubuntu 18.10 and it did not fix the problem. Suspend still works only on every second try.

– Jan
Mar 24 at 17:28













"upgraded" or installed?

– tatsu
Mar 25 at 6:38





"upgraded" or installed?

– tatsu
Mar 25 at 6:38










1 Answer
1






active

oldest

votes


















0














I wrote the small utility to automate the shutdown, logoff Lock computer, suspend and hibernate. Change to sound as you see fit then compile and change chmod u+x filename. Run it from terminal. I rote a small script to double click and run in terminal.



#include <iostream>

using namespace std;

#define bold_on "e[1m"
#define bold_off "e[22m"
#define red_on "33[31m"
#define reset "33[0m"
#define yellow "33[33m"
#define b_green "33[1m33[32m"
//======================================================================

int main(int argc, char *argv)
{
char answer;

cout << b_green "nn Please make you choice? Any other key to quit the program. n" reset << endl;

cout << bold_on red_on " S" bold_off reset yellow" - Shutdown the Computer" << endl;
cout << bold_on red_on " R" bold_off reset yellow" - Restart the Computer"<< endl;
cout << bold_on red_on " L" bold_off reset yellow" - Logoff the Computer"<< endl;
cout << bold_on red_on " U" bold_off reset yellow" - Suspend the Computer"<< endl;
cout << bold_on red_on " H" bold_off reset yellow" - Hybernate the Computer"<< endl;
cout << bold_on red_on " X" bold_off reset yellow" - Lock the Computer nn" red_on;


cin >> answer;
if( answer=='L' ) {
system("paplay /home/dad/Music/desktop-logout.wav");
system("cinnamon-session-quit");

} else if( answer=='R' ) {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl reboot") ;

} else if (answer =='S') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl poweroff" );

} else if (answer =='U') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl suspend");

} else if (answer =='X') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("cinnamon-screensaver-command -l");

} else if (answer =='H') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl hibernate");
}
}


And here is my script on my desktop.



#!/bin/bash
/home/dad/LRS
exit





share|improve this answer


























  • systemctl hybernate shuts down my PC. There is lots of comments on that on the net and they involve heavy debugging which I tried almost all. Ubuntu can not be considered mature system if it can not properly use ACPI sleep states like Windows XP had - guess when - 17 YEARS AGO!

    – Jan
    Mar 24 at 17:32











  • @Jan chill hibernate and sleep worked on ubuntu way before they did on XP, that's 17 versions! but at version 18 they messed with some settings that for a small group of people (you, me, others...) prevented them from working. let's just put things back into context here.

    – tatsu
    Mar 25 at 6:45














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%2f1127813%2fubuntu-18-and-tinkpad-yoga-12-suspend-works-only-every-other-time-not-hibernat%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














I wrote the small utility to automate the shutdown, logoff Lock computer, suspend and hibernate. Change to sound as you see fit then compile and change chmod u+x filename. Run it from terminal. I rote a small script to double click and run in terminal.



#include <iostream>

using namespace std;

#define bold_on "e[1m"
#define bold_off "e[22m"
#define red_on "33[31m"
#define reset "33[0m"
#define yellow "33[33m"
#define b_green "33[1m33[32m"
//======================================================================

int main(int argc, char *argv)
{
char answer;

cout << b_green "nn Please make you choice? Any other key to quit the program. n" reset << endl;

cout << bold_on red_on " S" bold_off reset yellow" - Shutdown the Computer" << endl;
cout << bold_on red_on " R" bold_off reset yellow" - Restart the Computer"<< endl;
cout << bold_on red_on " L" bold_off reset yellow" - Logoff the Computer"<< endl;
cout << bold_on red_on " U" bold_off reset yellow" - Suspend the Computer"<< endl;
cout << bold_on red_on " H" bold_off reset yellow" - Hybernate the Computer"<< endl;
cout << bold_on red_on " X" bold_off reset yellow" - Lock the Computer nn" red_on;


cin >> answer;
if( answer=='L' ) {
system("paplay /home/dad/Music/desktop-logout.wav");
system("cinnamon-session-quit");

} else if( answer=='R' ) {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl reboot") ;

} else if (answer =='S') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl poweroff" );

} else if (answer =='U') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl suspend");

} else if (answer =='X') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("cinnamon-screensaver-command -l");

} else if (answer =='H') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl hibernate");
}
}


And here is my script on my desktop.



#!/bin/bash
/home/dad/LRS
exit





share|improve this answer


























  • systemctl hybernate shuts down my PC. There is lots of comments on that on the net and they involve heavy debugging which I tried almost all. Ubuntu can not be considered mature system if it can not properly use ACPI sleep states like Windows XP had - guess when - 17 YEARS AGO!

    – Jan
    Mar 24 at 17:32











  • @Jan chill hibernate and sleep worked on ubuntu way before they did on XP, that's 17 versions! but at version 18 they messed with some settings that for a small group of people (you, me, others...) prevented them from working. let's just put things back into context here.

    – tatsu
    Mar 25 at 6:45


















0














I wrote the small utility to automate the shutdown, logoff Lock computer, suspend and hibernate. Change to sound as you see fit then compile and change chmod u+x filename. Run it from terminal. I rote a small script to double click and run in terminal.



#include <iostream>

using namespace std;

#define bold_on "e[1m"
#define bold_off "e[22m"
#define red_on "33[31m"
#define reset "33[0m"
#define yellow "33[33m"
#define b_green "33[1m33[32m"
//======================================================================

int main(int argc, char *argv)
{
char answer;

cout << b_green "nn Please make you choice? Any other key to quit the program. n" reset << endl;

cout << bold_on red_on " S" bold_off reset yellow" - Shutdown the Computer" << endl;
cout << bold_on red_on " R" bold_off reset yellow" - Restart the Computer"<< endl;
cout << bold_on red_on " L" bold_off reset yellow" - Logoff the Computer"<< endl;
cout << bold_on red_on " U" bold_off reset yellow" - Suspend the Computer"<< endl;
cout << bold_on red_on " H" bold_off reset yellow" - Hybernate the Computer"<< endl;
cout << bold_on red_on " X" bold_off reset yellow" - Lock the Computer nn" red_on;


cin >> answer;
if( answer=='L' ) {
system("paplay /home/dad/Music/desktop-logout.wav");
system("cinnamon-session-quit");

} else if( answer=='R' ) {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl reboot") ;

} else if (answer =='S') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl poweroff" );

} else if (answer =='U') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl suspend");

} else if (answer =='X') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("cinnamon-screensaver-command -l");

} else if (answer =='H') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl hibernate");
}
}


And here is my script on my desktop.



#!/bin/bash
/home/dad/LRS
exit





share|improve this answer


























  • systemctl hybernate shuts down my PC. There is lots of comments on that on the net and they involve heavy debugging which I tried almost all. Ubuntu can not be considered mature system if it can not properly use ACPI sleep states like Windows XP had - guess when - 17 YEARS AGO!

    – Jan
    Mar 24 at 17:32











  • @Jan chill hibernate and sleep worked on ubuntu way before they did on XP, that's 17 versions! but at version 18 they messed with some settings that for a small group of people (you, me, others...) prevented them from working. let's just put things back into context here.

    – tatsu
    Mar 25 at 6:45
















0












0








0







I wrote the small utility to automate the shutdown, logoff Lock computer, suspend and hibernate. Change to sound as you see fit then compile and change chmod u+x filename. Run it from terminal. I rote a small script to double click and run in terminal.



#include <iostream>

using namespace std;

#define bold_on "e[1m"
#define bold_off "e[22m"
#define red_on "33[31m"
#define reset "33[0m"
#define yellow "33[33m"
#define b_green "33[1m33[32m"
//======================================================================

int main(int argc, char *argv)
{
char answer;

cout << b_green "nn Please make you choice? Any other key to quit the program. n" reset << endl;

cout << bold_on red_on " S" bold_off reset yellow" - Shutdown the Computer" << endl;
cout << bold_on red_on " R" bold_off reset yellow" - Restart the Computer"<< endl;
cout << bold_on red_on " L" bold_off reset yellow" - Logoff the Computer"<< endl;
cout << bold_on red_on " U" bold_off reset yellow" - Suspend the Computer"<< endl;
cout << bold_on red_on " H" bold_off reset yellow" - Hybernate the Computer"<< endl;
cout << bold_on red_on " X" bold_off reset yellow" - Lock the Computer nn" red_on;


cin >> answer;
if( answer=='L' ) {
system("paplay /home/dad/Music/desktop-logout.wav");
system("cinnamon-session-quit");

} else if( answer=='R' ) {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl reboot") ;

} else if (answer =='S') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl poweroff" );

} else if (answer =='U') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl suspend");

} else if (answer =='X') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("cinnamon-screensaver-command -l");

} else if (answer =='H') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl hibernate");
}
}


And here is my script on my desktop.



#!/bin/bash
/home/dad/LRS
exit





share|improve this answer















I wrote the small utility to automate the shutdown, logoff Lock computer, suspend and hibernate. Change to sound as you see fit then compile and change chmod u+x filename. Run it from terminal. I rote a small script to double click and run in terminal.



#include <iostream>

using namespace std;

#define bold_on "e[1m"
#define bold_off "e[22m"
#define red_on "33[31m"
#define reset "33[0m"
#define yellow "33[33m"
#define b_green "33[1m33[32m"
//======================================================================

int main(int argc, char *argv)
{
char answer;

cout << b_green "nn Please make you choice? Any other key to quit the program. n" reset << endl;

cout << bold_on red_on " S" bold_off reset yellow" - Shutdown the Computer" << endl;
cout << bold_on red_on " R" bold_off reset yellow" - Restart the Computer"<< endl;
cout << bold_on red_on " L" bold_off reset yellow" - Logoff the Computer"<< endl;
cout << bold_on red_on " U" bold_off reset yellow" - Suspend the Computer"<< endl;
cout << bold_on red_on " H" bold_off reset yellow" - Hybernate the Computer"<< endl;
cout << bold_on red_on " X" bold_off reset yellow" - Lock the Computer nn" red_on;


cin >> answer;
if( answer=='L' ) {
system("paplay /home/dad/Music/desktop-logout.wav");
system("cinnamon-session-quit");

} else if( answer=='R' ) {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl reboot") ;

} else if (answer =='S') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl poweroff" );

} else if (answer =='U') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl suspend");

} else if (answer =='X') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("cinnamon-screensaver-command -l");

} else if (answer =='H') {
system("paplay /home/dad/Music/desktop-logout.wav");
system("systemctl hibernate");
}
}


And here is my script on my desktop.



#!/bin/bash
/home/dad/LRS
exit






share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 22 at 20:14









cmak.fr

2,4441121




2,4441121










answered Mar 22 at 15:24









MichaelMichael

1




1













  • systemctl hybernate shuts down my PC. There is lots of comments on that on the net and they involve heavy debugging which I tried almost all. Ubuntu can not be considered mature system if it can not properly use ACPI sleep states like Windows XP had - guess when - 17 YEARS AGO!

    – Jan
    Mar 24 at 17:32











  • @Jan chill hibernate and sleep worked on ubuntu way before they did on XP, that's 17 versions! but at version 18 they messed with some settings that for a small group of people (you, me, others...) prevented them from working. let's just put things back into context here.

    – tatsu
    Mar 25 at 6:45





















  • systemctl hybernate shuts down my PC. There is lots of comments on that on the net and they involve heavy debugging which I tried almost all. Ubuntu can not be considered mature system if it can not properly use ACPI sleep states like Windows XP had - guess when - 17 YEARS AGO!

    – Jan
    Mar 24 at 17:32











  • @Jan chill hibernate and sleep worked on ubuntu way before they did on XP, that's 17 versions! but at version 18 they messed with some settings that for a small group of people (you, me, others...) prevented them from working. let's just put things back into context here.

    – tatsu
    Mar 25 at 6:45



















systemctl hybernate shuts down my PC. There is lots of comments on that on the net and they involve heavy debugging which I tried almost all. Ubuntu can not be considered mature system if it can not properly use ACPI sleep states like Windows XP had - guess when - 17 YEARS AGO!

– Jan
Mar 24 at 17:32





systemctl hybernate shuts down my PC. There is lots of comments on that on the net and they involve heavy debugging which I tried almost all. Ubuntu can not be considered mature system if it can not properly use ACPI sleep states like Windows XP had - guess when - 17 YEARS AGO!

– Jan
Mar 24 at 17:32













@Jan chill hibernate and sleep worked on ubuntu way before they did on XP, that's 17 versions! but at version 18 they messed with some settings that for a small group of people (you, me, others...) prevented them from working. let's just put things back into context here.

– tatsu
Mar 25 at 6:45







@Jan chill hibernate and sleep worked on ubuntu way before they did on XP, that's 17 versions! but at version 18 they messed with some settings that for a small group of people (you, me, others...) prevented them from working. let's just put things back into context here.

– tatsu
Mar 25 at 6:45




















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%2f1127813%2fubuntu-18-and-tinkpad-yoga-12-suspend-works-only-every-other-time-not-hibernat%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

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局