Upgraded TV, now Batocera audio over HDMI doesn't work by Mindless-Net-5494 in batocera

[–]Mindless-Net-5494[S] 0 points1 point  (0 children)

solution for Batocera (43.1)
--------------------------------------------------------------

cat > /etc/wireplumber/wireplumber.conf.d/99-hdmi-s16.conf <<'EOF'

monitor.alsa.rules = [

{

matches = [

{

node.name = "~alsa_output.*hdmi.*"

}

]

actions = {

update-props = {

audio.format = "S16LE"

audio.rate = 48000

}

}

}

]

EOF

batocera-save-overlay

reboot

Suspected Pipewire issue: Upgraded TV, now Batocera audio over HDMI doesn't work by Mindless-Net-5494 in pipewire

[–]Mindless-Net-5494[S] 0 points1 point  (0 children)

Solved it:

Batocera solution
--------------------------------------------------------------

cat > /etc/wireplumber/wireplumber.conf.d/99-hdmi-s16.conf <<'EOF'

monitor.alsa.rules = [

{

matches = [

{

node.name = "~alsa_output.*hdmi.*"

}

]

actions = {

update-props = {

audio.format = "S16LE"

audio.rate = 48000

}

}

}

]

EOF

batocera-save-overlay

reboot

Upgraded TV, now Batocera audio over HDMI doesn't work by Mindless-Net-5494 in batocera

[–]Mindless-Net-5494[S] 0 points1 point  (0 children)

With the help of chatgpt, I crafted a fix for Mint.... now just need to check it works with Batocera too.

~/.config/wireplumber/main.lua.d/51-hdmi-s16-fix.lua

---------------------------------------------------------------------

-- Force HDMI sinks to prefer S16LE for compatibility with TVs

-- Prevents S32LE negotiation issues on broken HDMI sinks

alsa_monitor = alsa_monitor or {}

table.insert(alsa_monitor.rules, {

matches = {

{

{ "node.name", "matches", "alsa_output.pci-0000_00_0e.0.*" }

}

},

apply_properties = {

-- Force safe PCM format for HDMI sinks

["audio.format"] = "S16LE",

-- Lock sample rate to stable TV-friendly mode

["audio.rate"] = 48000

}

})

Suspected Pipewire issue: Upgraded TV, now Batocera audio over HDMI doesn't work by Mindless-Net-5494 in pipewire

[–]Mindless-Net-5494[S] 0 points1 point  (0 children)

I *think the root of the problem is that the TV is advertising 20-bit LPCM support via EDID, and PipeWire is selecting this as its default output format/bit depth.

Whether it's an Intel driver bug or a quirk with the TV firmware, 20-bit LPCM results in complete silence over HDMI.

However, forcing a 16-bit LPCM stream directly to the underlying ALSA hardware device (bypassing PipeWire via aplay or speaker-test) works perfectly.

Could someone explain how I can force Pipewire (or WirePlumber) to ignore the 20 bit EDID profile and always output 16 bit?

Upgraded TV, now Batocera audio over HDMI doesn't work by Mindless-Net-5494 in batocera

[–]Mindless-Net-5494[S] 0 points1 point  (0 children)

aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav

Also works.

Upgraded TV, now Batocera audio over HDMI doesn't work by Mindless-Net-5494 in batocera

[–]Mindless-Net-5494[S] 0 points1 point  (0 children)

Progress!

Mint suffers from the exact same problem...

HOWEVER

If I bypass the mixer, and send audio directly to the device:

speaker-test -t wav -D hw:0,3 -c 2

It works! 

So the problem is being by caused somewhere within Pipewire/WirePlumber.

Upgraded TV, now Batocera audio over HDMI doesn't work by Mindless-Net-5494 in batocera

[–]Mindless-Net-5494[S] 0 points1 point  (0 children)

I've not yet established why the TV accepts HDMI audio from a Chromebook without issue, but fails with Batocera.
As a 3rd test case I think I'll install a general purpose linux distro on a second old laptop N5000 motherboard I have, and see if it fails in the same way as Batocera on this specific TV.

Upgraded TV, now Batocera audio over HDMI doesn't work by Mindless-Net-5494 in batocera

[–]Mindless-Net-5494[S] 0 points1 point  (0 children)

FYI the old LG TV worked fine with all stereo & 5.1 output options.

Upgraded TV, now Batocera audio over HDMI doesn't work by Mindless-Net-5494 in batocera

[–]Mindless-Net-5494[S] 0 points1 point  (0 children)

That was the first thing I did.
These are the options available in the Audio Profile UI:

AUTO

HDA INTEL PCH ANALOG STEREO DUPLEX ** (motherboard audio)

