{"id":55,"date":"2007-08-05T10:27:55","date_gmt":"2007-08-05T18:27:55","guid":{"rendered":"http:\/\/intr.overt.org\/blog\/?p=55"},"modified":"2007-08-05T10:27:55","modified_gmt":"2007-08-05T18:27:55","slug":"suspend-not-as-suspenseful-as-once-thought","status":"publish","type":"post","link":"https:\/\/blog.intr.overt.org\/?p=55","title":{"rendered":"Suspend not as suspenseful as once thought"},"content":{"rendered":"<p>Shock! A blog post that doesn&#8217;t have anything to do with SD cards. \ud83d\ude42<\/p>\n<p>My personal life has been rather hectic over the last few weeks so I&#8217;ve had precious litte time to do any real hacking, but I did manage to find time yesterday to get Linux up and running on my new work laptop. It&#8217;s a Macbook Pro, and the first piece of Apple hardware that I&#8217;ve ever had in my possession (I&#8217;m pleased to say I&#8217;ve managed to never buy any Apple hardware). It&#8217;s one of the new 15&#8243; Santa Rosa models and it&#8217;s not too bad. Later, I think I&#8217;ll write a more detailed description of what it took to get going, but right now I just want to make an observation about Suspend\/Resume.<\/p>\n<p>And that observation is that we&#8217;ve really come a long way. I was able to do a raw suspend (echo &#8216;mem&#8217; > \/sys\/power\/state) and resume and it actually came back to life. There are admittedly some niggles with the graphics (nvidia binary driver) which means you need to vt switch away from X and back after resuming to get your picture, but I was amazed to see the wireless and USB come right back.<\/p>\n<p>And it gets even more amazing. With suspend\/resume happiness fresh in my mind, I decided to be brave and see what my desktop machine could do. It&#8217;s a Athlon X2 based machine with nvidia chipset and graphics and an Audigy2 sound card. Traditionally, suspend\/resume has had a worst record on the desktop because you&#8217;re more likely to encounter a driver that can&#8217;t cope but I figured I&#8217;d give it a go &#8211; the most important requirement was that the HD controller driver (sata_nv) was suspend aware and this support went in around 2.6.20 &#8211; nobody wants to corrupt their disks when trying to suspend (I&#8217;ve been there before).<\/p>\n<p>Like most desktop&#8217;s, my one&#8217;s BIOS offers a choice between S1 and S3 suspend, and I tried both of them out &#8211; and surprise, surprise, they both worked! Everything came back like I left it.<\/p>\n<p>I also took the opportunity to use my friendly Kill-A-Watt to see what the power consumption was like, and I made some interesting observations. My desktop seems to idle around 120W which can rise to around 170W under non-graphics load (I don&#8217;t know what a 3D load would do, but I could see it pushing up to around 250W). In S1, it drops to 85W and in S3 to 10W. Amusingly, it still pulls 7W when &#8216;off&#8217;. That seems like a hell of a lot just to support Wake-On-LAN!<\/p>\n<p>But the moral of the story is that a modern system with a modern kernel seems to have a pretty good chance of Just Working(tm) when it comes to suspend and resume.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Shock! A blog post that doesn&#8217;t have anything to do with SD cards. \ud83d\ude42 My personal life has been rather hectic over the last few weeks so I&#8217;ve had precious litte time to do any real hacking, but I did manage to find time yesterday to get Linux up and running on my new work [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-rambling"],"_links":{"self":[{"href":"https:\/\/blog.intr.overt.org\/index.php?rest_route=\/wp\/v2\/posts\/55"}],"collection":[{"href":"https:\/\/blog.intr.overt.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.intr.overt.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.intr.overt.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.intr.overt.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=55"}],"version-history":[{"count":0,"href":"https:\/\/blog.intr.overt.org\/index.php?rest_route=\/wp\/v2\/posts\/55\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.intr.overt.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.intr.overt.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.intr.overt.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}