No audio in Audacious/Firefox - "GStreamer was unable to detect any sound devices"
-
- Offline
- 1 month 3 weeks ago
- 2017-05-05
Hi everyone! Alpine 3.5.2 setup on an HP laptop using xfce4. Created sudo user before launching slim, and desktop launches, but having tried installation three times, most times there is no sound in youtube or when other videos play in Firefox; there was no sound on Audacious later on two installations even with Settings/Audio/'SDL Output'. System beeps are heard.
I'm not sure whether the reason for the variations was the different ways of creating a sudo user or some other variation in the installation process.
Other symptoms:-
1. Audio Mixer/'xfce4-mixer
' applet launches saying "GStreamer was unable to detect any sound devices. Some sound system specific GStreamer packages may be missing. It may also be a permissions problem."
2. sudo lspci | grep Audio
returns nothing.
3. sudo cat /etc/asound.conf
returns No such file or directory
.
Currently installed packages include: alsa-utils alsaconf pulseaudio@testing aumix sox phonon-backend-gstreamer gst-plugins-bad0.10 gstreamer0.10 gstreamer0.10-tools gstreamer1 gstreamer1-doc gstreamer1-tools gstreamermm@testing ffmpeg fdk-aac@testing audacious-plugins vlc vlc-plugins-codec vlc-qt
. However, I did not how to navigate aumix when following the instructions for aumix at https://wiki.alpinelinux.org/wiki/Alpine_Linux:FAQ#How_do_I_play_my_.ogg.2F.mp3_files.3F.
Also tried listing audio cards in desired order under /etc/modprobe.d/alsa-base.conf
:
options HD-Audio Generic index=1 options HDA ATI HDMI index=0
Could it be a missing instruction, a permissions problem or a missing package?
I resolved with root permissions adduser your_ser audio
I've moved on to another distro for the moment; I still couldn't get Firefox to play audio, but audio usually (except for once!) played for video in Chromium although not for music websites e.g. not on shoutcast.com. In case it could help someone not to make the same errors, if I understood correctly, the following may help:
Correction 1.
Corrected the
/etc/modprobe.d/alsa-base.conf
entries that I reported above.A helpful guide (although for Arch Linux) is at
https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Alternative_method
Correction 2.
Added user to audio group and, as another user for another distro seems to suggest, adding to other groups is handy also-
I've started alsa with these commands, executed as a root:
1. Check whether your OS sees your card - I've been using lspci (some info about sound card should be present) and alsamixer (run alsamixer as a root, then press f6). If you don't see anything it might be problem with driver (or driver is not present).
2. run "alsamixer", make sure master is on (i.e. 50%).
3. run "alsactl store".
4. Start alsa service with command "rc-service start alsa" and mark it for autostart "rc-update add alsa".
5. If there was warning about muted card, execute: "rc-service stop alsa", "alsactl store", "rc-service start alsa". If again you see some text about muted card, I don't know what can help it : /.
5. Add user (which will use sound card) into "audio" group with "addgroup -S (username) audio".
I have a question to the alpine developers/anyone who knows the answer - why apk does not start alsa service when package is installed? I just would like to see Your point of view.
@Mateus R. MoreiraCherrypie - Thank you for your good point.
@kgotfryd - Thank you very much for your concern to help. It is a helpful post also, which could help in other distros as well, only one would need to change the syntax and expressions to the distro's service packages accordingly. I just noticed your post, as I have moved on to another distro but had a look to Alpine again, hoping that the sound issues are ok after all. Thank you!