Description of problem:
On kernels >= 2.6.40:
Activating an external monitor which is connected via port extender/DVI when only the internal LVDS display is active on my Dell Latitude D830 with Intel GM965/GL960 graphics via GNOME Shell -> System Settings -> Display doesn't work (error message by the tool), external monitor stays blank.
Running e.g. "xrandr --output DVI1 --auto" blanks the internal LVDS display as well without obvious means to get it back (i.e. blindly attempting commands like "xrandr --output LVDS1 --auto" doesn't help).
Configuring/activating external monitors with the above tool as well as running xrandr commands works with the Fedora 15 GA kernel.
Version-Release number of selected component (if applicable):
kernel-2.6.40-4.fc15.x86_64 <- doesn't work
kernel-126.96.36.199-0.fc15.x86_64 <- doesn't work
kernel-188.8.131.52-26.rc1.fc15.x86_64 <- works
mesa-dri-llvmcore-7.11-0.18.20110730.0.fc15.x86_64 <-- probably an unused remnant from a previous version of mesa, which I'll remove now
Steps to Reproduce:
Display configuration tool doesn't let me activate an external monitor, xrandr commands blank internal display as well which only lets me reboot the machine hard (use Alt-SysRq s+u+b, or turn it off then on again).
Display configuration tool lets me activate an externally connected monitor.
HW profile: http://www.smolts.org/client/show/pub_26629e99-e9eb-497e-979c-77d500d56daa
Attempts to configure the external display produced such kernel messages:
Aug 17 10:42:25 gibraltar kernel: [ 123.650710] [drm:drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC:3]
Aug 17 10:42:29 gibraltar kernel: [ 127.650120] [drm:drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC:3]
Aug 17 10:42:39 gibraltar kernel: [ 137.644619] [drm:drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC:3]
Aug 17 10:42:44 gibraltar kernel: [ 143.085827] [drm:drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC:3]
Aug 17 10:42:47 gibraltar kernel: [ 145.645905] [drm:drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC:3]
Aug 17 10:43:06 gibraltar kernel: [ 164.661685] [drm:drm_crtc_helper_set_config] *ERROR* failed to set mode on [CRTC:3]
I seem to be having the exact same issue on a Dell Latitude D620, with the same, I believe, video chipset.
One note: if I boot up the machine with the external monitor connected, it works just fine (dual displays as expected), but if I suspend and then resume the machine without the monitor connected, it then breaks and wont connect to the external monitor ever again until I reboot.
An additional bug that I have noticed that seems to be related, on suspend/resume, X seems to die on resume about one out of four times.
seems to me that xrandr change the name of the devices.
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 8192 x 8192
eDP1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 304mm x 190mm
1280x800 60.1*+ 40.0 (...)
xrandr --output LVDS1 --auto, will not work
xrandr --output eDP1 --auto, works.
What's your DE? If it is XFCE or something similar, then this is a duplicate of bug 738084.
It's non-fallback GNOME 3/Shell.
Same issue on F-16 (i.e. same behavior and kernel messages), with these versions:
Anything else I should check?
Ominous: woken up from suspend, I try to activate external monitor from GNOME Shell/System Settings/Display this morning, to no avail. A few hours later, my screen suddenly goes blank like on an unoccupied virtual console (black, with white underscore-cursor in top-left corner), but with the X11 mouse pointer visible and movable. At that point, the external monitor shows the same picture, but frozen (mouse cursor doesn't move). Try to press key like Alt+F<x> to get back to the desktop, then wiggling the mouse I seem to activate the GNOME Shell overview, which gets me my desktop back. Now activating the external display in settings works.
What I described in comment #6 was only a fluke, never happened again.
I have the same issue here. With 2.6.40+, once the external display has been switched off (e.g. because I remove the laptop from the docking station), it can't be turned on any more.
Making matters worse, because it's impossible to switch the DVI1 on, GNOME 3 remembers my display config as "DVI1 off" and switches off the external monitor immediately after I log in, and is unable to switch it on again. There is no way out of this situation except to boot 184.108.40.206-27.fc15 or earlier and switch the external display on with that kernel.
Created attachment 537811 [details]
dmesg with 220.127.116.11-1.fc15
Created attachment 537815 [details]
Xorg.0.log with 18.104.22.168-1.fc15
I think I identified the cause of the problem. It's the Fedora patch "drm-intel-make-lvds-work.patch".
I compiled stock 3.0 with the Fedora config and saw no problem. Applied "drm-intel-make-lvds-work.patch", and the problem occurs just like with the Fedora kernel.
I confirmed my previous result by building the Fedora kernel 22.214.171.124-1 skipping "drm-intel-make-lvds-work.patch". The problem is gone.
Created attachment 538096 [details]
modified kernel spec file
spec file used to compile the kernel package. Note that it'd be possible to simply recompile i915.ko after reverting "drm-intel-make-lvds-work.patch" from the Fedora sources.
Given that "drm-intel-make-lvds-work.patch" seems to have been in the Fedora kernel for long before the 2.6.40 update, and that problems with external monitors are observed only since 2.6.40, I speculate that this patch is incompatible with i915 as of 3.0.x/2.6.40 and above (possibly the problem that it's supposed to solve is already solved upstream?). Please comment.
Thanks for taking the time to debug this. We discussed the patch you highlighted and agree that dropping it is the right thing to do.
It has been dropped in Fedora git and the next build on f15/f16 should have that change.
Note that I'll be on vacation for a few days, so won't have the chance to test this until about mid of next week.
Ahh, forgot: thanks to Martin for digging into this. Much appreciated.
Thank you. I was acting in my own interest :-)
patch drm-intel-make-lvds-work.patch still on kernel-3.1.4-1.fc16.src.rpm ,
I am also interested to know what harm this patch do to my laptop.
(In reply to comment #19)
> patch drm-intel-make-lvds-work.patch still on kernel-3.1.4-1.fc16.src.rpm ,
> I am also interested to know what harm this patch do to my laptop.
We haven't built a kernel with this change yet. As far as I'm aware, it won't do actual harm to your laptop. Things just won't work.
kernel-3.1.5-1.fc16 has been submitted as an update for Fedora 16.
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kernel-3.1.5-1.fc16'
as soon as you are able to, then reboot.
Please go to the following url:
then log in and leave karma (feedback).
kernel-126.96.36.199-1.fc15 has been submitted as an update for Fedora 15.
kernel-3.1.5-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
kernel-188.8.131.52-4.fc15 has been submitted as an update for Fedora 15.
kernel-184.108.40.206-1.fc15 has been submitted as an update for Fedora 15.
(In reply to comment #20)
> (In reply to comment #19)
> > hi,
> > patch drm-intel-make-lvds-work.patch still on kernel-3.1.4-1.fc16.src.rpm ,
> > I am also interested to know what harm this patch do to my laptop.
> We haven't built a kernel with this change yet. As far as I'm aware, it won't
> do actual harm to your laptop. Things just won't work.
yeah , I mean, find things that wasn't work, and start work, anyway as I type I remember that I forgot to test my display port , but until now don't found any difference.