intel name libkms patch suggestion

2011-09-29 Thread Kevin DuBois
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
kdub...@gmail.com
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@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


intel name libkms patch suggestion

2011-09-29 Thread Kevin DuBois
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 at gmail.com
-- next part --
A non-text attachment was scrubbed...
Name: intel_name.patch
Type: text/x-patch
Size: 392 bytes
Desc: not available
URL: 
<http://lists.freedesktop.org/archives/dri-devel/attachments/20110929/e04792b1/attachment.bin>