No sound from speakers.

New to Debian (Or Linux in general)? Ask your questions here!

No sound from speakers.

Postby absconditus » 2018-08-26 14:46

Hi,
I have no sound from my speakers after installing debian 9 on a lenovo x220. I can only get sound through my headphones.

I have read a lot of similar problems with advice to editing the /etc/modprobe.d/alsabase.conf file, but I dont have one.
Im not even sure if alsa is controlling sound or its pulseaudio, very confused.

It seems that the soundcard is detected and the correct module loaded but i'm not sure.

The output of aplay -l is :

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX20590 Analog [CX20590 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0

card 0 is the correct device but I just have no idea how to solve this.
absconditus
 
Posts: 4
Joined: 2018-08-26 14:37

Re: No sound from speakers.

Postby Head_on_a_Stick » 2018-08-26 17:04

absconditus wrote:Im not even sure if alsa is controlling sound or its pulseaudio, very confused.

Is PusleAudio installed?
Code: Select all
apt policy pulseaudio

Is it running?
Code: Select all
pgrep -a pulseaudio

Installing PA along with a mixer control such as pavucontrol should allow you to set the default output device but it can be done without the overhead of PA:

https://wiki.archlinux.org/index.php/Ad ... sound_card

But it sounds like you already have an analogue output (via the headphones) so can we please see the output of
Code: Select all
amixer
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8180
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: No sound from speakers.

Postby absconditus » 2018-08-26 20:02

pgrep -a pulseaudio

909 /usr/bin/pulseaudio --daemonize=no



amixer

ALSA lib control.c:1269:(snd_ctl_open_conf) type is not defined
amixer: Mixer attach default error: No such file or directory
absconditus
 
Posts: 4
Joined: 2018-08-26 14:37

Re: No sound from speakers.

Postby Head_on_a_Stick » 2018-08-26 20:39

Possible solution from the error message:

https://bbs.archlinux.org/viewtopic.php ... 2#p1392712

Have you tried
Code: Select all
# alsactl init

What does this say:
Code: Select all
pacmd list-sinks
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8180
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: No sound from speakers.

Postby kevinthefixer » 2018-08-26 23:36

Simplest possible approach, open alsamixer in a terminal. You will probably see only one control, master volume for PulseAudio, so hit (IIRC) F6 to select sound card and select HDA Intel. I suspect you'll find the speaker output muted or set to zero (if you see "MM" at the base of the slider it's muted. <M> key enables it). PA is much more sophisticated than straight ALSA but it can be a pain to get configured just right.
kevinthefixer
 
Posts: 87
Joined: 2018-05-05 22:30

Re: No sound from speakers.

Postby absconditus » 2018-08-27 08:27

Head_on_a_Stick wrote:Possible solution from the error message:

https://bbs.archlinux.org/viewtopic.php ... 2#p1392712

Have you tried
Code: Select all
# alsactl init

What does this say:
Code: Select all
pacmd list-sinks


Thanks for the link but it appears my sound is being detected, and I do have sound through the headphones only.

alsactl init reports:

alsactl: sysfs_init:48: sysfs path '/sys' is invalid

Found hardware: "HDA-Intel" "Conexant CX20590" "HDA:14f1506e,17aa21da,00100002 HDA:80862805,80860101,00100000" "0x17aa" "0x21da"
Hardware is initialized using a generic method

pacmd list-sinks reports:

1 sink(s) available.
* index: 0
name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9039
volume: front-left: 30419 / 46% / -20.00 dB, front-right: 30419 / 46% / -20.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 0
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
card: 0 <alsa_card.pci-0000_00_1b.0>
module: 6
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "CX20590 Analog"
alsa.id = "CX20590 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xf2520000 irq 31"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1b.0"
sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "1c20"
device.product.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
alsa.mixer_name = "Conexant CX20590"
alsa.components = "HDA:14f1506e,17aa21da,00100002 HDA:80862805,80860101,00100000"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
properties:
device.icon_name = "audio-speakers"
analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
active port: <analog-output-speaker>
absconditus
 
Posts: 4
Joined: 2018-08-26 14:37

Re: No sound from speakers.

Postby Head_on_a_Stick » 2018-08-27 08:30

^ That looks fine (although it would be easier to read had you used code tags), install and run pavucontrol and see if you can make things work from the GUI.
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8180
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: No sound from speakers.

Postby absconditus » 2018-08-27 08:47

Apologies, Ill have to have a read on code tags.

pavucontrol all looks fine, speakers 100%, config tab "built in audio" and profile "analogue stero output"
absconditus
 
Posts: 4
Joined: 2018-08-26 14:37


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable