You are not logged in.
RefractaOS - (Devuan Daedalus Based) Fresh Install - No Sound?
I cannot make head nor tail of the Alsa Mixer! HELP!
Last edited by Noel (2025-06-23 09:06:07)
Offline
Normally the audio works. in alsamixer, use arrow keys to move left/right to select a channel, m to mute/unmute a channel, pgup/pgdown to raise/lower volumes. ESC to exit when you're done.
Post the output of aplay -l Let's see how many audio devices you have and what they are.
Offline
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
Offline
Since the analog out put is on your card 1, you should create a file
/etc/alsa/conf.d/00-defaults.conf with the following line:
defaults.pcm.!card 1
Offline
Thank you Fred & Ralph. However Ralph, I could not create the file < /etc/alsa/conf.d/00-defaults.conf >
$ ls -al /etc/alsa
ls: cannot access '/etc/alsa': No such file or directory
???
Should I just create empty < alsa > & < conf.d > directories?
Offline
➤ apt-file find /etc/alsa/conf.d
...
libasound2-plugins: /etc/alsa/conf.d/10-rate-lav.conf
libasound2-plugins: /etc/alsa/conf.d/10-samplerate.conf
libasound2-plugins: /etc/alsa/conf.d/10-speexrate.conf
libasound2-plugins: /etc/alsa/conf.d/50-arcam-av-ctl.conf
libasound2-plugins: /etc/alsa/conf.d/50-jack.conf
libasound2-plugins: /etc/alsa/conf.d/50-oss.conf
libasound2-plugins: /etc/alsa/conf.d/50-pulseaudio.conf
libasound2-plugins: /etc/alsa/conf.d/60-a52-encoder.conf
libasound2-plugins: /etc/alsa/conf.d/60-speex.conf
libasound2-plugins: /etc/alsa/conf.d/60-upmix.conf
libasound2-plugins: /etc/alsa/conf.d/60-vdownmix.conf
libasound2-plugins: /etc/alsa/conf.d/98-usb-stream.conf
libasound2-plugins: /etc/alsa/conf.d/99-pulseaudio-default.conf.example
...
See also:
_https://www.commandlinux.com/man-page/man1/apt-file.1.html
Last edited by igorzwx (2025-06-20 01:59:50)
Offline
Yes, create the directory pathname
# mkdir -p /etc/alsa/conf.d
if it doesn't exist.
in fact, if you look into /usr/share/alsa/alsa.conf which is the main configuration file for alsa, you will see that it looks for configuration files in many places. I suggested /etc/alsa/conf.d/ because that is commonly used by many packages and especially bluez-alsa-utils (which provides a virtual sound card for playback and capture via bluez bluetooth mediation).
Some people prefer using ~/.asoundrc instead, since that is written/editable by the non-root end user. However it will also only be used by that non-root end user and not shared among all users.
Offline
THANK YOU EVERYONE! I now have sound! Yippee! 'b'ye ! - Noel AAARRRGGGHHH!!!! JUST DISCOVERED NO SOUND ON FACEBOOK?
Last edited by Noel (2025-06-23 09:07:29)
Offline
You may post the output of this command:
fuser -av $(find /dev/snd -type c 2>/dev/null)
For example:
➤ fuser -av $(find /dev/snd -type c 2>/dev/null)
USER PID ACCESS COMMAND
/dev/snd/controlC0: igor 2235 F.... mate-settings-d
igor 2326 F.... mate-volume-con
/dev/snd/pcmC0D0c:
/dev/snd/pcmC0D0p: igor 3201 F...m firefox-esr
/dev/snd/seq:
/dev/snd/timer: igor 3201 f.... firefox-esr
And the output of
inxi -A
sudo apt install inxi
inxi: everything you need to know about your computer
_https://easylinuxtipsproject.blogspot.com/p/inxi.html
Last edited by igorzwx (2025-06-24 14:37:21)
Offline
bluez-alsa-utils (which provides a virtual sound card for playback and capture via bluez bluetooth mediation).
It seems that it does not provide any "virtual sound card".
What it does provide is a sort "virtual PCM device" named "bluealsa"
_https://github.com/arkq/bluez-alsa
aplay -D bluealsa test.wav
alsamixer -D bluealsa
$ bluealsa-aplay -l
**** List of PLAYBACK Bluetooth Devices ****
hci0: EC:66:D1:BF:02:05 [Godess of Wisdom], trusted audio-headphones
A2DP (SBC): S16_LE 2 channels 48000 Hz
**** List of CAPTURE Bluetooth Devices ****
It can be configured as default playback device, e.g. ~/.asoundrc.
The question is how to configure a dmix for it.
EDIT:
Unfortunately dmix works as a front-end only with hardware (ie "hw" type) devices, and not with any other plugin types such as BlueALSA.
So it is not possible to configure BlueALSA as a backend device for dmix. We are forced to find an indirect method; that is, use a "hw" device that can forward the mixed stream on to a BlueALSA PCM. Fortunately, ALSA provides just such a device, the "Loopback" device, which is a kernel driver that implements a virtual sound card.
This wiki article describes one way that BlueALSA can be used with the ALSA Loopback device and the dmix plugin to achieve mixing of multiple audio streams into a single BlueALSA playback PCM.
_https://github-wiki-see.page/m/Arkq/bluez-alsa/wiki/Using-bluealsa-with-dmix
A very simple ALSA config for Bluetooth Headphones:
$ cat ~/.asoundrc
# -------------------------------------------
# Bluetooth Headphones
#
# Configuration for default audio device
#--------------------------------------------
# Perform plug device
pcm.!default
{
type plug
slave.pcm "bluealsa"
hint.description "Default device"
}
bluealsa is a Linux daemon to give applications access to Bluetooth audio streams using the Bluetooth A2DP, HFP, HSP and/or BLE-MIDI profiles. It provides a D-Bus API to applications, and can be used by ALSA applications via libasound plugins (see bluealsa-plugins(7) for details).
_https://manpages.debian.org/unstable/bluez-alsa-utils/bluealsa.8.en.html
$ apt-file find /usr/bin/bluealsa
bluez-alsa-utils: /usr/bin/bluealsa
bluez-alsa-utils: /usr/bin/bluealsa-aplay
Last edited by igorzwx (Yesterday 17:36:48)
Offline