{"id":101,"date":"2012-05-24T20:42:03","date_gmt":"2012-05-24T20:42:03","guid":{"rendered":"http:\/\/info.ffteixeira.net\/2012\/05\/24\/xhci-usb-3-0-kernel-module-prevents-suspend-sl6\/"},"modified":"2012-05-24T20:42:03","modified_gmt":"2012-05-24T20:42:03","slug":"xhci-usb-3-0-kernel-module-prevents-suspend-sl6","status":"publish","type":"post","link":"https:\/\/blog.ffteixeira.net\/?p=101","title":{"rendered":"XHCI (USB 3.0) kernel Module Prevents Suspend SL6"},"content":{"rendered":"<p>I have a HP Elitebook 8460p , and the following works flawlessly for me:<\/p>\n<p>1) As root create <strong>\/etc\/pm\/<\/strong><strong>sleep.d\/<\/strong><strong>20_custom-<\/strong><strong>xhci_hcd<\/strong> with the following contents:<\/p>\n<p><em>#!\/bin\/sh<\/em><br \/>\n<em> # File: &#8220;\/etc\/pm\/<\/em><em>sleep.d\/<\/em><em>20_custom-<\/em><em>xhci_hcd&#8221;<\/em><em>.<\/em><br \/>\n<em> TMPLIST=<\/em><em>\/tmp\/xhci-<\/em><em>dev-list<\/em><\/p>\n<p><em>case &#8220;${1}&#8221; in<\/em><br \/>\n<em>\u00a0hibernate|<\/em><em>suspend)<\/em><br \/>\n<em> \u00a0\u00a0\u00a0\u00a0echo -n &#8221; &gt; $TMPLIST<\/em><br \/>\n<em> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0for i in `ls \/sys\/bus\/<\/em><em>pci\/drivers\/<\/em><em>xhci_hcd\/ | egrep &#8216;[0-9a-<\/em><em>z]+:[0-<\/em><em>9a-z]+<\/em><em>:.*$&#8217;`; do<\/em><br \/>\n<em> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# Unbind xhci_hcd for first device XXXX:XX:XX.X:<\/em><br \/>\n<em> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0echo -n &#8220;$i&#8221; | tee \/sys\/bus\/<\/em><em>pci\/drivers\/<\/em><em>xhci_hcd\/<\/em><em>unbind<\/em><br \/>\n<em> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0echo &#8220;$i&#8221; &gt;&gt; $TMPLIST<\/em><br \/>\n<em> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0done<\/em><br \/>\n<em> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0;;<\/em><br \/>\n<em>\u00a0resume|<\/em><em>thaw)<\/em><br \/>\n<em> \u00a0\u00a0\u00a0\u00a0for i in `cat $TMPLIST`; do<\/em><br \/>\n<em> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# Bind xhci_hcd for first device XXXX:XX:XX.X:<\/em><br \/>\n<em> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0echo -n &#8220;$i&#8221; | tee \/sys\/bus\/<\/em><em>pci\/drivers\/<\/em><em>xhci_hcd\/<\/em><em>bind<\/em><br \/>\n<em> \u00a0\u00a0\u00a0\u00a0done<\/em><br \/>\n<em> \u00a0\u00a0\u00a0\u00a0rm $TMPLIST<\/em><br \/>\n<em> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0;;<\/em><br \/>\n<em> esac<\/em><\/p>\n<p>2) <strong>chmod 755 \/etc\/pm\/<\/strong><strong>sleep.d\/<\/strong><strong>20_custom-<\/strong><strong>xhci_hcd<\/strong><\/p>\n<address>Powered by Dale Lukas Peterson (hazelnusse) at <a title=\"Bugs\" href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/linux\/+bug\/522998\" target=\"_blank\" rel=\"noopener noreferrer\">bugs<\/a><\/address>\n","protected":false},"excerpt":{"rendered":"<p>I have a HP Elitebook 8460p , and the following works flawlessly for me: 1) As root create \/etc\/pm\/sleep.d\/20_custom-xhci_hcd with the following contents: #!\/bin\/sh # File: &#8220;\/etc\/pm\/sleep.d\/20_custom-xhci_hcd&#8221;. TMPLIST=\/tmp\/xhci-dev-list case &#8220;${1}&#8221; in \u00a0hibernate|suspend) \u00a0\u00a0\u00a0\u00a0echo -n &#8221; &gt; $TMPLIST \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0for i in &hellip; <a href=\"https:\/\/blog.ffteixeira.net\/?p=101\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-101","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=101"}],"version-history":[{"count":0,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/101\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}