HDMI Audio isn't working on an Asus Laptop

YES! It played static (which isn’t good) but it played it through the speakers of my TV!

Interesting, can you post the output of aplay -L?

here it is:

image

Sound was coming through the HDMI1 (card 0 device 7)

Do you have PulseAudio or PipeWire now?

didn’t do anything to either of them.

What does pactl info say?

image

And what does pactl list cards say?

it’s a big output, do you mind if i put it on pastebin?

Sure, do that.

Do you have a wav file? Can you test pasuspender -- aplay --device=hdmi:CARD=PCH,DEV=7 file.wav?

i don’t have any wav files. But i do have MP3 files

Then just run ffmpeg -i file.mp3 file.wav and you’ll have one that you can use.

pasuspender: unrecognized option ‘–device=hdmi:CARD=PCH,DEV=7’

did I do something wrong?

My bad, the command should be fixed now.

it’s saying that it can’t find the file

aplay: main:830: audio open error: File o directory non esistente

Did you specify the path of the wav file correctly?

yes. But if i change the DEV part with another number it doesn’t error out. It doesn’t play anything tho.