Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Nov 2010 11:32:24 +0100
From:      Stefan Walter <stefan@freebsd.org>
To:        freebsd-stable@freebsd.org, freebsd-multimedia@freebsd.org
Subject:   Re: 8.1-RELEASE: snd_hda works as module only, suspend/resume leaves display off
Message-ID:  <20101121103224.GA1430@birne.dunkelkammer.void>
In-Reply-To: <20101117141403.P39988@sola.nimnet.asn.au>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--envbJBWh7q8WU6mo
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 <lars.engels@0x20.net> 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

--envbJBWh7q8WU6mo
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iQGVAwUBTOj1OFaRERsSueCzAQIgHgv9GL03LHR+nrEPWsGjeVDDilm872/T7Xna
9embWGQw1XckKH1alCmVuHmRfcshkpT6Chi5yjJiQ/qrsacuMsRDBlYr5lz1/a7/
Rwa40smzJJ105qK37DAm6YSGVW14arpvOnW1nOIrY8aIWUp/xZou1FN2w9D7uFR9
V5BKh5WXNhZlSxHkVqMb/W/sCpGfc7Nu8fGXPNKbTFT/fyRqtJv4e36Fo13lazDN
UeNIUXkjIF3RHBWvxH225DI2mzdb6mBIKuN510FYg0eGeld1UFXUBRgul5oYVbYv
IjNJSzv85ovBXqUA/Z4OkKyt9mJjCj5MRUM2MTglHg8MUZX10Vhpd+Nxz1P60B3l
3/8CDD1vQXKB7mKAJuVgTF/DbF66EP4k0j0/f8UXeRCdig97Oa/BIgDvJF2e+R6f
hBzeGTrFgJ4Gy8wqVj7HeW6L4PKwqKa2swLCITXuWpq8gwZD07TQFDu6VoCn6LNT
tid87RZQnnQS10DJobSQksDfscb3lngu
=mULK
-----END PGP SIGNATURE-----

--envbJBWh7q8WU6mo--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101121103224.GA1430>