audioraspberry-pihdmi

How to set default audio output on Raspberry Pi to hdmi?


if I execute: speaker-test -D plughw:1,0 -t wav , sound gets played over the hdmi cable, as it is supposed to.

But if I type speaker-test -t wav , no sound gets played over the hdmi cable, so I guess the issue is the default output device.

Here is a list of what I've already tried:

My goal is to later play sound over a browser, but chrome seems to only be able to output sound over the default audio output device, so I guess I somehow need to change it.

I am a noob, so please tell if me if you need more informations and how to get them.

If anyone has some hits on how to solve this issue, I'd be really grateful


Solution

  • At the time I tried to get into the configuratioms via

    sudo raspi-config
    

    as @reallyATypo suggested, but it seemed to be broken somehow. Even navigating into it on the desktop environment didn't work...

    Since there were those weird things going on with the os and there wasn't much data on the RasPi anyways, I decided to set up an entirely new os on the same SD card. On there the default configurations seemed to be already correct and there also was no problem anymore with the os.

    Thank you all for answering :) Idk if that is the right thing to do, but I'm gonna set my answer as a workig one in order to close the issue