From owner-freebsd-stable@FreeBSD.ORG Sun Nov 21 10:37:33 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95B091065670; Sun, 21 Nov 2010 10:37:33 +0000 (UTC) (envelope-from stefan@freebsd.org) Received: from mail.hamcom.de (mail.hamcom.de [212.37.37.211]) by mx1.freebsd.org (Postfix) with ESMTP id 4F4768FC15; Sun, 21 Nov 2010 10:37:33 +0000 (UTC) Received: from adsl-dyn-88-208-146-24.heliweb.de ([88.208.146.24] helo=birne.dunkelkammer.void) by mail.hamcom.de with esmtpa (Exim 4.71) (envelope-from ) id 1PK7Ia-0003eO-7q; Sun, 21 Nov 2010 11:37:32 +0100 Received: by birne.dunkelkammer.void (Postfix, from userid 1002) id 033C311443; Sun, 21 Nov 2010 11:37:31 +0100 (CET) X-HeLi-id: cfcd208495d565ef66e7dff9f98764da Date: Sun, 21 Nov 2010 11:37:31 +0100 From: Stefan Walter To: freebsd-stable@freebsd.org, freebsd-multimedia@freebsd.org Message-ID: <20101121103731.GB1430@birne.dunkelkammer.void> Mail-Followup-To: freebsd-stable@freebsd.org, freebsd-multimedia@freebsd.org, jkim@freebsd.org References: <20101115093709.GA1452@birne.dunkelkammer.void> <201011161444.00227.bruce@cran.org.uk> <20101116190601.GE1435@birne.dunkelkammer.void> <20101116204644.GR56407@e.0x20.net> <20101116205116.000032a6@unknown> <20101117141403.P39988@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UHN/qo2QbUvPLonB" Content-Disposition: inline In-Reply-To: <20101117141403.P39988@sola.nimnet.asn.au> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: jkim@freebsd.org Subject: Re: 8.1-RELEASE: snd_hda works as module only, suspend/resume leaves display off X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Nov 2010 10:37:33 -0000 --UHN/qo2QbUvPLonB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Resent because I forgot to really cc jkim...sorry!] Ian Smith, 17.11.10, 04:20h CET: > On Tue, 16 Nov 2010, Bruce Cran wrote: > > On Tue, 16 Nov 2010 21:46:44 +0100 > > Lars Engels wrote: > >=20 > > > Download && compile the code (gcc -o chvt chvt.c). > > > Add "$path/$to/chvt 1" to /etc/rc.suspend and "$path/$to/chvt 9" to > > > /etc/rc.resume, so that your machine automatically changes to ttyv0 > > > before going to sleep and changes back to X after waking up. > >=20 > > The acpi code already does this: if you run acpiconf from within X > > you'll see ttyv0 appear, the system turns off and when resuming ttyv0 > > appears before X11. In my case, I don't see ttyv0 appear before suspend - neither from within X nor from another tty. But when suspending from another tty, I see ttyv0 briefly after resume before it switches back to the one I started acpiconf =66rom, so I guess the automatic switching works at least between ttys. When starting acpiconf from within X, I hear three beeps at intervals of about one second before the system suspends. As I wrote before, when the system resumes the screen turns on but remains black, the keyboard doesn't seem to do anything and I can only press the power button again to shut the system down completely. There have been cases where I've seen the console right before its powered down with lots of messages like this one (typed from memory): info: [drm] wait idle failed status > Perhaps this might be one of those machines (I have two) that respond=20 > positively to setting sysctl hw.syscons.sc_no_suspend_vtswitch=3D1 ? When I do that, the only difference I've noticed is that I don't hear the three beeps mentioned above. Can anyone tell me if there have been changes to the ACPI code in 8-STABLE since 8.1-RELEASE that might influence the suspend/resume behaviour in this case? (There has been an MFC recently, but I have no idea if that might change anything for me - cc'd jkim because he seems to know much about this stuff.) Regards, Stefan --UHN/qo2QbUvPLonB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQGVAwUBTOj2a1aRERsSueCzAQIlDQv/SQNRjti/bW6tvofRWC2j1D/rLTc19tfp 0ILiMK/25U5TzL1UjTkXT75BIgL6J4SOt6mjRu3gHiExQJg/rRyBUMEDDs45tb0j WkJXLmfDS/XsltqlI3zVTWj4LcasW1hcSxXmT0I09HTFJEnZkrBANveyOoK8TG0E pJ8IOHqimdOWSPxoamRc0ss251F1ORumnLJ5Q2XCAQ8DUDc9OSXO52p7+mFnoywK MXxJuQAUCutG7CE8uVD6tdn7KHeSzMUB4cDd2fq+AVGGjFbEoNS3Ypeaq7ZOF3E/ UVqROgW+WP/OF5/HUDwlvsMr8xOf0va7ffDkDnTf2lVL0583oZwTO/upbtVVE2pD ooFD6JwVzFZJ00uKIhZXuqrnbyvYDpCAq76XgXo1h1sKhGdYDzLR8qVgcHH8zz7i yvSTCxzvK9MiC1lUg8wwCavvA5Q7kYccSS60h1lzK5BdsNs2OB/y3nhspfJCE18I /wIBIdBDqvuw1rx6vmu/7vWTXOOGUV9I =OHk3 -----END PGP SIGNATURE----- --UHN/qo2QbUvPLonB--