Bug 1389843

Summary: HDMI connection dropped when TV switches to a different input.
Product: [Fedora] Fedora Reporter: David A. De Graaf <dad>
Component: xfce4-settingsAssignee: Kevin Fenzi <kevin>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 24CC: kevin, nonamedotc
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: xfce4-settings-4.12.1-1.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-19 17:23:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David A. De Graaf 2016-10-28 21:14:55 UTC
Description of problem:
HDMI connection to TV is dropped when TV is switched to another input and back.

Version-Release number of selected component (if applicable):
xfce4-settings-4.12.0-7.fc24.x86_64

How reproducible:
100%

Steps to Reproduce:
1.  With TV on and HDMI input selected, boot Linux and start X session.
2.  Switch TV's input to something else, then back to HDMI.
3.  TV says "No HDMI signal".

Actual results:
No signal

Expected results:
Continuation of prior X session

Additional info:
I had assumed this aggravating bug was due to a defective HDMI implementation in the TV circuitry.  In fact, I bought a new TV to use with mythtv and encountered this defect;  sent it back and bought another, only to discover the same defect.

I'm using a NUC computer with Intel graphics driving a Sceptre TV.

Today I discovered an ubuntu Bug #1308105 reported by Mario Limonciello on 2014-04-15 - two and half years ago - with many people commenting:
https://bugs.launchpad.net/ubuntu/+source/xfce4-settings/+bug/1308105

Various comments suggest patches that might or might not work, but here in Fedora 24 we have xfce4-settings-4.12.0-7.fc24.x86_64 with the bug still firmly present.

Several workarounds are suggested:  Running  'xrandr --auto'  will reinitialize the connection.  I have used this via a 1 min recurring cronjob, and also by assigning a keystroke combination,  SH-CTL-F9,  via the xfce Settings | Keyboard | ApplicationShortcuts method.

The best workaround is suggested in Comment #126:  Create /etc/X11/xorg.conf and add   Option "Hotplug" "false"   to the Options section.  This causes the X server to ignore the HDMI disconnect, so no reinitialization is necessary when the connection resumes.

Comment 1 Kevin Fenzi 2016-11-06 20:32:29 UTC
This was/is hopefully fixed in 4.12.1. 

Here's a scratch build to try out: 
https://koji.fedoraproject.org/koji/taskinfo?taskID=16327364

I'll push a official update here soon.

Comment 2 Fedora Update System 2016-11-06 20:52:53 UTC
xfce4-settings-4.12.1-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-26e09d3ace

Comment 3 Fedora Update System 2016-11-08 01:27:27 UTC
xfce4-settings-4.12.1-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-26e09d3ace

Comment 4 David A. De Graaf 2016-11-13 17:10:26 UTC
The xfce4-settings-4.12.1-1.fc24 package found in fedora-testing has completely fixed the problem for me.  

Specifically, after installing this package, I removed the workaround 
/etc/X11/xorg.conf file I had created that contained the 
Option "Hotplug" "false"  in the Options section and rebooted.  
I noted that /var/log/Xorg.0.log now contains this line:
  [    11.768] (==) intel(0): Display hotplug detection enabled
which is the opposite of what my workaround accomplished.

Nevertheless, when I tested various modalities of switching the TV away from the HDMI signal and back, and turning the TV off and on, everything worked just as it should.  The computer's HDMI signal was found and displayed properly by the TV without further intervention.

I commend this xfce4-settings-4.12.1-1.fc24 package for general use.

Thank you Kevin Fenzi.

Comment 5 Kevin Fenzi 2016-11-14 14:04:49 UTC
Excellent. :) Thank the folks upstream that came up with the patch...

Comment 6 Fedora Update System 2016-11-19 17:23:33 UTC
xfce4-settings-4.12.1-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.