Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- psg () { ps u -p $(pgrep "${@:--u$USER}"); } # define a handy function
- psg pulse # see if there is a pulseaudio process running
- psg () { ps u -p $(pgrep "${@:--u$USER}"); }
- mark@mark-eME644:~$ psg pulse
- USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
- mark 2234 0.0 0.2 436664 5824 ? S<l 10:35 0:00 /usr/bin/pulsea
- cat /proc/asound/card0/pcm0p/sub0/hw_params
- # see if anything in your system has the sound device open
- cat /proc/asound/card0/pcm0p/sub0/hw_params
- cat: /proc/asound/card0/pcm0p/sub0/hw_params: No such file or directory
- # Note: Found dirs
- /proc/asound/card0/pcm3p
- /proc/asound/card1/pcm0c
- /proc/asound/card1/pcm0p
- /proc/asound/Generic/pcm3p
- /proc/asound/SB/pcm0c
- /proc/asound/SB/pcm0p
- -----------
- #With youtube playing:
- cat /proc/asound/card0/pcm3p/sub0/hw_params
- closed
- cat /proc/asound/card1/pcm0c/sub0/hw_params
- closed
- cat /proc/asound/card1/pcm0p/sub0/hw_params
- access: MMAP_INTERLEAVED
- format: S16_LE
- subformat: STD
- channels: 2
- rate: 44100 (44100/1)
- period_size: 8192
- buffer_size: 16384
- cat /proc/asound/Generic/pcm3p/sub0/hw_params
- closed
- cat /proc/asound/SB/pcm0c/sub0/hw_params
- closed
- cat /proc/asound/SB/pcm0p/sub0/hw_params
- access: MMAP_INTERLEAVED
- format: S16_LE
- subformat: STD
- channels: 2
- rate: 44100 (44100/1)
- period_size: 8192
- buffer_size: 16384
- ----------
- /dev/snd # contents...... all 0bytes
- /dev/snd/controlC0
- /dev/snd/controlC1
- /dev/snd/hwC0D0
- /dev/snd/hwC1D0
- /dev/snd/pcmC0D3p
- /dev/snd/pcmC1D0c
- /dev/snd/pcmC1D0p
- /dev/snd/seq
- /dev/snd/timer
- ----------
- lsof /dev/snd/pcmC1D0p
- # see what has the sound device open
- # This is the only pcm variant producing output
- # all others (and hwc types) when ran, do nothing
- lsof /dev/snd/pcmC1D0p
- lsof /dev/snd/pcmC1D0p
- COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
- pulseaudi 2234 mark mem CHR 116,5 7742 /dev/snd/pcmC1D0p
- pulseaudi 2234 mark 29u CHR 116,5 0t0 7742 /dev/snd/pcmC1D0p
- -----------
- pavucontrol # a pulseaudio config gui
- It launches
- ------------
- These commands are all checking the first PCM playback stream of alsa card0. This is the HDA-Intel analog output, which is almost certainly what's hooked up to your speakers.
- Actually, hmm, I'm not 100% sure your system has card0 as the analog out. It looks like card0 is your HDMI output, and card1 is
- Card hw:1 'SB'/'HDA ATI SB at 0xd0440000 irq 16'
- Try playing something back through card1. e.g.
- aplay -L # choose a "device string"
- aplay -L
- default
- Playback/recording through the PulseAudio sound server
- hdmi:CARD=Generic,DEV=0
- HD-Audio Generic, HDMI 0
- HDMI Audio Output
- dmix:CARD=Generic,DEV=3
- HD-Audio Generic, HDMI 0
- Direct sample mixing device
- dsnoop:CARD=Generic,DEV=3
- HD-Audio Generic, HDMI 0
- Direct sample snooping device
- hw:CARD=Generic,DEV=3
- HD-Audio Generic, HDMI 0
- Direct hardware device without any conversions
- plughw:CARD=Generic,DEV=3
- HD-Audio Generic, HDMI 0
- Hardware device with all software conversions
- sysdefault:CARD=SB
- HDA ATI SB, CONEXANT Analog
- Default Audio Device
- front:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- Front speakers
- surround40:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- 4.0 Surround output to Front and Rear speakers
- surround41:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- 4.1 Surround output to Front, Rear and Subwoofer speakers
- surround50:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- 5.0 Surround output to Front, Center and Rear speakers
- surround51:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
- surround71:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
- dmix:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- Direct sample mixing device
- dsnoop:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- Direct sample snooping device
- hw:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- Direct hardware device without any conversions
- plughw:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- Hardware device with all software conversions
- ------------
- aplay -vv -D hdmi:CARD=HDMI,DEV=3 LoopyMusic.wav
- aplay -vv -D hdmi:CARD=HDMI,DEV=3 LoopyMusic.wav
- ALSA lib confmisc.c:768:(parse_card) cannot find card 'HDMI'
- ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
- ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
- ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_concat returned error: No such device
- ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
- ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such device
- ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such device
- ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM hdmi:CARD=HDMI,DEV=3
- aplay: main:682: audio open error: No such device
- hdmi:CARD=Generic,DEV=0
- HD-Audio Generic, HDMI 0
- HDMI Audio Output
- ----------
- aplay -vv -D dmix:CARD=Generic,DEV=3 LoopyMusic.wav
- aplay -vv -D dmix:CARD=Generic,DEV=3 LoopyMusic.wav
- Playing WAVE 'LoopyMusic.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
- aplay: set_params:1087: Channels count non available
- dmix:CARD=Generic,DEV=3
- HD-Audio Generic, HDMI 0
- Direct sample mixing device
- ----------
- aplay -vv -D dsnoop:CARD=Generic,DEV=3 LoopyMusic.wav
- aplay -vv -D dsnoop:CARD=Generic,DEV=3 LoopyMusic.wav
- ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
- aplay: main:682: audio open error: Invalid argument
- dsnoop:CARD=Generic,DEV=3
- HD-Audio Generic, HDMI 0
- Direct sample snooping device
- ----------
- aplay -vv -D hw:CARD=Generic,DEV=3 LoopyMusic.wav
- aplay -vv -D hw:CARD=Generic,DEV=3 LoopyMusic.wav
- Playing WAVE 'LoopyMusic.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
- aplay: set_params:1087: Channels count non available
- hw:CARD=Generic,DEV=3
- HD-Audio Generic, HDMI 0
- Direct hardware device without any conversions
- ---------
- aplay -vv -D plughw:CARD=Generic,DEV=3 LoopyMusic.wav
- aplay -vv -D plughw:CARD=Generic,DEV=3 LoopyMusic.wav
- Playing WAVE 'LoopyMusic.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
- Plug PCM: Route conversion PCM (sformat=S16_LE)
- Transformation table:
- 0 <- 0
- 1 <- 0
- Its setup is:
- stream : PLAYBACK
- access : RW_INTERLEAVED
- format : S16_LE
- subformat : STD
- channels : 1
- rate : 44100
- exact rate : 44100 (44100/1)
- msbits : 16
- buffer_size : 16384
- period_size : 4096
- period_time : 92879
- tstamp_mode : NONE
- period_step : 1
- avail_min : 4096
- period_event : 0
- start_threshold : 16384
- stop_threshold : 16384
- silence_threshold: 0
- silence_size : 0
- boundary : 4611686018427387904
- Slave: Hardware PCM card 0 'HD-Audio Generic' device 3 subdevice 0
- Its setup is:
- stream : PLAYBACK
- access : MMAP_INTERLEAVED
- format : S16_LE
- subformat : STD
- channels : 2
- rate : 44100
- exact rate : 44100 (44100/1)
- msbits : 16
- buffer_size : 16384
- period_size : 4096
- period_time : 92879
- tstamp_mode : NONE
- period_step : 1
- avail_min : 4096
- period_event : 0
- start_threshold : 16384
- stop_threshold : 16384
- silence_threshold: 0
- silence_size : 0
- boundary : 4611686018427387904
- appl_ptr : 0
- hw_ptr : 0
- ###################################### +| 98%
- # This but no sound through speaker or headphone jack!
- plughw:CARD=Generic,DEV=3
- HD-Audio Generic, HDMI 0
- Hardware device with all software conversions
- ------------
- aplay -vv -D sysdefault:CARD=SB LoopyMusic.wav
- aplay -vv -D sysdefault:CARD=SB LoopyMusic.wav
- Playing WAVE 'LoopyMusic.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
- Plug PCM: Rate conversion PCM (48000, sformat=S16_LE)
- Converter: libspeex (builtin)
- Protocol version: 10002
- Its setup is:
- stream : PLAYBACK
- access : RW_INTERLEAVED
- format : S16_LE
- subformat : STD
- channels : 1
- rate : 44100
- exact rate : 44100 (44100/1)
- msbits : 16
- buffer_size : 7526
- period_size : 940
- period_time : 21333
- tstamp_mode : NONE
- period_step : 1
- avail_min : 940
- period_event : 0
- start_threshold : 7526
- stop_threshold : 7526
- silence_threshold: 0
- silence_size : 0
- boundary : 4236761349448794112
- Slave: Route conversion PCM (sformat=S32_LE)
- Transformation table:
- 0 <- 0
- 1 <- 0
- Its setup is:
- stream : PLAYBACK
- access : MMAP_INTERLEAVED
- format : S16_LE
- subformat : STD
- channels : 1
- rate : 48000
- exact rate : 48000 (48000/1)
- msbits : 16
- buffer_size : 8192
- period_size : 1024
- period_time : 21333
- tstamp_mode : NONE
- period_step : 1
- avail_min : 1024
- period_event : 0
- start_threshold : 8192
- stop_threshold : 8192
- silence_threshold: 0
- silence_size : 0
- boundary : 4611686018427387904
- Slave: Soft volume PCM
- Control: PCM Playback Volume
- min_dB: -51
- max_dB: 0
- resolution: 256
- Its setup is:
- stream : PLAYBACK
- access : MMAP_INTERLEAVED
- format : S32_LE
- subformat : STD
- channels : 2
- rate : 48000
- exact rate : 48000 (48000/1)
- msbits : 32
- buffer_size : 8192
- period_size : 1024
- period_time : 21333
- tstamp_mode : NONE
- period_step : 1
- avail_min : 1024
- period_event : 0
- start_threshold : 8192
- stop_threshold : 8192
- silence_threshold: 0
- silence_size : 0
- boundary : 4611686018427387904
- Slave: Direct Stream Mixing PCM
- Its setup is:
- stream : PLAYBACK
- access : MMAP_INTERLEAVED
- format : S32_LE
- subformat : STD
- channels : 2
- rate : 48000
- exact rate : 48000 (48000/1)
- msbits : 32
- buffer_size : 8192
- period_size : 1024
- period_time : 21333
- tstamp_mode : NONE
- period_step : 1
- avail_min : 1024
- period_event : 0
- start_threshold : 8192
- stop_threshold : 8192
- silence_threshold: 0
- silence_size : 0
- boundary : 4611686018427387904
- Hardware PCM card 1 'HDA ATI SB' device 0 subdevice 0
- Its setup is:
- stream : PLAYBACK
- access : MMAP_INTERLEAVED
- format : S32_LE
- subformat : STD
- channels : 2
- rate : 48000
- exact rate : 48000 (48000/1)
- msbits : 32
- buffer_size : 8192
- period_size : 1024
- period_time : 21333
- tstamp_mode : ENABLE
- period_step : 1
- avail_min : 1024
- period_event : 0
- start_threshold : 1
- stop_threshold : 4611686018427387904
- silence_threshold: 0
- silence_size : 4611686018427387904
- boundary : 4611686018427387904
- appl_ptr : 0
- hw_ptr : 0
- ####################################### + | 89%
- # Sound through headphone jack only!
- sysdefault:CARD=SB
- HDA ATI SB, CONEXANT Analog
- Default Audio Device
- -----------
- aplay -vv -D front:CARD=SB,DEV=0 LoopyMusic.wav
- aplay -vv -D front:CARD=SB,DEV=0 LoopyMusic.wav
- Playing WAVE 'LoopyMusic.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
- aplay: set_params:1087: Channels count non available
- front:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- Front speakers
- ----------
- aplay -vv -D surround40:CARD=SB,DEV=0 LoopyMusic.wav
- aplay -vv -D surround40:CARD=SB,DEV=0 LoopyMusic.wav
- Playing WAVE 'LoopyMusic.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
- aplay: set_params:1087: Channels count non available
- surround40:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- 4.0 Surround output to Front and Rear speakers
- ---------
- aplay -vv -D surround41:CARD=SB,DEV=0 LoopyMusic.wav
- aplay -vv -D surround41:CARD=SB,DEV=0 LoopyMusic.wav
- Playing WAVE 'LoopyMusic.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
- aplay: set_params:1059: Broken configuration for this PCM: no configurations available
- surround41:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- 4.1 Surround output to Front, Rear and Subwoofer speakers
- ---------
- aplay -vv -D surround50:CARD=SB,DEV=0 LoopyMusic.wav
- aplay -vv -D surround50:CARD=SB,DEV=0 LoopyMusic.wav
- Playing WAVE 'LoopyMusic.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
- aplay: set_params:1059: Broken configuration for this PCM: no configurations available
- surround50:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- 5.0 Surround output to Front, Center and Rear speakers
- ----------
- aplay -vv -D surround51:CARD=SB,DEV=0 LoopyMusic.wav
- aplay -vv -D surround51:CARD=SB,DEV=0 LoopyMusic.wav
- Playing WAVE 'LoopyMusic.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
- aplay: set_params:1087: Channels count non available
- surround51:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
- ---------
- aplay -vv -D surround71:CARD=SB,DEV=0 LoopyMusic.wav
- aplay -vv -D surround71:CARD=SB,DEV=0 LoopyMusic.wav
- Playing WAVE 'LoopyMusic.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
- aplay: set_params:1087: Channels count non available
- surround71:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
- --------
- aplay -vv -D dmix:CARD=SB,DEV=0 LoopyMusic.wav
- aplay -vv -D dmix:CARD=SB,DEV=0 LoopyMusic.wav
- Playing WAVE 'LoopyMusic.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
- aplay: set_params:1081: Sample format non available
- Available formats:
- - S32_LE
- dmix:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- Direct sample mixing device
- --------
- aplay -vv -D dsnoop:CARD=SB,DEV=0 LoopyMusic.wav
- aplay -vv -D dsnoop:CARD=SB,DEV=0 LoopyMusic.wav
- ALSA lib pcm_dsnoop.c:551:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
- aplay: main:682: audio open error: Invalid argument
- dsnoop:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- Direct sample snooping device
- ---------
- aplay -vv -D hw:CARD=SB,DEV=0 LoopyMusic.wav
- aplay -vv -D hw:CARD=SB,DEV=0 LoopyMusic.wav
- Playing WAVE 'LoopyMusic.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
- aplay: set_params:1087: Channels count non available
- hw:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- Direct hardware device without any conversions
- --------
- aplay -vv -D plughw:CARD=SB,DEV=0 LoopyMusic.wav
- aplay -vv -D plughw:CARD=SB,DEV=0 LoopyMusic.wav
- Playing WAVE 'LoopyMusic.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
- Plug PCM: Route conversion PCM (sformat=S16_LE)
- Transformation table:
- 0 <- 0
- 1 <- 0
- Its setup is:
- stream : PLAYBACK
- access : RW_INTERLEAVED
- format : S16_LE
- subformat : STD
- channels : 1
- rate : 44100
- exact rate : 44100 (44100/1)
- msbits : 16
- buffer_size : 16384
- period_size : 4096
- period_time : 92879
- tstamp_mode : NONE
- period_step : 1
- avail_min : 4096
- period_event : 0
- start_threshold : 16384
- stop_threshold : 16384
- silence_threshold: 0
- silence_size : 0
- boundary : 4611686018427387904
- Slave: Hardware PCM card 1 'HDA ATI SB' device 0 subdevice 0
- Its setup is:
- stream : PLAYBACK
- access : MMAP_INTERLEAVED
- format : S16_LE
- subformat : STD
- channels : 2
- rate : 44100
- exact rate : 44100 (44100/1)
- msbits : 16
- buffer_size : 16384
- period_size : 4096
- period_time : 92879
- tstamp_mode : NONE
- period_step : 1
- avail_min : 4096
- period_event : 0
- start_threshold : 16384
- stop_threshold : 16384
- silence_threshold: 0
- silence_size : 0
- boundary : 4611686018427387904
- appl_ptr : 0
- hw_ptr : 0
- ###################################### + | 78%
- # Sound through headphone jack only
- plughw:CARD=SB,DEV=0
- HDA ATI SB, CONEXANT Analog
- Hardware device with all software conversions
- -----------
- aplay -vv -D hw:CARD=HDMI,DEV=3 LoopyMusic.wav
- ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
- aplay: main:682: audio open error: No such device
- # vs.
- aplay -vv -D hw:CARD=PCH,DEV=0 LoopyMusic.wav
- aplay -vv -D hw:CARD=PCH,DEV=0 LoopyMusic.wav
- ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
- aplay: main:682: audio open error: No such device
- -----------
- Device sub-numbers may be different on your system.
- These direct hw: devices are what pulseaudio uses as a backend. If pulseaudio has the alsa hw device open, aplay won't be able to use it directly, only through dmix:CARD=PCH,DEV=0 or similar (dmix: devices actually send data to pulseaudio to allow sharing, not directly to the device.)
- -D default is alsa default that presumably your pulseaudio is set up to use. PA is configurable, though. If you need to, you can change its default output to the one that actually makes noise with aplay.
- Sorry I didn't dig through all the stuff you said you tried, so some of this may be redundant.
- One great thing about Linux is that when the high-level frontend stuff gets more confusing rather than less, or seems over-complicated, it's usually easy to poke around under the hood. :) (dbus / systemd are exceptions to this, though.)
Advertisement
Add Comment
Please, Sign In to add comment