Ubuntu 17.10 on Thinkpad Yoga won't sleep












1














I've done a fresh install on my Lenovo Thinkpad Yoga S1 with Ubuntu 17.10.
The machine won't go sleep. Actually, it seems it does try to put the system into the sleep mode then instantly wakes up showing the login screen. Both menu option (Pause) and closing lid cause the same, invalid behaviour. I've already configured via Gnome Tweak to fall asleep on lid close but it does not change behaviour.



Looking forward to any help.
Is there any method to investigate, what causes immediate wake-up?



Regards,



Piotr










share|improve this question



























    1














    I've done a fresh install on my Lenovo Thinkpad Yoga S1 with Ubuntu 17.10.
    The machine won't go sleep. Actually, it seems it does try to put the system into the sleep mode then instantly wakes up showing the login screen. Both menu option (Pause) and closing lid cause the same, invalid behaviour. I've already configured via Gnome Tweak to fall asleep on lid close but it does not change behaviour.



    Looking forward to any help.
    Is there any method to investigate, what causes immediate wake-up?



    Regards,



    Piotr










    share|improve this question

























      1












      1








      1


      1





      I've done a fresh install on my Lenovo Thinkpad Yoga S1 with Ubuntu 17.10.
      The machine won't go sleep. Actually, it seems it does try to put the system into the sleep mode then instantly wakes up showing the login screen. Both menu option (Pause) and closing lid cause the same, invalid behaviour. I've already configured via Gnome Tweak to fall asleep on lid close but it does not change behaviour.



      Looking forward to any help.
      Is there any method to investigate, what causes immediate wake-up?



      Regards,



      Piotr










      share|improve this question













      I've done a fresh install on my Lenovo Thinkpad Yoga S1 with Ubuntu 17.10.
      The machine won't go sleep. Actually, it seems it does try to put the system into the sleep mode then instantly wakes up showing the login screen. Both menu option (Pause) and closing lid cause the same, invalid behaviour. I've already configured via Gnome Tweak to fall asleep on lid close but it does not change behaviour.



      Looking forward to any help.
      Is there any method to investigate, what causes immediate wake-up?



      Regards,



      Piotr







      suspend power-management lenovo 17.10 thinkpad






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 26 '17 at 16:22









      Peter

      213




      213






















          2 Answers
          2






          active

          oldest

          votes


















          0














          I would be curious to see what you get while running "tail -f /var/log/syslog" being run while you suspend the system.



          To help with comparison, I closed the lid for about thirty seconds and then opened it back up in order to produce said log. I have copied it to PasteBin.



          I'm curious to see what your log says during those points of trying to sleep.






          share|improve this answer





















          • The syslog is here. I just found a temporary solution - the reason is an XHC (XHCI) controller waking up my notebook even if there are no devices attached to it (at least external ones). Issuing: sudo sh -c "echo XHC > /proc/acpi/wakeup" helps but I need to it every restart.
            – Peter
            Nov 28 '17 at 7:09





















          0














          I had the same problem with my Lenovo Yoga Thinkpad. I used your solution and simply created script in init.d:



          #!/bin/sh
          # Disable XHC wake
          #
          case "$1" in
          start) sudo sh -c "echo XHC > /proc/acpi/wakeup"
          ;;
          stop) sudo sh -c "echo XHC > /proc/acpi/wakeup"
          ;;
          esac
          exit 0


          Then link to rc5.d.
          Maybe not the smartest solution, but worked for me.






          share|improve this answer





















            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%2f980453%2fubuntu-17-10-on-thinkpad-yoga-wont-sleep%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









            0














            I would be curious to see what you get while running "tail -f /var/log/syslog" being run while you suspend the system.



            To help with comparison, I closed the lid for about thirty seconds and then opened it back up in order to produce said log. I have copied it to PasteBin.



            I'm curious to see what your log says during those points of trying to sleep.






            share|improve this answer





















            • The syslog is here. I just found a temporary solution - the reason is an XHC (XHCI) controller waking up my notebook even if there are no devices attached to it (at least external ones). Issuing: sudo sh -c "echo XHC > /proc/acpi/wakeup" helps but I need to it every restart.
              – Peter
              Nov 28 '17 at 7:09


















            0














            I would be curious to see what you get while running "tail -f /var/log/syslog" being run while you suspend the system.



            To help with comparison, I closed the lid for about thirty seconds and then opened it back up in order to produce said log. I have copied it to PasteBin.



            I'm curious to see what your log says during those points of trying to sleep.






            share|improve this answer





















            • The syslog is here. I just found a temporary solution - the reason is an XHC (XHCI) controller waking up my notebook even if there are no devices attached to it (at least external ones). Issuing: sudo sh -c "echo XHC > /proc/acpi/wakeup" helps but I need to it every restart.
              – Peter
              Nov 28 '17 at 7:09
















            0












            0








            0






            I would be curious to see what you get while running "tail -f /var/log/syslog" being run while you suspend the system.



            To help with comparison, I closed the lid for about thirty seconds and then opened it back up in order to produce said log. I have copied it to PasteBin.



            I'm curious to see what your log says during those points of trying to sleep.






            share|improve this answer












            I would be curious to see what you get while running "tail -f /var/log/syslog" being run while you suspend the system.



            To help with comparison, I closed the lid for about thirty seconds and then opened it back up in order to produce said log. I have copied it to PasteBin.



            I'm curious to see what your log says during those points of trying to sleep.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 26 '17 at 17:53









            lupaanst

            112




            112












            • The syslog is here. I just found a temporary solution - the reason is an XHC (XHCI) controller waking up my notebook even if there are no devices attached to it (at least external ones). Issuing: sudo sh -c "echo XHC > /proc/acpi/wakeup" helps but I need to it every restart.
              – Peter
              Nov 28 '17 at 7:09




















            • The syslog is here. I just found a temporary solution - the reason is an XHC (XHCI) controller waking up my notebook even if there are no devices attached to it (at least external ones). Issuing: sudo sh -c "echo XHC > /proc/acpi/wakeup" helps but I need to it every restart.
              – Peter
              Nov 28 '17 at 7:09


















            The syslog is here. I just found a temporary solution - the reason is an XHC (XHCI) controller waking up my notebook even if there are no devices attached to it (at least external ones). Issuing: sudo sh -c "echo XHC > /proc/acpi/wakeup" helps but I need to it every restart.
            – Peter
            Nov 28 '17 at 7:09






            The syslog is here. I just found a temporary solution - the reason is an XHC (XHCI) controller waking up my notebook even if there are no devices attached to it (at least external ones). Issuing: sudo sh -c "echo XHC > /proc/acpi/wakeup" helps but I need to it every restart.
            – Peter
            Nov 28 '17 at 7:09















            0














            I had the same problem with my Lenovo Yoga Thinkpad. I used your solution and simply created script in init.d:



            #!/bin/sh
            # Disable XHC wake
            #
            case "$1" in
            start) sudo sh -c "echo XHC > /proc/acpi/wakeup"
            ;;
            stop) sudo sh -c "echo XHC > /proc/acpi/wakeup"
            ;;
            esac
            exit 0


            Then link to rc5.d.
            Maybe not the smartest solution, but worked for me.






            share|improve this answer


























              0














              I had the same problem with my Lenovo Yoga Thinkpad. I used your solution and simply created script in init.d:



              #!/bin/sh
              # Disable XHC wake
              #
              case "$1" in
              start) sudo sh -c "echo XHC > /proc/acpi/wakeup"
              ;;
              stop) sudo sh -c "echo XHC > /proc/acpi/wakeup"
              ;;
              esac
              exit 0


              Then link to rc5.d.
              Maybe not the smartest solution, but worked for me.






              share|improve this answer
























                0












                0








                0






                I had the same problem with my Lenovo Yoga Thinkpad. I used your solution and simply created script in init.d:



                #!/bin/sh
                # Disable XHC wake
                #
                case "$1" in
                start) sudo sh -c "echo XHC > /proc/acpi/wakeup"
                ;;
                stop) sudo sh -c "echo XHC > /proc/acpi/wakeup"
                ;;
                esac
                exit 0


                Then link to rc5.d.
                Maybe not the smartest solution, but worked for me.






                share|improve this answer












                I had the same problem with my Lenovo Yoga Thinkpad. I used your solution and simply created script in init.d:



                #!/bin/sh
                # Disable XHC wake
                #
                case "$1" in
                start) sudo sh -c "echo XHC > /proc/acpi/wakeup"
                ;;
                stop) sudo sh -c "echo XHC > /proc/acpi/wakeup"
                ;;
                esac
                exit 0


                Then link to rc5.d.
                Maybe not the smartest solution, but worked for me.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 14 '18 at 15:12









                Jiri

                1




                1






























                    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.





                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f980453%2fubuntu-17-10-on-thinkpad-yoga-wont-sleep%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

                    Ellipse (mathématiques)

                    Quarter-circle Tiles

                    Mont Emei