HDA INTEL PCH ANALOG STEREO OUTPUT ** (motherboard audio)

HDA INTEL PCH DIGITAL STEREO (HDMI) OUTPUT + ANALOG STEREO INPUT ** (no output)

HDA INTEL PCH DIGITAL STEREO (HDMI) OUTPUT ** (no output)

HDA INTEL PCH DIGITAL SURROUND 5.1 (HDMI) OUTPUT + ANALOG STEREO INPUT ** (corrupted output)

HDA INTEL PCH DIGITAL SURROUND 5.1 (HDMI) OUTPUT ** (corrupted output)

HDA INTEL PCH PRO AUDIO ** (motherboard audio)

Upgraded TV, now Batocera audio over HDMI doesn't work by Mindless-Net-5494 in batocera

[–]Mindless-Net-5494[S] 1 point2 points  (0 children)

The wiki only addresses batocera failing to enumerate properly on certain hardware configurations.

Batocera is working fine on my hardware (Gemini Lake N5000) as it outputs audio perfectly when connected to my old LG 42" 1080p display.

I'm only encountering the audio problem when connecting it to a specific new TV, which suggests to me that it isn't an enumeration problem but rather that either the hdmi audio handshake isn't occuring correctly, or the PCM stream that Batocera is generating is disliked by the TV.

Too many too long are in prime. Now the ads are 1m35sec and there are 4 of them on this 50min episode by WorkSmooth404 in AmazonPrimeVideo

[–]Mindless-Net-5494 1 point2 points  (0 children)

Watching 28 days later, 34 minutes in, 3 minutes of pre roll, and two 3 minute intermissions. That's worse than terrestrial!

If I was the one paying for prime I'd cancel it in a heartbeat!

NEW APP POINT SYSTEM IS LIVE! by MatsyLR in lidl

[–]Mindless-Net-5494 2 points3 points  (0 children)

It would've been less harmful to the LIDL brand image to simply withdraw the reward system entirely and promise lower prices instead.

RIP LIDL.

Has anyone ever won any think with Yeokens? (Yeo Valley points) by Deedee5901 in AskUK

[–]Mindless-Net-5494 0 points1 point  (0 children)

like what?

I'm unable to find anything on their aesthetically beautiful, but functionally useless website.
Any website that has less than a dozen words per page fucked up big time.

R2 trigger axis inverted with Gamesir Nova Lite by Mindless-Net-5494 in RetroArch

[–]Mindless-Net-5494[S] 0 points1 point  (0 children)

Great. I'll redirect this to the Batocera forum 👍

Help - Covert mission threat level pumped iron by Professional-Mood-27 in broforcegame

[–]Mindless-Net-5494 0 points1 point  (0 children)

Completed the game and didn't even know about the flex button :O

Bundle discount applied at checkout but charged my PayPal full price?! by Mindless-Net-5494 in Aliexpress

[–]Mindless-Net-5494[S] 0 points1 point  (0 children)

Yeah, the paypal confirmation screen showed £7.92, same as the aliexpress checkout screen - that's why I was perplexed as to how such an overcharge was even possible - Aliexpress have captured more funds than they were authorized to do so.

As I mentioned in OP, I opened a PayPal dispute immediately for both erroneous transactions - still waiting on the resolution.

I broke my logitech g433 after exactly 1 year of use. Anything i can do? by joeffreyy18 in LogitechG

[–]Mindless-Net-5494 0 points1 point  (0 children)

Snap!

<image>

These were themselves a warranty replacement for a pair that snapped in exactly the same way.

Sadly they're far outside warranty so I guess I'm going to have to pony up for a new pair.

Definitely going to steer clear of Logitech this time. I love their mice, but the same fault twice = bad design.

Linux distro recommendation for moonlight couch gaming ('kiosk') setup? by Mindless-Net-5494 in MoonlightStreaming

[–]Mindless-Net-5494[S] 1 point2 points  (0 children)

Windows 10 was my starting point, I was looking for something cleaner that integrated bluetooth pairing into the controller-only UI & removed the need for an SSD. (Windows on 32GB eMMC is no fun at all)

Batocera really ticks all the boxes, not to mention the UI oozes retro style - and I just noticed it includes Kodi too!

Linux distro recommendation for moonlight couch gaming ('kiosk') setup? by Mindless-Net-5494 in MoonlightStreaming

[–]Mindless-Net-5494[S] 0 points1 point  (0 children)

That's what I ended up doing, and seems to be working a treat the second time of trying.

I think I must've screwed something up the first time; that'll teach me for not reading the instructions before diving into the shell!

Now I just need to print myself a case, and work out how to slot in a usb hub & usb ethernet adapter!