From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1N0Ox0-000437-RJ for garchives@archives.gentoo.org; Wed, 21 Oct 2009 00:21:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 53000E0788; Wed, 21 Oct 2009 00:21:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 298CAE0788 for ; Wed, 21 Oct 2009 00:21:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id AF7DC67D35 for ; Wed, 21 Oct 2009 00:21:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -2.442 X-Spam-Level: X-Spam-Status: No, score=-2.442 required=5.5 tests=[AWL=0.157, BAYES_00=-2.599] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c9yPJswwED89 for ; Wed, 21 Oct 2009 00:21:06 +0000 (UTC) Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.183]) by smtp.gentoo.org (Postfix) with ESMTP id 2348D65A64 for ; Wed, 21 Oct 2009 00:21:04 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlgFAAjx3UrO+KS5/2dsb2JhbACBUdd2gjqBdwSBXIYu X-IronPort-AV: E=Sophos;i="4.44,594,1249272000"; d="scan'208";a="47907253" Received: from 206-248-164-185.dsl.teksavvy.com (HELO waltdnes.org) ([206.248.164.185]) by ironport2-out.pppoe.ca with SMTP; 20 Oct 2009 20:21:02 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Tue, 20 Oct 2009 20:14:12 -0400 From: waltdnes@waltdnes.org Date: Tue, 20 Oct 2009 20:14:12 -0400 To: Gentoo Users List Subject: [gentoo-user] Machine reboots immediately when suspended-to-disk Message-ID: <20091021001411.GA4883@waltdnes.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Archives-Salt: f8724f01-c986-4ee3-ae17-55b914d20e8f X-Archives-Hash: 2851a11bf38a620ae7200bed748d4cf7 I've enabled suspend-to-disk in the kernel. When I issue the command "echo disk > /sys/power/state", it suspends but *IMMEDIATELY* reboots and comes back up again. The session restores properly from the swap drive, so at least that part works. What can I do to keep it sleeping until I power up again? The major non-standard items with my system are that 1) I've set the short button-press on the power-button as a panic escape to kick me to VT1, rather than reboot. 2) I've disabled {CTRL-ALT-DEL}, because I've hit it once too often at home after becoming used to it on Windows at work... grrrrr A relatively minor nuisance is due to the fact I combine "vga=6" in /etc/lilo.conf with "CONSOLEFONT="lat1-10"" in /etc/conf.d/consolefont. "vga=6" defaults to 8-pixel-high font on 640 pixels across by 480 pixels high. This gives 60 rows of text, but is unreadable. Switching over to a 10-pixel-high font gives a nicer, more readable, 48-row display. After coming back from its very short suspend, the machine comes back up with a 640 pixel x 480 scanline display as per "vga=6". It also remembers that I have 48 lines on my text consoles. But it gives the full 60 row display, with the bottom dozen rows not being used. I can straighten this out by manually issuing the command... "setfont /usr/share/consolefonts/lat1-10". Is there a script file that can be set up to execute only after a resume? -- Walter Dnes