https://bugs.freedesktop.org/show_bug.cgi?id=102300
Bug ID: 102300 Summary: Second monitor shows black screen but has signal Product: DRI Version: XOrg git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: fayn@mt2015.com
I can't set my second monitor to 1920x1080 mode in linux. This problem started 2-3 weeks ago. Disabling and enabling monitor with xrandr or XFCE settings used to restore signal (until next restart, sleep doesn't cause bug) but that doesn't help anymore and adding custom mode doesn't help either. I can set xrandr supported lower resolutions and they work.
This happens in Archlinux with linux 4.12 / Mesa 17.1 / amdgpu 1.3.0 but also happens with linux 4.13rc5 / mesa-git / amdgpu-git.
Everything works in grub and windows 7, but right after linux starts to boot it switches resolution (fb -> amdgpudrmfb i guess?) and ASUS monitor goes black. So the problem only happens in linux. it's UEFI boot for both OS.
Ryzen 1700 ASUS Prime B350+ Radeon R9 285
Dell U2414H DVI-D-0 (HDMI -> DVI-D cable) ASUS VE247 DVI-I-1 (DVI-I cable)
If logs are needed just tell what to show.
https://bugs.freedesktop.org/show_bug.cgi?id=102300
--- Comment #1 from Alex Deucher alexdeucher@gmail.com --- Please attach your xorg log and dmesg output. If this is a regression can you bisect?
https://bugs.freedesktop.org/show_bug.cgi?id=102300
--- Comment #2 from fayn@mt2015.com --- Created attachment 133616 --> https://bugs.freedesktop.org/attachment.cgi?id=133616&action=edit dmesg and xorg logs
Logs are from Gallium 0.4 on AMD TONGA (DRM 3.15.0 / 4.12.8-1-ARCH, LLVM 4.0.1) and other ones from git versions.
https://bugs.freedesktop.org/show_bug.cgi?id=102300
--- Comment #3 from fayn@mt2015.com --- I find out Asus (2nd monitor) works with 1920x1080 @ 59.94Hz mode, which was probed for my Dell monitor. I'm 99% sure Asus used to be 59.94Hz when monitor last worked, however i can't see it in list of supported modes, only 60Hz which doesn't work.
AMDGPU(0): Modeline "1920x1080"x59.9 148.35 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync (67.4 kHz e)
https://bugs.freedesktop.org/show_bug.cgi?id=102300
fayn@mt2015.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Second monitor shows black |Missing 1920x1080_59.94Hz |screen but has signal |mode (Second monitor shows | |black screen but has | |signal)
https://bugs.freedesktop.org/show_bug.cgi?id=102300
--- Comment #4 from Michel Dänzer michel@daenzer.net --- Please attach the Xorg configuration snippets you created in /etc/X11/xorg.conf.d and/or /usr/share/X11/xorg.conf.d , in particular anything related to a mode named "1920x1080_60.00".
https://bugs.freedesktop.org/show_bug.cgi?id=102300
--- Comment #5 from fayn@mt2015.com --- (In reply to Michel Dänzer from comment #4)
Please attach the Xorg configuration snippets you created in /etc/X11/xorg.conf.d and/or /usr/share/X11/xorg.conf.d , in particular anything related to a mode named "1920x1080_60.00".
I forgot to mention, that is irrelevant. The problem happened before i had anything configured in xorg.conf.d (also fixed it since obviously that mode doesn't exist).
https://bugs.freedesktop.org/show_bug.cgi?id=102300
--- Comment #6 from fayn@mt2015.com --- Section "Device" Identifier "Radeon R9 285" Driver "amdgpu" Option "AccelMethod" "glamor" Option "DRI" "3" Option "TearFree" "on" Option "ColorTiling" "on" Option "ColorTiling2D" "on" EndSection
This was all in 20-amdgpu.conf originally, doesn't matter if I add monitors+screen or not. I have to run these commands after every restart, or no signal:
xrandr --newmode "mymode" 148.35 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync xrandr --addmode DVI-I-1 mymode xrandr --output DVI-I-1 --right-of DVI-D-0 --mode mymode
https://bugs.freedesktop.org/show_bug.cgi?id=102300
--- Comment #7 from Michel Dänzer michel@daenzer.net --- According to the log file, the ASUS monitor only lists the 60 Hz 1920x1080 mode in its EDID. So it seems clear that's what the monitor wants to be fed, but for some reason we don't seem to be generating it properly.
Any chance you can try if a kernel built from the amd-staging-4.12 or amd-staging-drm-next branch of https://cgit.freedesktop.org/~agd5f/linux/ with CONFIG_DRM_AMD_DC=y works better?
https://bugs.freedesktop.org/show_bug.cgi?id=102300
--- Comment #8 from fayn@mt2015.com --- (In reply to Michel Dänzer from comment #7)
According to the log file, the ASUS monitor only lists the 60 Hz 1920x1080 mode in its EDID. So it seems clear that's what the monitor wants to be fed, but for some reason we don't seem to be generating it properly.
Any chance you can try if a kernel built from the amd-staging-4.12 or amd-staging-drm-next branch of https://cgit.freedesktop.org/~agd5f/linux/ with CONFIG_DRM_AMD_DC=y works better?
Thank you, It works :)
I thought amdgpu-staging kernel was only needed for their PRO driver, so i never had the idea to try it.
https://bugs.freedesktop.org/show_bug.cgi?id=102300
--- Comment #9 from fayn@mt2015.com --- I updated bunch of packages today (linux-amd-staging,mesa etc) and now DVI-I-1 is not recognized but it is shown as DVI-D-1. This also brought new problem: monitors 'blink' randomly, about every ten seconds and it is VERY annoying.
I also left the computer for few hours monitor powered off, and then when I came back and it should've shown lockscreen monitor repeatedly showed "signal not found" and then got it, and lost it immediately again. I couldn't get picture to either monitor but Ctrl-Alt-Del restart did work.
https://bugs.freedesktop.org/show_bug.cgi?id=102300
--- Comment #10 from fayn@mt2015.com --- By the way refresh rate 60.00 is used since DVI-I-1 -> DVI-D-1 change.
https://bugs.freedesktop.org/show_bug.cgi?id=102300
--- Comment #11 from Michel Dänzer michel@daenzer.net --- (In reply to fayn from comment #9)
I updated bunch of packages today (linux-amd-staging,mesa etc) and now DVI-I-1 is not recognized but it is shown as DVI-D-1. This also brought new problem: monitors 'blink' randomly, about every ten seconds and it is VERY annoying.
Sounds like most likely there's been a regression on the amd-staging kernel branch you're using. Please file a separate report about that.
https://bugs.freedesktop.org/show_bug.cgi?id=102300
--- Comment #12 from fayn@mt2015.com --- Arch stock kernel 4.12.13-1 still boots one monitor black, but can be restored with xrandr.
Wayland sessions work, and they never lose signal in any situation. Xorg sessions do randomly cause black screen (https://bugs.freedesktop.org/show_bug.cgi?id=102956).
https://bugs.freedesktop.org/show_bug.cgi?id=102300
--- Comment #13 from fayn@mt2015.com --- Latest mesa driver still shows black screen. I also tested with fresh Ubuntu 16.04 installation, and same thing happens there (black screen problems started well over a year ago, just it got worse this summer).
AMDGPU-PRO 17.40 (and probably earlier ones) works and I don't have any problems with it. Switching to fullscreen and back is absolutely no problem with it, and it always shows picture at boot time in both monitors.
https://bugs.freedesktop.org/show_bug.cgi?id=102300
Martin Peres martin.peres@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |MOVED Status|NEW |RESOLVED
--- Comment #14 from Martin Peres martin.peres@free.fr --- -- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/223.
dri-devel@lists.freedesktop.org