batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
1.94k stars 499 forks source link

only audio with batocera v31 but no audio on HDMI (Chuwi Larkbox pro) on v32,v33 and v34 + support files #6263

Closed digizona closed 2 years ago

digizona commented 2 years ago

Hello guys, please I need your help. I have a chuwi larkbox pro (the mini one) and it doesnt have any sound when I use batocera v32, v33 and v34 (fresh install). when I use batocera v31 I have sound because I have the option to select HDMI0 PCH (HDA INTEL PCH). I have tried all the profiles on the other versions with all the outputs and nothing 😦

This is my alsamixer on v34 (no sound):

alsamixer v34

This is alsamixer on v31 (with sound):

alsamixer v31

aplay -l and lsmod | grep snd on v34:

aplay and snd

my pw-top on v34:

pw-top

Support file v34:

https://drive.google.com/file/d/1VvfYc0mW0D5afnJIQoYbI5TZiJSKtgjH/view?usp=sharing

Support file v31: https://drive.google.com/file/d/1VWMo_Yxm4oR1QMypZJiMT7kwpnmDi8Mq/view?usp=sharing

P.S: I also installed kubuntu 20.04 LTS on this mini pc and the sound is working.

dmanlfc commented 2 years ago

what's the output of batocera-audio list on both please

digizona commented 2 years ago

no problem. thanks!

V34:

auto auto alsa_output.pci-0000_00_0e.0.hdmi-stereo Built-in Audio Digital Stereo (HDMI)

V31:

auto custom 0,3 HDMI 0 PCH [HDA Intel PCH] 0,7 HDMI 1 PCH [HDA Intel PCH] 0,8 HDMI 2 PCH [HDA Intel PCH] 0,9 HDMI 3 PCH [HDA Intel PCH] 0,10 HDMI 4 PCH [HDA Intel PCH]

/////EDIT/////////

UPDATE:

Sometimes when I do a fresh install if I use this configuration when the first boot I have sound on v34 :

audio put: Built-Inaudio Pro 7 audio profile: HDAINTEL PCH PRO AUDIO

...but when I reboot my batocera has no sound.

Commands:

commands

and this is the support file when the sound is working on v34: https://drive.google.com/file/d/1-e3RLpy_SJiSNJQNkYfz1CkVG2oUCxUi/view?usp=sharing

liberodark commented 2 years ago

Have this PC and have sound. For explain v31 is last version with only alsa and after that is version with pipewire. That why the output change.

Best Regards

dmanlfc commented 2 years ago

@liberodark what is your batocera-audio list output for this device?

@digizona try in batocera.conf

audio.device=alsa_output.pci-0000_00_0e.0.pro-output-3

also do you have a receiver in-between you pc & monitor / tv?

digizona commented 2 years ago

That output on the batocera.conf didn't work :(

The audio works on windows, kubuntu, recalbox, batocera v31 and batocera plus and yes definitely the pipewire framework doesn't like my chuwi. Well I keep digging. @liberodark are you using the v34?

Thanks for taking your time for this issue.

dmanlfc commented 2 years ago

@digizona

try this please...

Via ssh type: tee /etc/modprobe.d/snd-hda-intel-fix.conf <<<'options snd-hda-intel probe_mask=1' then batocera-save-overlay then reboot

digizona commented 2 years ago

I think this command broke batocera

it did't work either :( wow this issue ain't easy :(

liberodark commented 2 years ago

Hi yes im on v34 is work great on this pc.

batocera-audio list
auto auto
alsa_output.pci-0000_00_0e.0.hdmi-stereo Built-in Audio Digital Stereo (HDMI)
dmanlfc commented 2 years ago

then @digizona should be... ? audio.device=alsa_output.pci-0000_00_0e.0.hdmi-stereo

javierguerragiraldez commented 2 years ago

I had a similar problem.

My machine is a Minisforum GK41, with an Intel Celeron J4125 (integrated graphics, same intel audio drivers)

Worked very well on v33, then I updated to v34. Got better Vulkan graphics I was very happy. But the next day I noticed there was no sound. I think it worked at the start, but can't be sure (I did the update at night, mostly on mute or very low volume)

Tried with a fresh v34 image, and yes, it worked. Changed a few preferences... and the sound was gone after restart. Finally found it. it's the startup video! with the video on, it works. without it, no sound.

I tried to put on "fastboot", but didn't help. So i put a time limit of 15sec, and it's much better. I think it has something to do with the video initialization, or maybe HDMI mode, since the system boots on 1080p, but the video switches to 4k and then Emulation Station goes back to 1080p. Without the splash video (or with fastboot), it stays at 1080p and never gets sound. with just a few seconds at 4k, it works perfectly.

It also solved an annoyingly long startup time on some emulators when using a Vulkan backend (almost a minute of black screen!), but since I reset most settings, it might be something different.

Hope this helps troubleshooting and finding a real fix.

digizona commented 2 years ago

audio.device=alsa_output.pci-0000_00_0e.0.hdmi-stereo I have used that output, it's the first of my options and never worked for me.

Thanks that was a good Idea, I think it has to be something with the boot. because I changed the language and emulatistation restarted and the pc still had audio. btw I have disabled the splash intro and now I always have audio with the first boot (3 fresh installs) but after a full restart it loses the audio.

dmanlfc commented 2 years ago

@digizona can you test the v35 beta with updated mpv please?

https://drive.google.com/drive/folders/1_bqmR7CoZ78i7DolYt5b-RRqB5c-LPyN?usp=sharing

instructions for the upgrade are in the readme

dmanlfc commented 2 years ago

Related to - https://github.com/batocera-linux/batocera.linux/issues/6176

digizona commented 2 years ago

hi thanks for all your work, you are a great team.

Now it kinda works. I have to restart then choose the profiles & output and I have sound but i's a little random, sometime works.

dmanlfc commented 2 years ago

@digizona please try latest v35, thanks.

digizona commented 2 years ago

Sorry I know it was closed but I wanted to add something. I gave up a little about this issue but I decided to try again but this time with a different tv.... And it works... Maybe it was the combination of this horrible chuwi and the horrible cheap Daewoo tv but now i have sound with any version of batocera with my old LG TV... Thanks guys.

Radamanthys007 commented 1 year ago

all they have to do is add the following lines to the batocera-boot.conf file located in the root of the device that has batocera. sharewait=20 splash.screen.enable=1 splash.screen.sound=1 splash.screen.length=15 splash.screen.resize=1920x1080 audio.device=alsa_output.pci - 0000_00_0e.0.hdmi - stereo audio.profile=output:hdmi - stereo@alsa_card.pci - 0000_00_0e.0 es.resolution=max - 1920x1080

Radamanthys007 commented 1 year ago

remember to access from another OS or you can also use the terminal but you have to unmount and mount to be able to save the changes