Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
audio_issues [2022/03/05 04:12] – [I have no sound!] instructions for manually (thanks titi_38) atariaudio_issues [2023/12/19 03:59] (current) – Add section on HDMI audio issues for HP EliteDesk 800 G4 mini maximumentropy
Line 32: Line 32:
   - Remember the name/number of this working Audio output device (for example HDMI#0), exit Kodi and go to the Batocera **Main Menu** > **System Settings** > **Audio** and select the Audio output device, which has the same (or at least a similar) name to the one that works in Kodi. Then reboot and you should have working audio.   - Remember the name/number of this working Audio output device (for example HDMI#0), exit Kodi and go to the Batocera **Main Menu** > **System Settings** > **Audio** and select the Audio output device, which has the same (or at least a similar) name to the one that works in Kodi. Then reboot and you should have working audio.
   - You can also diagnose some sound issues with the ''alsamixer'' sound mixer that is available when pressing ''[Ctrl]''+''[Alt]''+''[F4]'' (text-mode sound mixer). Make sure that all the outputs are enabled, and they have their volume up. You can return to Batocera with ''[Ctrl]''+''[Alt]''+''[F2]''.   - You can also diagnose some sound issues with the ''alsamixer'' sound mixer that is available when pressing ''[Ctrl]''+''[Alt]''+''[F4]'' (text-mode sound mixer). Make sure that all the outputs are enabled, and they have their volume up. You can return to Batocera with ''[Ctrl]''+''[Alt]''+''[F2]''.
 +
 +==== I still don't have any sound! ====
 +
 +In Batocera **v36** and higher, try activating the [[https://thesofproject.github.io/latest/introduction/index.html|newer SOF DSP handling]]:
 +  - Open up an SCP session (or use Batocera's built-in file manager by pressing ''[F1]'' on the system list).
 +  - Go to ''/etc/modprobe.d'' and open ''intel-dsp.conf'' in a Unix-compliant text editor (no, Windows' Notepad will not do). ''/etc'' is in the root directory, you may need to go up one level from the ''userdata'' folder.
 +  - Edit the line which says ''options snd-intel-dspcfg dsp_driver=1'' to instead say ''options snd-intel-dspcfg dsp_driver=3'' and save the file.
 +  - [[:access_the_batocera_via_ssh|Open a terminal]] and run ''batocera-save-overlay''.
 +  - Reboot
 +
 +More information can be found in [[https://thesofproject.github.io/latest/getting_started/intel_debug/introduction.html#acpi-platforms-introduced-before-and-up-to-2015|SOF's documentation]].
  
 ===== I have sound in Kodi, but not in the main menu or emulators even after selecting the audio device from the above steps and rebooting ===== ===== I have sound in Kodi, but not in the main menu or emulators even after selecting the audio device from the above steps and rebooting =====
Line 54: Line 65:
   - Replace the second digit with your audio number. For instance, if it is ''audio.device=0,3'', then according to our example it would be ''audio.device=0,4''. The following text doesn't particularly matter, that's just the label it shows in EmulationStation.   - Replace the second digit with your audio number. For instance, if it is ''audio.device=0,3'', then according to our example it would be ''audio.device=0,4''. The following text doesn't particularly matter, that's just the label it shows in EmulationStation.
   - Reboot, and if your audio still isn't working then try ''audio.device=1,3'', then ''audio.device=2,3'' and so on.   - Reboot, and if your audio still isn't working then try ''audio.device=1,3'', then ''audio.device=2,3'' and so on.
 +
 +===== Not all of my speakers are being used =====
 +
 +Ensure you have selected the right audio profile in **MAIN MENU** -> **SYSTEM SETTINGS** -> **AUDIO PROFILE**.
 +
 +For instance, a 5.1 surround sound setup would want to use the "SURROUND 5.1" profile:
 +
 +{{:audio-profile.png?nolink&600|}}
  
 ===== I have sound in emulators and the main menu, but not during video previews ===== ===== I have sound in emulators and the main menu, but not during video previews =====
Line 162: Line 181:
  
 This is more likely to be a hardware fault. Replug the cable, try a different cable, using a different interface (like 3.5mm analog audio instead of HDMI), etc. This is more likely to be a hardware fault. Replug the cable, try a different cable, using a different interface (like 3.5mm analog audio instead of HDMI), etc.
 +
 +===== How do I diagnose my audio cutting out? =====
 +
 +While running a game, SSH into Batocera and run ''%%pw-top%%''. One line will be for ''alsa_output'' (depending on the emulator) and another line will be for the emulator (in most cases, ''retroarch''). Look at the ''ERR'' column, if both are increasing this indicates an issue with underrun audio frames. This can be solved via increasing the audio latency, choosing a more optimized audio backend or reducing the overall CPU usage.
  
 ===== My audio device is not appearing in the list of available audio outputs on Raspberry Pi ===== ===== My audio device is not appearing in the list of available audio outputs on Raspberry Pi =====
Line 179: Line 202:
  
 Using the fake kernel mode setting may introduce performance issues. It is preferable to instead figure out the root cause of the issue instead. Using the fake kernel mode setting may introduce performance issues. It is preferable to instead figure out the root cause of the issue instead.
 +
 +===== My audio device is not appearing in the list of available audio outputs on HP EliteDesk 800 G4 mini =====
 +
 +[[https://www.reddit.com/r/batocera/comments/17vdhcb/hp_elitedesk_800_g4_mini_hdmiaudio_problems/|Roll back to BIOS v2.14.01]], as later versions have bugs preventing HDMI audio from working properly in Linux.
 +
 +===== I need to automate something involving my audio settings =====
 +
 +You can use [[:launch_a_script|Batocera's scripting capabilities]] to do so. [[:launch_a_script#batocera_scripts1|Scroll down to find an example related to audio settings.]]
  
  • audio_issues.1646449965.txt.gz
  • Last modified: 2 years ago
  • by atari