Posts: 11
Joined: Jul 2017
Reputation:
0
Banzi
Junior Member
Posts: 11
Can I delete an unwanted HDMI output?
I'm running Kodi on Linux (v17.6) with a NVidea GT 1030. This particular card has 1 HDMI output and 1 DisplayPort output.
Both show as HDMI output unfortunately.
Depending on what turned on first (Denon AVR or PC), the order of these HDMI outputs swap.
So sometimes the audio works, as the Denon is connected to the top HDMI (in Kodi GUI), but the next time it may not, because then the Denon is connected to the 2nd HDMI output (in Kodi GUI). I swear, I haven's swapped cables in between!
I tried to use the GetEdid script, but that doesn't solve the problem.
Could I edit a file or issue a command to just delete the Displayport, so it won't show up in Kodi GUI anymore?
Posts: 4,498
Joined: Jan 2011
Reputation:
150
DaVu
Team-Kodi Member
Posts: 4,498
In a bit. As I wrote that getedid-script and I was assuming that it works to force the HDMI output even if no output device (tv or whatever screen) is attached to the HTPC hardware.
Could you please show me the content of your xorg.conf file at /storage/.config/xorg.conf in a paste? Enter pastebinit /storage/.config/xorg.conf
Also please get me: ls -al /storage/.config/ | pastebinit
Also please make sure, before using the getedid script that everything works fine audio and video-wise. If you are not sure if that was the case while using that script, delete the current configuration by entering: getedid delete
(that will case to be everything at default), then reboot, then make sure everything works as it should, then use getedid create
again.
Posts: 11
Joined: Jul 2017
Reputation:
0
Banzi
Junior Member
Posts: 11
"DaVu"
My bad... I didn't do things in chronologic order...
After the GetEdid Create, xorg.conf is there…
sorry for creating the fuss…
it didn't fix my problem though… As I believe the script fixes an output to a DFP number.
After I tried your script, I've changed my domotic programming, so the Kodi machine doesn't start until my AVR has started. That way, the output HDMI stays always te same.
But for development purposes, I'm willing to test things… In the end, it would be easier not having to thing about the order of starting equipment.
(In my specific case, the order changes because: Sometimes "movies" is the first thing which is selected. Then the kodi machine starts and AVR starts at the same time (but isn't ready yet when kodi machine tries to use HDMI). Occasionally the first thing selected was "radio", which turns on the AVR but leaves kodi machine off. Later on, the boss (GF) wants to watch a movie. This was where things got messed up).
Posts: 11
Joined: Jul 2017
Reputation:
0
Banzi
Junior Member
Posts: 11
GUI Sounds: confirmed, they work 100% of the time. Even if the incorrect HDMI has been selected.
Both ports show as:
ALSA: HDA NVidia, DON DENON-AVRHD on HDMI
ALSA: HDA NVidia, HDMI
Confirmed, the first time after Getedid Create, the movie was playing (Kodi machine started BEFORE Avr). Doing a reboot, movies don't have audio anymore.
Getedid Delete came with an error and I had to reboot again.
GUI: Audio, Movies: No Audio
Went to Settings and corrected audio passthrough again.
Movies: Audio
I did a [grep ": connected" /var/log/Xorg.0.log | head -n 1] all the time, but my DFP-2 doesn't change to a different number (what I suspected before)... Therefore what your script is trying to do is probably correct. But the result might not be what is necessary to fix the issue.
The only difference I can find each time is the order of the HDMI ports in the GUI.
At one time "ALSA: HDA NVidia, DON DENON-AVRHD on HDMI" is above the empty port, but at another time it's below the empty port.
That's the only difference I can see.
Is that something you can work with? I'm too unfamiliar with Linux/kodi/libreelec to troubleshoot it deeper.
Posts: 11
Joined: Jul 2017
Reputation:
0
Banzi
Junior Member
Posts: 11
The error was:
Job for xorg.service failed because the control process exited with error code.
See "systemctl status xorg.service" and "journalctl -xe" for details.