Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
i915 [kernelpatch] for correct ext. video mode w/ closed lid
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Wed Mar 16, 2011 11:39 pm    Post subject: i915 [kernelpatch] for correct ext. video mode w/ closed lid Reply with quote

If any of you are bugged by kms choosing the wrong external display resolution all the time, try this. Personally, I was having the issue all the way since 2.6.33 and ever since patching drm parts of the kernel to the master branch in the hope for cure.

I stumbled over this bugzilla entry today:
https://bugzilla.kernel.org/show_bug.cgi?id=27622

Chris Wilson's patch (works with vanilla 2.6.38, was the only one I needed) can be obtained from here:
http://git.kernel.org/?p=linux/kernel/git/ickle/drm-intel.git;a=commitdiff;h=01fe9dbde19a1a27b8ee63e2d964562962e1eb78

Don't forget to report success/failure to the bug, we really should have this entering linus' tree soon! :D
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Fri Jun 10, 2011 9:53 pm    Post subject: Reply with quote

Code:
--- linux-2.6.39-rc1-git5/drivers/gpu/drm/i915/intel_lvds.c     2011-04-14 21:01:22.000000000 +0200
+++ linux-2.6.39-rc1-git4/drivers/gpu/drm/i915/intel_lvds.c     2011-04-17 15:02:07.000000000 +0200
@@ -473,13 +473,19 @@
 intel_lvds_detect(struct drm_connector *connector, bool force)
 {
        struct drm_device *dev = connector->dev;
-       enum drm_connector_status status;
+       enum drm_connector_status status = connector_status_connected;
 
        status = intel_panel_detect(dev);
        if (status != connector_status_unknown)
                return status;
 
-       return connector_status_connected;
+       /* ACPI lid methods were generally unreliable in this generation, so
+        * don't even bother.
+        */
+       if (IS_GEN2(dev) || IS_GEN3(dev))
+               return connector_status_connected;
+
+       return status;
 }
 
 /**

Simple revert to make things work even with latest 3.0.0_rc2.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum