Hi all, This could be a problem with Ubuntu's sysfs namings, but I was finding that libkms was failing in linux_from_sysfs() when it failed to detect that my driver's name was 'i915', not 'intel' as it currently is in the code. I've attached a patch that corrects this to detect things named 'i915'. (if its proper to correct via a patch, not a sysfs entry) With this patch on my Intel 4500HD on Ubuntu Linux, I can run modetest successfully. Cheers, Kevin DuBois kdub432@xxxxxxxxx
diff --git a/libkms/linux.c b/libkms/linux.c index fc4f205..58666f0 100644 --- a/libkms/linux.c +++ b/libkms/linux.c @@ -101,7 +101,7 @@ linux_from_sysfs(int fd, struct kms_driver **out) if (ret) return ret; - if (!strcmp(name, "intel")) + if ((!strcmp(name, "intel")) || (!strcmp(name, "i915" ))) ret = intel_create(fd, out); #ifdef HAVE_VMWGFX else if (!strcmp(name, "vmwgfx"))
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel