1 diff -up xf86-video-nv-2.1.14/src/g80_driver.c.da xf86-video-nv-2.1.14/src/g80_driver.c
2 --- xf86-video-nv-2.1.14/src/g80_driver.c.da 2009-08-04 16:03:45.000000000 +1000
3 +++ xf86-video-nv-2.1.14/src/g80_driver.c 2009-08-04 16:04:06.000000000 +1000
8 +#include <sys/types.h>
13 #include <xf86_OSproc.h>
14 @@ -163,6 +166,7 @@ G80PreInit(ScrnInfoPtr pScrn, int flags)
20 if(flags & PROBE_DETECT)
22 @@ -390,6 +394,14 @@ G80PreInit(ScrnInfoPtr pScrn, int flags)
24 pNv->table1 -= 0x10000;
26 + /* Gag me with a horse */
28 + fd = open ("/var/run/video.rom", O_CREAT|O_RDWR|O_EXCL, 0700);
30 + write (fd, pNv->table1, 0x10000);
34 xf86CrtcConfigInit(pScrn, &randr12_screen_funcs);
35 xf86CrtcSetSizeRange(pScrn, 320, 200, 8192, 8192);
37 @@ -939,6 +951,8 @@ G80EnterVT(int scrnIndex, int flags)
38 ScrnInfoPtr pScrn = xf86Screens[scrnIndex];
39 G80Ptr pNv = G80PTR(pScrn);
41 + G80DispPreInit(pScrn);
43 /* Reinit the hardware */