--- xorg-server-1.5.1/hw/xfree86/fbdevhw/fbdevhw.c.old 2008-10-04 21:37:38.000000000 -0700 +++ xorg-server-1.5.1/hw/xfree86/fbdevhw/fbdevhw.c 2008-10-04 21:40:39.000000000 -0700 @@ -314,11 +314,20 @@ */ for (i = 0; i < 8; i++) { + sprintf(filename, "/sys/bus/pci/devices/%04x:%02x:%02x.%d/graphics/fb%d", pPci->domain, pPci->bus, pPci->dev, pPci->func, i); - fd = open(filename, O_RDONLY, 0); + + if (fd == -1) { + close(fd); + sprintf(filename, + "/sys/bus/pci/devices/%04x:%02x:%02x.%d/graphics:fb%d", + pPci->domain, pPci->bus, pPci->dev, pPci->func, i); + fd = open(filename, O_RDONLY, 0); + } + if (fd != -1) { close(fd); sprintf(filename, "/dev/fb%d", i);