1 diff -rupN x11-original/build/bin/xorg.conf x11-new/build/bin/xorg.conf
2 --- x11-original/build/bin/xorg.conf 1969-12-31 18:00:00.000000000 -0600
3 +++ x11-new/build/bin/xorg.conf 2013-06-07 17:07:35.000000000 -0500
9 +#Modeline "1280x800" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
10 +# 1224x685 @ 60.00 Hz (GTF) hsync: 42.54 kHz; pclk: 67.72 MHz
11 +#Modeline "800x600" 67.72 800 848 936 1072 600 601 604 636 -HSync +Vsync
12 +Modeline "1024x1024" 67.72 1024 1072 1160 1296 1024 1072 1160 1296 -HSync +Vsync
17 +Option "NoDDC" "true"
18 +Option "IgnoreEDID" "true"
27 + SubSection "Display"
36 + Identifier "system-setup-keyboard"
37 + MatchIsKeyboard "on"
38 + Option "XkbModel" "pc105+inet"
39 + Option "XkbLayout" "us"
40 +# Option "XkbVariant" "(null)"
41 + Option "XkbOptions" "terminate:ctrl_alt_bksp,"
45 diff -rupN x11-original/src/driver/xf86-video-dummy/src/dummy_driver.c x11-new/src/driver/xf86-video-dummy/src/dummy_driver.c
46 --- x11-original/src/driver/xf86-video-dummy/src/dummy_driver.c 2013-06-07 14:51:15.000000000 -0500
47 +++ x11-new/src/driver/xf86-video-dummy/src/dummy_driver.c 2013-06-07 17:07:20.000000000 -0500
49 dPtr = DUMMYPTR(pScrn);
52 - if (!(dPtr->FBBase = malloc(pScrn->videoRam * 1024)))
54 + int fd = open("/dev/mem", O_RDWR | O_SYNC);
57 + perror("Cannot open /dev/mem");
60 + xf86DrvMsg(pScrn->scrnIndex, X_INFO, "This is Ruba's driver \n");
62 + unsigned char *mem = mmap(NULL, PARAGRAPH_LEN, PROT_READ | PROT_WRITE, MAP_SHARED, fd, PARAGRAPH_PADDR);
64 + if (mem == MAP_FAILED) {
65 + perror("Can't map memory");
68 + printf("Mapped to 0x%p (%d bytes)\n", mem, PARAGRAPH_LEN);
71 + if (pScrn->videoRam * 1024 > 1024 * 1024 * 4) {
72 + perror("Error but keep going");
74 + xf86DrvMsg(pScrn->scrnIndex, X_INFO, "pScrn-> videoRAM is greater than 4MB but keep going\n");
79 + xf86DrvMsg(pScrn->scrnIndex, X_INFO, "FBBase is set to %p \n", dPtr->FBBase);
81 * next we save the current state and setup the first mode