You are not logged in.

#1 2014-09-12 22:42:09

wilson888888888
Member
Registered: 2014-09-12
Posts: 17

[SEMI-SOLVED] No sound

I just installed archlinux, and everything is working except for the sound. I unmuted everything in alsamixer, and according to pavucontrol there is sound from the correct sound card. However, I hear nothing.
Help

Last edited by wilson888888888 (2014-09-15 05:06:24)

Offline

#2 2014-09-12 22:43:24

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SEMI-SOLVED] No sound

aplay -lL;
lspci -vvnn | grep -A1 '040[1-3]';
cat /proc/asound/modules;
for i in $(awk '{print $2 | "sort"}' /proc/asound/modules | uniq); do echo "--- $i ---"; systool -vm $i; done;
lsmod | grep ^snd;
fuser -v /dev/snd/*;
for i in /proc/asound/card[0-9]*; do echo "--- $i ---";amixer -c $(cat $i/id); done;
lsusb #if there is a usb sound card;
# or use the alsa-info script

Offline

#3 2014-09-12 22:56:49

wilson888888888
Member
Registered: 2014-09-12
Posts: 17

Re: [SEMI-SOLVED] No sound

null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default
    Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=PCH
    HDA Intel PCH, ALC887-VD Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Digital
    IEC958 (S/PDIF) Digital Audio Output
sysdefault:CARD=DG
    Xonar DG, Multichannel
    Default Audio Device
front:CARD=DG,DEV=0
    Xonar DG, Multichannel
    Front speakers
surround21:CARD=DG,DEV=0
    Xonar DG, Multichannel
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=DG,DEV=0
    Xonar DG, Multichannel
    4.0 Surround output to Front and Rear speakers
surround41:CARD=DG,DEV=0
    Xonar DG, Multichannel
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=DG,DEV=0
    Xonar DG, Multichannel
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=DG,DEV=0
    Xonar DG, Multichannel
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=DG,DEV=0
    Xonar DG, Multichannel
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=DG,DEV=0
    Xonar DG, Multichannel
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 3
    HDMI Audio Output
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC887-VD Digital [ALC887-VD Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: DG [Xonar DG], device 0: Multichannel [Multichannel]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: DG [Xonar DG], device 1: Digital [Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
	Subsystem: ASUSTeK Computer Inc. ASUS P8Z77-V LX Motherboard [1043:8445]
--
01:00.1 Audio device [0403]: NVIDIA Corporation GK104 HDMI Audio Controller [10de:0e0a] (rev a1)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:2843]
--
05:02.0 Multimedia audio controller [0401]: C-Media Electronics Inc CMI8788 [Oxygen HD Audio] [13f6:8788]
	Subsystem: ASUSTeK Computer Inc. CMI8786 (Xonar DG) [1043:8467]
 0 snd_hda_intel
 1 snd_oxygen
 2 snd_hda_intel
--- snd_hda_intel ---
Module = "snd_hda_intel"

  Attributes:
    coresize            = "26327"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "2"
    taint               = ""
    uevent              = <store method only>

  Parameters:
    align_buffer_size   = "-1"
    bdl_pos_adj         = "1,32,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    beep_mode           = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
    enable_msi          = "-1"
    enable              = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
    id                  = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    index               = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    jackpoll_ms         = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
    model               = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    patch               = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    position_fix        = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    power_save          = "0"
    power_save_controller= "Y"
    probe_mask          = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    probe_only          = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
    single_cmd          = "N"
    snoop               = "Y"

  Sections:
    .bss                = "0xffffffffa02daa80"
    .data               = "0xffffffffa02da000"
    .data.unlikely      = "0xffffffffa02da7d0"
    .exit.text          = "0xffffffffa02d7930"
    .gnu.linkonce.this_module= "0xffffffffa02da800"
    .init.text          = "0xffffffffa027e000"
    .note.gnu.build-id  = "0xffffffffa02d8000"
    .rodata             = "0xffffffffa02d8040"
    .rodata.str1.1      = "0xffffffffa02d8f02"
    .rodata.str1.8      = "0xffffffffa02d92e0"
    .smp_locks          = "0xffffffffa02d9618"
    .strtab             = "0xffffffffa0281508"
    .symtab             = "0xffffffffa027f000"
    .text               = "0xffffffffa02d5000"
    __mcount_loc        = "0xffffffffa02d9848"
    __param             = "0xffffffffa02d9628"
    __verbose           = "0xffffffffa02da640"

--- snd_oxygen ---
Module = "snd_oxygen"

  Attributes:
    coresize            = "23783"
    initsize            = "0"
    initstate           = "live"
    refcnt              = "2"
    taint               = ""
    uevent              = <store method only>

  Parameters:
    enable              = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
    id                  = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    index               = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"

  Sections:
    .bss                = "0xffffffffa0375500"
    .data               = "0xffffffffa0375000"
    .exit.text          = "0xffffffffa0372d55"
    .gnu.linkonce.this_module= "0xffffffffa0375280"
    .init.text          = "0xffffffffa0378000"
    .note.gnu.build-id  = "0xffffffffa0373000"
    .rodata             = "0xffffffffa0373040"
    .rodata.str1.1      = "0xffffffffa0373a30"
    .rodata.str1.8      = "0xffffffffa0374038"
    .strtab             = "0xffffffffa037a2c0"
    .symtab             = "0xffffffffa0379000"
    .text               = "0xffffffffa0371000"
    __mcount_loc        = "0xffffffffa0373dc0"
    __param             = "0xffffffffa0373d60"

snd_hda_codec_hdmi     45117  1 
snd_hda_codec_realtek    67127  1 
snd_hda_codec_generic    63126  1 snd_hda_codec_realtek
snd_oxygen             23783  2 
snd_oxygen_lib         36709  1 snd_oxygen
snd_mpu401_uart        13507  1 snd_oxygen_lib
snd_rawmidi            26806  1 snd_mpu401_uart
snd_seq_device         13132  1 snd_rawmidi
snd_hda_intel          26327  2 
snd_hda_controller     26727  1 snd_hda_intel
snd_hda_codec         108552  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep              17244  1 snd_hda_codec
snd_pcm                88487  5 snd_hda_codec_hdmi,snd_oxygen_lib,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer              26614  1 snd_pcm
snd                    69340  21 snd_oxygen,snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_rawmidi,snd_oxygen_lib,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_mpu401_uart,snd_seq_device
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  wilson      364 F.... pulseaudio
/dev/snd/controlC1:  wilson      364 F.... pulseaudio
/dev/snd/controlC2:  wilson      364 F.... pulseaudio
--- /proc/asound/card0 ---

Offline

#4 2014-09-12 23:03:36

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SEMI-SOLVED] No sound

 You missed the last line with amixer, correct your post and append that part. Which card is supposed to be default? The Xonar?

Offline

#5 2014-09-12 23:09:35

wilson888888888
Member
Registered: 2014-09-12
Posts: 17

Re: [SEMI-SOLVED] No sound

That was the last line; the script hangs after that. Xonar is supposed to be the default.

Offline

#6 2014-09-12 23:14:36

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SEMI-SOLVED] No sound

 Then you copied/pasted it incorrectly*.

for i in /proc/asound/card[0-9]*; do echo "--- $i ---";amixer -c $(cat $i/id); done;

 Create a file /etc/modprobe.d/50-alsa.conf with this content:

options snd-oxygen index=0

 If after the reboot, 'aplay -l' still reports Xonar as card 1, use this instead:

options snd slots=snd-oxygen,snd-hda-intel,snd-hda-intel

Edit: *Might be shell dependent, so correct if necessary. And if it still hangs, run it manually:

amixer -c PCH;
amixer -c DG;
amixer -c NVidia;

Last edited by emeres (2014-09-12 23:17:06)

Offline

#7 2014-09-12 23:25:33

wilson888888888
Member
Registered: 2014-09-12
Posts: 17

Re: [SEMI-SOLVED] No sound

--- /proc/asound/card0 ---
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB] [on]
  Front Right: Playback 255 [100%] [0.00dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Limits: Capture -24 - 24
  Front Left: Capture -24 [0%] [-12.00dB] [off]
  Front Right: Capture -24 [0%] [-12.00dB] [off]
Simple mixer control 'Line',0
  Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Limits: Capture -24 - 24
  Front Left: Capture -24 [0%] [-12.00dB] [off]
  Front Right: Capture -24 [0%] [-12.00dB] [off]
Simple mixer control 'Mic',0
  Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Limits: Capture -24 - 24
  Front Left: Capture 0 [50%] [0.00dB] [on]
  Front Right: Capture 0 [50%] [0.00dB] [on]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958 Loopback',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958 Validity Check',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [off]
Simple mixer control 'Aux',0
  Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Front Left - Front Right
  Limits: Capture -24 - 24
  Front Left: Capture -24 [0%] [-12.00dB] [off]
  Front Right: Capture -24 [0%] [-12.00dB] [off]
Simple mixer control 'ADC High-pass Filter',0
  Capabilities: cenum
  Items: 'Active' 'Frozen'
  Item0: 'Active'
Simple mixer control 'Analog Input Monitor',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 1
  Mono: Playback 1 [100%] [0.00dB] [on]
Simple mixer control 'Analog Output',0
  Capabilities: penum
  Items: 'Stereo Headphones' 'Stereo Headphones FP' 'Multichannel'
  Item0: 'Stereo Headphones FP'
Simple mixer control 'Digital Input Monitor',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 1
  Mono: Playback 1 [100%] [0.00dB] [on]
Simple mixer control 'Stereo Upmixing',0
  Capabilities: enum
  Items: 'Front' 'Front+Surround'
  Item0: 'Front+Surround'
--- /proc/asound/card1 ---
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Front Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 0 [0%] [-64.00dB] [off]
  Front Right: Playback 0 [0%] [-64.00dB] [off]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 0 [0%] [-64.00dB] [off]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 0 [0%] [-64.00dB] [off]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Line Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 28 [61%] [12.00dB] [on]
  Front Right: Capture 28 [61%] [12.00dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 0 [0%] [-16.00dB] [off]
  Front Right: Capture 0 [0%] [-16.00dB] [off]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Channel Mode',0
  Capabilities: enum
  Items: '2ch' '4ch' '6ch'
  Item0: '2ch'
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Front Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Front Mic'
Simple mixer control 'Rear Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Rear Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
--- /proc/asound/card2 ---
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',3
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

Xonar is now card zero, but there is still no sound.

Offline

#8 2014-09-12 23:36:17

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SEMI-SOLVED] No sound

 Disable all IEC958s, Auto-Mute and switch Analog Output to Multichannel:

amixer -c DG sset 'Analog Output' Multichannel
amixer -c DG sset 'IEC958' off
amixer -c DG sset 'IEC958 Loopback' off

amixer -c PCH sset 'IEC958' off
amixer -c PCH sset 'IEC958 Default PCM' off
amixer -c PCH sset 'Auto-Mute Mode' Disabled

amixer -c NVidia sset 'IEC958' off

 Then run multiple instances of speaker-test at once.

# at least two of those
speaker-test -c 2 -t wav -D plug:"dmix:{CARD DG DEV 0}"

# afterwards two of those
speaker-test -c 2 -t wav -D plug:"dmix:{CARD PCH DEV 0}"

# run 
fuser -v /dev/snd/*
# while testing to see if only pusleaudio is active

 You probably want also to unload and disable module suspend-on-idle like explained on the arch linux pulseaudio wiki. Remember that pulseaudio-alsa package needs to be installed, so that all sound directed to alsa goes through pulseaudio.

Offline

#9 2014-09-12 23:56:46

wilson888888888
Member
Registered: 2014-09-12
Posts: 17

Re: [SEMI-SOLVED] No sound

Sound now works, but there seems to be no way to control the volume.
Running

 speaker-test -c 2 -t wav -D plug:"dmix:{CARD DG DEV 0}" 

just gives this ouput:

speaker-test 1.0.28

Playback device is plug:dmix:{CARD DG DEV 0}
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Playback open error: -16,Device or resource busy

The second one works normally, except there is no sound even though there is sound for everything else.

The output of fuser -v /dev/snd/* is:

                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  wilson      358 F.... pulseaudio
/dev/snd/controlC1:  wilson      358 F.... pulseaudio
/dev/snd/controlC2:  wilson      358 F.... pulseaudio
/dev/snd/pcmC0D0c:   wilson      358 F...m pulseaudio
/dev/snd/pcmC0D0p:   wilson      358 F...m pulseaudio
/dev/snd/pcmC1D0p:   wilson     2544 F...m speaker-test
                     wilson     2550 F...m speaker-test
/dev/snd/timer:      wilson     2544 f.... speaker-test
                     wilson     2550 f.... speaker-test

Offline

#10 2014-09-13 00:05:37

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SEMI-SOLVED] No sound

 Then run simply 'speaker-test', it should show up in PA. PA should have been killed for the above tests and since speaker-test addresses the dmix directly through runtime arguments, it has no volume controls.
 If pulseaudio-alsa is installed and the module disabled, which you have done from the looks of fuser, then every sound should go through PA, unless alsa devices are directly specified. Should you consider this issue solved, then please mark the thread as such.

Edit: Typos.

Last edited by emeres (2014-09-13 00:06:50)

Offline

#11 2014-09-13 00:22:28

wilson888888888
Member
Registered: 2014-09-12
Posts: 17

Re: [SEMI-SOLVED] No sound

I meant that there is no volume control for any sound; I can only play sound at the maximum volume, which is deafeningly loud. Neither alsamixer nor pavucontrol affect the volume.

Offline

#12 2014-09-13 00:34:26

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SEMI-SOLVED] No sound

 What applications are you using/testing? try something pulseaudio specific.

Offline

#13 2014-09-13 00:36:45

wilson888888888
Member
Registered: 2014-09-12
Posts: 17

Re: [SEMI-SOLVED] No sound

The volume can't be controlled in google chrome, deadbeef, and the sound effects for gnome.

Offline

#14 2014-09-13 00:38:11

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SEMI-SOLVED] No sound

 Are there any applications, where it can be controlled?

Offline

#15 2014-09-13 00:41:33

wilson888888888
Member
Registered: 2014-09-12
Posts: 17

Re: [SEMI-SOLVED] No sound

I can only use the built in volume control, such as for youtube or deadbeef, but that's it. Anything without built in volume control doesn't work.

Offline

#16 2014-09-13 00:45:41

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SEMI-SOLVED] No sound

 I meant within PA. Maybe there have been recent changes in PA, I suggest you go through the troubleshooting section of PA wiki.

Offline

#17 2014-09-13 01:00:02

wilson888888888
Member
Registered: 2014-09-12
Posts: 17

Re: [SEMI-SOLVED] No sound

I think that the volume control actually works, but it's scaled very strangely so that the only under maximum is when the slider is a pixel away from 0. Is there any way to change the scale of the volume control?

Last edited by wilson888888888 (2014-09-13 01:00:30)

Offline

#18 2014-09-13 18:15:23

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SEMI-SOLVED] No sound

 Since I do not use PA anymore, I cannot test what I found:

# edit /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common
[Element PCM]
switch = mute
volume = merge

#change to

[Element PCM]
switch = mute
volume = ignore

 Maybe you will find something useful on the modules documentation page.

Edit: I doubt that flat volumes will help.

Last edited by emeres (2014-09-13 18:16:15)

Offline

#19 2014-09-14 05:47:02

wilson888888888
Member
Registered: 2014-09-12
Posts: 17

Re: [SEMI-SOLVED] No sound

That didn't work, but lack of volume control isn't that big of a deal because most applications have it built in.
I'll just mark the thread as solved.

Offline

#20 2014-09-14 10:42:42

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SEMI-SOLVED] No sound

wilson888888888 wrote:

That didn't work, but lack of volume control isn't that big of a deal because most applications have it built in.
I'll just mark the thread as solved.

 If you do not use Pulseaudios networking capabilities, then what is the point in using PA in the first place in your case? I would mark it as semi solved, maybe someone knows how to troubleshoot and modify the volume issue.

Offline

Board footer

Powered by FluxBB