https://bugs.freedesktop.org/show_bug.cgi?id=39882
Summary: Regression: Plugging in a HDMI connector makes the LCD of X120e go dark Product: DRI Version: XOrg CVS Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: DRM/Radeon AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: gottfried.haider@gmail.com
When I plug in my external TFT monitor while my X120e is in use, the laptop's internal LCD immediately goes dark - yet I don't have a picture on the TFT.
I first noticed this with kernel 3.0.0, this is fully reproducible also on 3.0.1. Since I did not remember this happening before, I tested with an older kernel (Ubuntu's 2.6.38, but should not make a difference), and indeed: with 2.6.38 the internal LCD stays on (which is the expected behavior).
The TFT is connected via a HDMI-to-DVI cable. Userspace is Xubuntu 11.04 with xorg-edgers PPA.
At a first glance, I do not see anything interesting in either dmesg or Xorg.log when this happens. Note: the machine does not hang, since I can still (blindly) launch a terminal and make the machine restart - for which I briefly get a picture on the LCD again after XOrg shutdown.
I am attaching lspci and a dmesg/Xorg.log below - please let me know if I can help with anything else (I can easily test kernel patches).
https://bugs.freedesktop.org/show_bug.cgi?id=39882
--- Comment #1 from gottfried.haider@gmail.com 2011-08-06 06:28:25 PDT --- Created an attachment (id=49992) --> (https://bugs.freedesktop.org/attachment.cgi?id=49992) lspci of Lenovo X120e
https://bugs.freedesktop.org/show_bug.cgi?id=39882
--- Comment #2 from gottfried.haider@gmail.com 2011-08-06 06:31:57 PDT --- Created an attachment (id=49993) --> (https://bugs.freedesktop.org/attachment.cgi?id=49993) dmesg (nothing interesting after HDMI insertion)
https://bugs.freedesktop.org/show_bug.cgi?id=39882
--- Comment #3 from gottfried.haider@gmail.com 2011-08-06 06:33:29 PDT --- Created an attachment (id=49994) --> (https://bugs.freedesktop.org/attachment.cgi?id=49994) Xorg.log (HDMI insertion happened just before 906.688)
https://bugs.freedesktop.org/show_bug.cgi?id=39882
--- Comment #4 from Alex Deucher agd5f@yahoo.com 2011-08-06 07:27:46 PDT --- Can you bisect? If I had to guess, it's probably one of the display rework patches added in 3.0. Does a VT switch help?
https://bugs.freedesktop.org/show_bug.cgi?id=39882
--- Comment #5 from gottfried.haider@gmail.com 2011-08-06 12:26:19 PDT --- Sorry, I tried bisecting, but defconfig does not boot here.. and my normal config takes ages for a full rebuild.
https://bugs.freedesktop.org/show_bug.cgi?id=39882
--- Comment #6 from gottfried.haider@gmail.com 2011-08-10 17:03:12 PDT --- Regarding VT switching: When I press Ctrl+Alt+F1 after plugging in I do get a picture again on the internal LCD.. when I then press Ctrl+Alt+F7 I am even properly back in X.
Thanks
https://bugs.freedesktop.org/show_bug.cgi?id=39882
--- Comment #7 from Alex Deucher agd5f@yahoo.com 2011-08-12 14:45:34 PDT --- It's a bad interaction between modesetting and hotplug. I'm working on a patch.
https://bugs.freedesktop.org/show_bug.cgi?id=39882
--- Comment #8 from Alex Deucher agd5f@yahoo.com 2011-08-13 10:28:00 PDT --- Created an attachment (id=50185) View: https://bugs.freedesktop.org/attachment.cgi?id=50185 Review: https://bugs.freedesktop.org/review?bug=39882&attachment=50185
fix
This patch fixes the issue.
https://bugs.freedesktop.org/show_bug.cgi?id=39882
Alex Deucher agd5f@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #9 from Alex Deucher agd5f@yahoo.com 2011-08-17 11:21:36 PDT --- The patch works for me. If you still have issues, please reopen.
https://bugs.freedesktop.org/show_bug.cgi?id=39882
--- Comment #10 from gottfried.haider@gmail.com 2011-08-19 18:31:55 PDT --- Sorry that it took a bit long, but I confirm this as being fixed. (Thanks!)
https://bugs.freedesktop.org/show_bug.cgi?id=39882
--- Comment #11 from Florian Mickler florian@mickler.org 2011-08-23 13:18:55 PDT --- A patch referencing this bug report has been merged in Linux v3.1-rc3:
commit d5811e8731213f80c80d89e980505052f16aca1c Author: Alex Deucher alexander.deucher@amd.com Date: Sat Aug 13 13:36:13 2011 -0400
drm/radeon/kms: don't try to be smart in the hpd handler
dri-devel@lists.freedesktop.org