{"id":484,"date":"2020-09-05T10:11:21","date_gmt":"2020-09-05T00:11:21","guid":{"rendered":"https:\/\/chuchuva.com\/pavel\/?p=484"},"modified":"2020-09-05T10:11:21","modified_gmt":"2020-09-05T00:11:21","slug":"usb-extensible-host-controller-preventing-computer-from-sleeping","status":"publish","type":"post","link":"https:\/\/chuchuva.com\/pavel\/2020\/09\/usb-extensible-host-controller-preventing-computer-from-sleeping\/","title":{"rendered":"USB eXtensible Host Controller Preventing Computer from Sleeping"},"content":{"rendered":"\n<p>Recently I noticed that my desktop computer didn&#8217;t go to sleep automatically. I have Windows 10.<\/p>\n\n\n\n<p>As an experiment, I manually put my computer to sleep by opening Start menu, clicking Power button, then Sleep:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"343\" data-attachment-id=\"486\" data-permalink=\"https:\/\/chuchuva.com\/pavel\/2020\/09\/usb-extensible-host-controller-preventing-computer-from-sleeping\/image-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-1.png?fit=550%2C343&amp;ssl=1\" data-orig-size=\"550,343\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-1.png?fit=300%2C187&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-1.png?fit=550%2C343&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-1.png?resize=550%2C343&#038;ssl=1\" alt=\"\" class=\"wp-image-486\" srcset=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-1.png?w=550&amp;ssl=1 550w, https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-1.png?resize=300%2C187&amp;ssl=1 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/figure>\n\n\n\n<p>My computer went to sleep for about 5 seconds and then woke up without me doing anything.<\/p>\n\n\n\n<p>Common advice to troubleshoot Windows sleep problems is to use powercfg -lastwake command. Here&#8217;s the output that I received:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"209\" data-attachment-id=\"487\" data-permalink=\"https:\/\/chuchuva.com\/pavel\/2020\/09\/usb-extensible-host-controller-preventing-computer-from-sleeping\/image-2-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-2.png?fit=993%2C343&amp;ssl=1\" data-orig-size=\"993,343\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-2\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-2.png?fit=300%2C104&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-2.png?fit=604%2C209&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-2.png?resize=604%2C209&#038;ssl=1\" alt=\"\" class=\"wp-image-487\" srcset=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-2.png?w=993&amp;ssl=1 993w, https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-2.png?resize=300%2C104&amp;ssl=1 300w, https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-2.png?resize=768%2C265&amp;ssl=1 768w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>Wake History Count - 1\r\nWake History &#91;0]\r\n  Wake Source Count - 1\r\n  Wake Source &#91;0]\r\n    Type: Device\r\n    Instance Path: PCI\\VEN_8086&amp;DEV_A36D&amp;SUBSYS_50071458&amp;REV_10\\3&amp;11583659&amp;0&amp;A0\r\n    Friendly Name: Intel(R) USB 3.1 eXtensible Host Controller - 1.10 (Microsoft)\r\n    Description: USB xHCI Compliant Host Controller\r\n    Manufacturer: Generic USB xHCI Host Controller<\/code><\/pre>\n\n\n\n<p>Why would Intel(R) USB 3.1 eXtensible Host Controller wake up my computer? I was stuck trying to figure that out. Then I saw <a href=\"https:\/\/superuser.com\/a\/1547634\/2210\">a post on Super User website<\/a> and realized: it&#8217;s actually one of USB devices <strong>connected<\/strong> to USB host controller that wakes my computer up!<\/p>\n\n\n\n<p>I opened Device Manager and switched view to &#8216;Devices by connection&#8217;:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"598\" height=\"379\" data-attachment-id=\"488\" data-permalink=\"https:\/\/chuchuva.com\/pavel\/2020\/09\/usb-extensible-host-controller-preventing-computer-from-sleeping\/image-3-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-3.png?fit=598%2C379&amp;ssl=1\" data-orig-size=\"598,379\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-3\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-3.png?fit=300%2C190&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-3.png?fit=598%2C379&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-3.png?resize=598%2C379&#038;ssl=1\" alt=\"\" class=\"wp-image-488\" srcset=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-3.png?w=598&amp;ssl=1 598w, https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-3.png?resize=300%2C190&amp;ssl=1 300w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><\/figure>\n\n\n\n<p>I had 4 USB devices connected to the host controller:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Uninterruptible Power Supply (UPS)<\/li><li>Keyboard<\/li><li>Mouse<\/li><li>Webcam<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"514\" data-attachment-id=\"489\" data-permalink=\"https:\/\/chuchuva.com\/pavel\/2020\/09\/usb-extensible-host-controller-preventing-computer-from-sleeping\/image-4-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-4.png?fit=731%2C622&amp;ssl=1\" data-orig-size=\"731,622\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-4\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-4.png?fit=300%2C255&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-4.png?fit=604%2C514&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-4.png?resize=604%2C514&#038;ssl=1\" alt=\"\" class=\"wp-image-489\" srcset=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-4.png?w=731&amp;ssl=1 731w, https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2020\/09\/image-4.png?resize=300%2C255&amp;ssl=1 300w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/figure>\n\n\n\n<p>I bought UPS not long ago so most likely it was the actual culprit. To confirm I disconnected it from my computer and put it to sleep again. This time it stayed asleep as intended. Mystery solved.<\/p>\n\n\n\n<p>In the end I decided to keep UPS disconnected from my computer. Initially I connected it using USB cable so that Windows 10 would automatically hibernate if there is power loss. I&#8217;d love to figure out how to configure Windows so that it goes to sleep after 15 minutes of inactivity but wakes up if there is power loss, wait for 1 minute and then hibernates by dumping all memory to disk.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I noticed that my desktop computer didn&#8217;t go to sleep automatically. I have Windows 10. As an experiment, I manually put my computer to sleep by opening Start menu, clicking Power button, then Sleep: My computer went to sleep for about 5 seconds and then woke up without me doing anything. Common advice to &hellip; <a href=\"https:\/\/chuchuva.com\/pavel\/2020\/09\/usb-extensible-host-controller-preventing-computer-from-sleeping\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">USB eXtensible Host Controller Preventing Computer from Sleeping<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[38,24],"class_list":["post-484","post","type-post","status-publish","format-standard","hentry","category-software","tag-usb","tag-windows"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/posts\/484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/comments?post=484"}],"version-history":[{"count":0,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/posts\/484\/revisions"}],"wp:attachment":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/media?parent=484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/categories?post=484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/tags?post=484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}