From owner-freebsd-mobile@FreeBSD.ORG Sun Feb 27 21:14:45 2005 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5996B16A505 for ; Sun, 27 Feb 2005 21:14:45 +0000 (GMT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1431743D41 for ; Sun, 27 Feb 2005 21:14:45 +0000 (GMT) (envelope-from joshe@mail.elsasser.org) Received: from mail.elsasser.org ([68.160.4.106])0.04 <0ICL000PJ9OGSL70@vms042.mailsrvcs.net> for freebsd-mobile@freebsd.org; Sun, 27 Feb 2005 15:14:40 -0600 (CST) Received: by mail.elsasser.org (Postfix, from userid 1000) id DDF82A4; Sun, 27 Feb 2005 16:16:30 -0500 (EST) Date: Sun, 27 Feb 2005 16:16:30 -0500 From: Josh Elsasser In-reply-to: <200502270431.aa10917@salmon.maths.tcd.ie> To: Ian Dowse Message-id: <20050227211630.GX2702@jade.elsasser.org> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=1Wg5Vd7si6EhrIHA Content-disposition: inline X-PGP-Key-URL: http://www.elsasser.org/pubkey.asc X-PGP-Key-Fingerprint: 8F39 9F2B 3738 54D9 3E40 4604 CFD5 EA3F B833 FD50 References: <200502270431.aa10917@salmon.maths.tcd.ie> User-Agent: Mutt/1.4.2.1i cc: freebsd-mobile@freebsd.org Subject: Re: Using VESA to restore display settings on resume X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2005 21:14:45 -0000 --1Wg5Vd7si6EhrIHA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 27, 2005 at 04:31:25AM +0000, Ian Dowse wrote: >=20 > It's possible that the experimantal patch below may help on some > notebooks where the display does not recover from a suspend-resume > cycle. It makes use of the VESA BIOS to save the display settings > before the system suspends and then restores them on resume. The > patch is against -CURRENT, but might apply against RELENG_5 without > too much trouble. >=20 > I have a JVC laptop here where this is the only way I have found > so far to bring the LCD back to life after resuming, so maybe it > will help on other systems too. >=20 > To test it, apply the patch and rebuild your kernel + modules. You > need to either have 'options VESA' in the kernel config or else > load the vesa module. It may also be worth trying with the > hw.acpi.reset_video sysctl set to 0, since rerunning the VGA POST > should be unnecessary. >=20 > Ian >=20 > Patch also at: http://people.freebsd.org/~iedowse/vesa_restore.diff >=20 THANK YOU! I've had my laptop for 3 1/2 years, and I can finally suspend/resume and have a usable display afterwards! Cardbus doesn't appear to work after resume, but that's a whole different can of worms... The system I tested this on was RELENG_5 from yesterday, the patch applied cleanly. I already had the hw.acpi.reset_video set to 0, so I don't know if it would work with it set to 1. I would love to see this committed and MFC'd if it doesn't break things for anyone else. -jre --1Wg5Vd7si6EhrIHA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCIjiuz9XqP7gz/VARAisOAKDRmbF//P1Oifcz4xgSeUnLFBFQvACfRJ3A aQral45eK+bbEp+tUCbseyo= =z3hQ -----END PGP SIGNATURE----- --1Wg5Vd7si6EhrIHA--