{"id":673,"date":"2010-03-18T19:25:23","date_gmt":"2010-03-18T12:25:23","guid":{"rendered":"http:\/\/www.jfdesignnet.com\/?p=673"},"modified":"2010-03-18T19:25:23","modified_gmt":"2010-03-18T12:25:23","slug":"coming-back-out-from-str","status":"publish","type":"post","link":"https:\/\/www.jfdesignnet.com\/?p=673","title":{"rendered":"Coming back out from STR"},"content":{"rendered":"<p style=\"text-align: justify;\">Today I install KLIXs-2010.1 beta version to my one of my niece desktop computer, and there are no difficulties since her hardware was pretty decent and highly supported by KLIXs. Installing nvidia-190 proprietary driver for her 6600 NVidia card without difficulties and got 3D Desktop effects via KWin without hassles also, she&#8217;s happy and I prepare to go home. Suddenly she interrupt my way go and asking about suspending function, she ask why linux couldn&#8217;t wake up everytime she suspend to standby mode. Blah &#8230; nonsense &#8230; I check it out, and found that the system can go to S3 mode without difficulties, but couldn&#8217;t wake up during restoring video content on resume. Hmmm &#8230; this must be problem specific to 6600 since I&#8217;ve got 8600GT and can resume the content without problems. I remember once I&#8217;ve download some script that preserve to save the content of the display before suspending and restoring them during resume session along time ago. I&#8217;m not writing it and I forgot where I got that scripts, so here is I share in case you need :<\/p>\n<p>Here is the script :<\/p>\n<blockquote><p>#!\/bin\/bash<\/p>\n<p>kdialog &#8211;warningcontinuecancel &#8216;Suspending to ram!&#8217;<br \/>\nif  [ $? = 0 ]; then<br \/>\n# discover video card&#8217;s ID<br \/>\nID=`lspci | grep  VGA | awk &#8216;{ print $1 }&#8217; | sed -e &#8216;s@0000:@@&#8217; -e &#8216;s@:@\/@&#8217;`<\/p>\n<p>#  securely create a temporary file<br \/>\nTMP_FILE=`mktemp  \/tmp\/video_state.XXXXXX`<br \/>\ntrap &#8216;rm -f $TMP_FILE&#8217; 0 1 15<\/p>\n<p>#  switch to virtual terminal 1 to avoid graphics corruption in X<br \/>\nchvt  1<br \/>\n\/sbin\/hwclock &#8211;systohc<\/p>\n<p># write all unwritten data  (just in case)<br \/>\nsync<\/p>\n<p># dump current data from the video  card to the temporary file<br \/>\ncat \/proc\/bus\/pci\/$ID &gt; $TMP_FILE<\/p>\n<p>#  suspend<br \/>\necho -n mem &gt; \/sys\/power\/state<\/p>\n<p>\/sbin\/hwclock  &#8211;hctosys<\/p>\n<p># restore video card data from the temporary file on  resume<br \/>\ncat $TMP_FILE &gt; \/proc\/bus\/pci\/$ID<\/p>\n<p>chvt 7<\/p>\n<p>#  remove temporary file<br \/>\nrm -f $TMP_FILE<br \/>\nelse<br \/>\necho &#8221; you  selected: Cancel&#8221;<br \/>\nfi<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Today I install KLIXs-2010.1 beta version to my one of my niece desktop computer, and there are no difficulties since her hardware was pretty decent and highly supported by KLIXs. Installing nvidia-190 proprietary driver for her 6600 NVidia card without difficulties and got 3D Desktop effects via KWin without hassles also, she&#8217;s happy and I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,9],"tags":[231],"_links":{"self":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/673"}],"collection":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=673"}],"version-history":[{"count":0,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/673\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}