{"id":10,"date":"2008-09-22T13:10:56","date_gmt":"2008-09-22T18:10:56","guid":{"rendered":"http:\/\/blog.bitsofgenius.com\/?p=10"},"modified":"2010-12-05T02:11:12","modified_gmt":"2010-12-05T06:11:12","slug":"rdc-and-hibernation-on-windows-xp-pro-media-center","status":"publish","type":"post","link":"https:\/\/blog.bitsofgenius.com\/?p=10","title":{"rendered":"RDC and Hibernation on Windows XP Pro \/ Media Center"},"content":{"rendered":"<p>I encountered some strange behavior in Windows XP and Media Center versions, where hibernation or shutdown would hang after the system had serviced RDC connections.\u00a0 It took a while to solve it.<\/p>\n<blockquote><p><em>RDC into a computer that hibernates?!<\/em> Before jumping to conclusions, it is just a technique I use to access a mobile laptop from my desktop computer, while it is connected at the office.\u00a0 By RDC&#8217;ing into the laptop, it just makes it easier to run both from the same keyboard, mouse and display.<\/p><\/blockquote>\n<p>So here&#8217;s the scenario:<\/p>\n<ul>\n<li>The laptop is brought out of hibernation, I login, and enable the network connection it is going to use.<\/li>\n<li>I then go to another computer, and make an RDC connection to the laptop.<\/li>\n<li>When complete, I either log off the laptop, or simply disconnect the RDC connection.<\/li>\n<li>I then hit the power button to start hibernation, or request a shutdown.<\/li>\n<li>Shutdown will start, but hangs during &#8220;Saving your settings&#8221;.\u00a0 Hibernation will just not start.\u00a0 <em>Note: If I login to the laptop on its keyboard before starting hibernation or shutdown, it makes no difference.<\/em><\/li>\n<\/ul>\n<p>The problem seems to occur somewhere in the network layer.\u00a0 Although the RDC connection was gracefully closed, either a network connection or the RDC service itself is not in a clean state.\u00a0 Initiating the hibernation or shutdown at this point places the computer in a brain-dead state.\u00a0 I have had to do a hard reset or power down to recover in each case.<\/p>\n<p><strong>Resolution:<\/strong><\/p>\n<p>After closing the RDC connection and logging directly onto the laptop itself, performing either of these actions will put the computer into a clean state:<\/p>\n<ul>\n<li>Disable the network connection, or<\/li>\n<li>Open a console window, and execute <strong>ipconfig \/release [connection_name]<\/strong> to release the IP address assigned<\/li>\n<\/ul>\n<p>Just unplugging the cable (or, for wireless, disabling the radio) does not resolve the problem.\u00a0 By releasing the ip address or disabling the connection in the network connections control panel applet (which releases the ip address as part of the disable), evidently some event is fired which clears out any orphaned dependency at the network layer.<\/p>\n<p>After this action, the shutdown or hibernation sequences will not hang the computer.<\/p>\n<p><strong>&lt;ubergeeking&gt;<\/strong><\/p>\n<p>So, having solved this, I now use a single batch file through RDC to prepare the laptop to hibernate, and to actually launch the hibernatation process.\u00a0 It makes getting out of the office a few seconds faster&#8230;<\/p>\n<p>\ud83d\ude09<\/p>\n<pre lang=\"text\" line=\"1\" escaped=\"true\">\r\n@echo off\r\n\r\nREM GoHome.bat -- put the laptop into hibernation after releasing network resources.\r\n\r\necho This will release all network adapters and hibernate the computer.\r\necho Press any key to continue, or Ctrl+C or Ctrl+Break to abort.\r\necho.\r\npause &gt; nul\r\n\r\nipconfig \/release *\r\n\r\nstart rundll32 Powrprof.dll,SetSuspendState\r\nexit\r\n<\/pre>\n<p><strong>&lt;\/ubergeeking&gt;<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I encountered some strange behavior in Windows XP and Media Center versions, where hibernation or shutdown would hang after the system had serviced RDC connections.\u00a0 It took a while to solve it. RDC into a computer that hibernates?! Before jumping to conclusions, it is just a technique I use to access a mobile laptop from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-tips-and-tricks"],"_links":{"self":[{"href":"https:\/\/blog.bitsofgenius.com\/index.php?rest_route=\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bitsofgenius.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bitsofgenius.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bitsofgenius.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bitsofgenius.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10"}],"version-history":[{"count":0,"href":"https:\/\/blog.bitsofgenius.com\/index.php?rest_route=\/wp\/v2\/posts\/10\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.bitsofgenius.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bitsofgenius.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bitsofgenius.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}