Date: Tue, 24 Mar 2009 15:28:30 -0400 From: Jung-uk Kim <jkim@FreeBSD.org> To: freebsd-current@FreeBSD.org Cc: Gustau Perez <gperez@entel.upc.edu> Subject: Re: [HEADSUP] amd64 suspend/resume code to be comitted Message-ID: <200903241528.34902.jkim@FreeBSD.org> In-Reply-To: <49C92FA6.20608@entel.upc.edu> References: <1236802980.00085518.1236789602@10.7.7.3> <1237920918.1859.1.camel@balrog.2hip.net> <49C92FA6.20608@entel.upc.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Tuesday 24 March 2009 03:08 pm, Gustau Perez wrote:
> With this model (without X's, just text console) suspending and
> resuming seems to work except the video. I can type thing and send
> them to a file (checked). After resuming, it throws a little of
> text (i can see some debug about suspending and resuming firewire
> and usb) and then video is lost.
Please try the attached patch, which just disables restoring VGA state
while resuming.
Jung-uk Kim
[-- Attachment #2 --]
--- sys/isa/vga_isa.c 29 Dec 2007 23:26:59 -0000 1.35
+++ sys/isa/vga_isa.c 24 Mar 2009 19:25:56 -0000
@@ -160,6 +160,7 @@ isavga_attach(device_t dev)
return 0;
}
+#if 0
static int
isavga_suspend(device_t dev)
{
@@ -209,6 +210,7 @@ isavga_resume(device_t dev)
bus_generic_resume(dev);
return 0;
}
+#endif
#ifdef FB_INSTALL_CDEV
@@ -254,8 +256,10 @@ static device_method_t isavga_methods[]
DEVMETHOD(device_identify, isavga_identify),
DEVMETHOD(device_probe, isavga_probe),
DEVMETHOD(device_attach, isavga_attach),
+#if 0
DEVMETHOD(device_suspend, isavga_suspend),
DEVMETHOD(device_resume, isavga_resume),
+#endif
DEVMETHOD(bus_print_child, bus_generic_print_child),
{ 0, 0 }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903241528.34902.jkim>
