Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2005 02:11:58 +0300
From:      Vladimir Grebenschikov <vova@fbsd.ru>
To:        Josh Elsasser <josh@elsasser.org>
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: Using VESA to restore display settings on resume
Message-ID:  <1109545918.1537.8.camel@localhost>
In-Reply-To: <20050227211630.GX2702@jade.elsasser.org>
References:  <200502270431.aa10917@salmon.maths.tcd.ie> <20050227211630.GX2702@jade.elsasser.org>

next in thread | previous in thread | raw e-mail | index | archive | help
=F7 =D7=D3, 27/02/2005 =D7 16:16 -0500, Josh Elsasser =D0=C9=DB=C5=D4:
>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.

What notebook you have ? I was not such lucky.

I Has SONY VAIO PCG-Z1WA, by zzz it sleeps ok,=20
With patch it even said about saving VESA data.
On any key after it is awakes, spin up drive and fan, but screen still
black (even no backlight), and it is very unlike that I get console back
(typing has no effect, even when I try to call kdb).

Also if I try this patch with vesa module loaded it just carsh in vm86
mode on zzz (curproc acpiconf).

Any suggestions are very welcome.

>I would love to see this committed and MFC'd if it doesn't break
>things for anyone else.
>
> -jre
--=20
Vladimir B. Grebenchikov
vova@fbsd.ru



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