HDmi Audio help

I try not to tinker under the hood unless I have to, but this problem is annoying.

I have tried using amixer, I have tried changing hdmi_drive=2, I have tried forcing hotplug, I have tried hdmi boost=4. According to sound and pavucontrol I am still getting anolog audio. There is no hdmi option. The weird thing is, I am getting sound, but it can’t be analog because I’m not using the 3.5 jack.

So I saw some settings for edid. One is force HDMI to accept all audio, and the other is some kind of passthrough. Before I started messing with that I wondered if that has anything to do with no HDMI audio detection, when obviously at least part of hte hdmi signal is geting thru since I have video and analog Audio.

I am using Ubuntu Mate 16.04 for arm, with the kernel that came with it. I have the proper power source as well ( this was a problem previously.)

Oh and its a Pi 3 model b, rev 1.2.

THank you.

I’m confused about what hardware and cabling you’re using.
You say you’re not using the 3.5 jack, so is it on the HDMI port?
I use a HDMI to DVI converter cable, with an audio take-off via a built-in jack socket, and that feeds my speakers.
Derek

I’m using HDMI from the tv and the RPI. I know the audio works thru the cable because I have a little set top box I tested it with. There is nothing in the 3.5 jack, yet, Ubuntu insists it’s running analog audio. There is no hdmi option under output nor hardware. But I get audio.

I know 16.04 can handle audio thru HDMI because my desktop box, which is also running Mate, handles it fine. Of course, its amd64 architecture not armf.

I agree that Ubuntu says its running analog audio, but my audio is working.
The ‘active’ lines in my /boot/config.txt are sdtv_mode=2 sdtv_aspect=2 hdmi_force_hotplug=1 hdmi_drive=2 hdmi_force_edid_audio=1 dtparam=audio=on
and I wasn’t responsible for the last line.
There are also the MPG2 and WVC1 lines - but these are definitely not relevant.
HTH
Derek

Where ae you located it was my understanding in American we run NTSC. Otherwise my settings look just like yours.

I should have thought of that - I’m in the UK, hence the PAL.
One thing I didn’t mention was that one or more (memory fails me, and I don’t have a history of the changes) was after I spotted that my TV connection was showing as DVI not HDMI.
For the you use
tvservice -s
to see how it is being recognised.
Derek

Am I putting that in the config file or running it from terminal?

Run it from a terminal (unlike xrandr, it can be from an SSH session)
Derek

I just got this when I tried to ssh in:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:LMKuaqV7TgWw9noRjyIg0AaAXaXMgHp74OOF8bep1Yg.
Please contact your system administrator.
Add correct host key in /home/wolf/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/wolf/.ssh/known_hosts:1
remove with:
ssh-keygen -f “/home/wolf/.ssh/known_hosts” -R 192.168.1.71
ECDSA host key for 192.168.1.71 has changed and you have requested strict checking.
Host key verification failed.

I get a message like that if there is any change in ID - eg using a different IP address. You can judge better than I what is likely.
Is there any chance you’re compromised - I know my local network, since I run it and organise it?
Derek

An change in the ip I’m accessing from or the ip of the kodi box?

Nevermind, I fixed it. This is the output of tvservice -s:

state 0x12000a [HDMI DMT (39) RGB full 16:9], 1360x768 @ 60.00Hz, progressive

Once I got to that sort of state, with HDMI showing, I could then get audio from the HDMI connection (but had to raise the volume). I tested using the ‘sounds’ section of the ubuntu control section.
All I have to do now is to get moving pictures in my videos - which is still eluding me in VLC , but I can get with omxplayer from the command line.
Derek

1 Like

Have you tried SMplayer? I can get sound and video in it.

1 Like

Thanks for the suggestion, which I’ve seen elsewhere in the light of the lack of controls for both VLC and omxplayer.
I do now have VLC working with videos, since careful re-reading of the initial notes with the UbMate for RPi2. There was there a tip which wasn’t (for me) easy to follow about setting the video output module to be used.
Derek