From owner-acpi-jp@jp.FreeBSD.org Thu Sep 18 04:43:21 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id h8HJhLR10393;
	Thu, 18 Sep 2003 04:43:21 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from rootlabs.com (root.org [67.118.192.226])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with SMTP/inet id h8HJhKJ10388
	for <acpi-jp@jp.freebsd.org>; Thu, 18 Sep 2003 04:43:20 +0900 (JST)
	(envelope-from nate@rootlabs.com)
Received: (qmail 12655 invoked by uid 1000); 17 Sep 2003 19:43:16 -0000
From: Nate Lawson <nate@root.org>
To: acpi-jp@jp.FreeBSD.org
Message-ID: <20030917124258.U12649@root.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Wed, 17 Sep 2003 12:43:16 -0700
X-Sequence: acpi-jp 2673
Subject: [acpi-jp 2673] [ACPI] Video BIOS reset? (fwd)
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: nate@root.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030902

I sent the following to the Linux list.

---------- Forwarded message ----------
Date: Wed, 17 Sep 2003 10:00:55 -0700 (PDT)
From: Nate Lawson <nate@root.org>
To: Pavel Machek <pavel@suse.cz>
Cc: acpi-devel@lists.sourceforge.net
Subject: [ACPI] Video BIOS reset?

I am looking into a common problem on FreeBSD.  Whenever I resume, the
console is messed up.  X works fine.  When data is printed to the console,
it scrolls diagonally and skips lines.  My first thought was that the VESA
display was not in linear mode.

I looked at the Linux code and noted two parts that seem to be intended to
address this:

1. lcall 0xc0000,$3
2. int 0x10, func 0x4f02

The first one appears to only be a read of the current VESA mode register.
The second is Set Mode.  I tried adding this manually to our resume code
but there is no change.  I also looked at vgacon.c to see if our console
resume code wasn't complete but nothing jumped out at me.  Any ideas what
we might be missing?

Src:
linux/arch/i386/kernel/acpi/wakeup.S
linux/drivers/video/console/vgacon.c

Thanks,
Nate
