You are not logged in.
I just moved from Ubuntu and I'm not a geek. I have no sound from my Xonar DGX card (analog; headphone jack), I did go through previous posts here and wiki for audio. Still no luck (note: it was working well in ubuntu and I was using qasmixter to set the card; qastools, under Arch I can't get qastools installed; installation error)
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: DGX [Xonar DGX], device 0: Multichannel [Multichannel]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: DGX [Xonar DGX], device 1: Digital [Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC888-VD Analog [ALC888-VD Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 1: ALC888-VD Digital [ALC888-VD Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=DGX
Xonar DGX, Multichannel
Default Audio Device
sysdefault:CARD=DGX
Xonar DGX, Multichannel
Default Audio Device
front:CARD=DGX,DEV=0
Xonar DGX, Multichannel
Front speakers
surround21:CARD=DGX,DEV=0
Xonar DGX, Multichannel
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=DGX,DEV=0
Xonar DGX, Multichannel
4.0 Surround output to Front and Rear speakers
surround41:CARD=DGX,DEV=0
Xonar DGX, Multichannel
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=DGX,DEV=0
Xonar DGX, Multichannel
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=DGX,DEV=0
Xonar DGX, Multichannel
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=DGX,DEV=0
Xonar DGX, Multichannel
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=DGX,DEV=0
Xonar DGX, Multichannel
IEC958 (S/PDIF) Digital Audio Output
default:CARD=PCH
HDA Intel PCH, ALC888-VD Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC888-VD Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC888-VD Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC888-VD Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC888-VD Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC888-VD Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC888-VD Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC888-VD Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC888-VD Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC888-VD Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
hdmi:CARD=PCH,DEV=1
HDA Intel PCH, HDMI 1
HDMI Audio Output
hdmi:CARD=PCH,DEV=2
HDA Intel PCH, HDMI 2
HDMI Audio Output
aplay < /dev/urandom
Playing raw data 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
aplay: set_params:1233: Sample format non available
Available formats:
- S16_LE
- S32_LE
cat /proc/asound/modules
0 snd_oxygen
1 snd_hda_intel
cat /etc/asound.conf
pcm.!default {
type hw
card DGX
}
ctl.!default {
type hw
card DGX
}
aplay -D default /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1239: Channels count non available
# speaker-test
speaker-test 1.0.29
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Channels count (1) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument
speaker-test -c 2
speaker-test 1.0.29
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 16 to 262144
Period size range from 16 to 262144
Using max buffer size 262144
Periods = 4
was set period_size = 65536
was set buffer_size = 262144
0 - Front Left
1 - Front Right
Time per period = 5.465346
Also I tried with mpg321, as a root it plays the music (again no sound)
mpg321 some.mp3
But if I'm not a root then I get error
Playing MPEG stream from 01_some.mp3 ...
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
ALSA lib pcm_hw.c:1693:(_snd_pcm_hw_open) Invalid value for card
ao_alsa ERROR: Unable to open ALSA device 'default' for playback => No such device
ao_oss ERROR: open(default) => No such file or directory
Can't find a suitable libao driver. (Is device in use?)
if I remove the /etc/asound.conf then I don't get warning with aplay and speaker-test
# aplay -D default test.wav
Playing WAVE 'test.wav' : Unsigned 8 bit, Rate 44100 Hz, Mono
It will be great if you can help me with this, thanks
Update 1: First I want to get audio from a USB audio card.
Last edited by chittu (2015-08-23 15:15:20)
Offline
Let's start with excluding less complicated things.
Have you played around with alsamixer ? Xonar DGX has no automatic output switching. Make sure that it's either set to Multichannel or Headphones. Not Headphones FP.
Offline
Let's start with excluding less complicated things.
Have you played around with alsamixer ? Xonar DGX has no automatic output switching. Make sure that it's either set to Multichannel or Headphones. Not Headphones FP.
I started with alsamixer. Here is the screenshot
As I found an old USB audio card (still working ), I decided to get audio from this USB card. But I have some issue (i.e., partially works)
cat /proc/asound/card*/id
DGX
Device
PCH
# cat /etc/asound.conf
pcm.!default {
type hw
card Device
}
ctl.!default {
type hw
card Device
}
so far I can get audio only by doing this (I need to be root to get the audio.)
mpg321 some.mp3
Playing MPEG stream from 02_Some.mp3 ...
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
I need to define asound.conf otherwise I have no audio from any of these test (including mpg321)
Neither aplay nor speaker-test doesn't produce any audio (which is strange! )
# aplay < /dev/urandom
Playing raw data 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
aplay: set_params:1233: Sample format non available
Available formats:
- S16_LE
speaker-test
speaker-test 1.0.29
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Channels count (1) not available for playbacks: Invalid argument
Setting of hwparams failed: Invalid argument
aplay -D default /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1239: Channels count non available
Last edited by chittu (2015-08-23 15:14:07)
Offline
That's strange, are you sure you have installed alsa-utils properly ?
One thing to try:
sudo echo "blacklist snd_hda_intel" > /etc/modprobe.d/nohda.conf
It will stop intel sound card from loading kernel module. Reboot afterwards.
Here is a link to a problem which looks close to yours: https://bbs.archlinux.org/viewtopic.php?id=137026
Last edited by PootisBird (2015-08-23 17:00:41)
Offline