Tasslehoff |
06-28-2016 12:37 PM |
No audio from console
Hi guys, I have a problem with audio output on a Dell Optiplex workstation which has an Intel soundcard "Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02)".
I'm using Fedora 24 Mate and if I try to listen some audio files or streming content (for example Youtube) all seems to work perfectly.
The problem is that I need to play audio files (a simple wav or mp3 file) on console because I need to use this workstation as audio alert for other services (Nagios).
I tried aplay, sox (play) and mplayer, but none of them seems to work, the problem seems related to /dev/dsp missing device or some permission problem.
First things first, the devices seems ok (they works on gui, for example with xmms):
Code:
[root@drakaris ~]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD1983 Analog [AD1983 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
[root@drakaris ~]# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default
Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=Intel
HDA Intel, AD1983 Analog
Default Audio Device
front:CARD=Intel,DEV=0
HDA Intel, AD1983 Analog
Front speakers
surround21:CARD=Intel,DEV=0
HDA Intel, AD1983 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Intel,DEV=0
HDA Intel, AD1983 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, AD1983 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, AD1983 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, AD1983 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, AD1983 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
When I try to use aplay, play (sox) or mplayer this is the result:
Code:
[root@drakaris ~]# mplayer test.wav
MPlayer 1.3.0-6.1.1 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing test.wav.
libavformat version 57.25.100 (external)
Audio only file format detected.
Load subtitles in ./
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
X11 connection rejected because of wrong authentication.
xcb_connection_has_error() returned true
AO: [pulse] Init failed: Connection refused
Failed to initialize audio driver 'pulse'
X11 connection rejected because of wrong authentication.
xcb_connection_has_error() returned true
[AO_ALSA] alsa-lib: pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
[AO_ALSA] Playback open error: Connection refused
Failed to initialize audio driver 'alsa'
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
X11 connection rejected because of wrong authentication.
xcb_connection_has_error() returned true
[AO_ALSA] alsa-lib: pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
[AO_ALSA] Playback open error: Connection refused
X11 connection rejected because of wrong authentication.
xcb_connection_has_error() returned true
AO: [pulse] Init failed: Connection refused
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
X11 connection rejected because of wrong authentication.
xcb_connection_has_error() returned true
X11 connection rejected because of wrong authentication.
xcb_connection_has_error() returned true
[AO_ALSA] alsa-lib: pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
[AO SDL] Unable to open audio: No available audio device
DVB card number must be between 1 and 4
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 2.0 (01.9) of 2.0 (02.0) 0.3%
Audio output truncated at end.
A: 2.0 (01.9) of 2.0 (02.0) 0.3%
Exiting... (End of file)
[root@drakaris ~]#
[root@drakaris ~]# aplay test.wav
X11 connection rejected because of wrong authentication.
xcb_connection_has_error() ha restituito VERO
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connessione rifiutata
aplay: main:786: audio open error: Connection refused
[root@drakaris ~]#
[root@drakaris ~]# play test.wav
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
Floating point exception (core dump creato)
I already tried to use a different user inside the audio group and also to add the root user to audio group but nothing changed, I tried almost everything but I have no experience with linux audio stuff, is there someone who can give me some hints?
Thanks
Tasslehoff Burrfoot
|