[HEADSUP] amd64 suspend/resume code to be comitted
Jung-uk Kim
jkim at FreeBSD.org
Tue Mar 24 12:28:44 PDT 2009
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
-------------- next part --------------
--- 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 }
More information about the freebsd-current
mailing list