Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

No sound from speakers.

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
absconditus
Posts: 4
Joined: 2018-08-26 14:37

No sound from speakers.

#1 Post by absconditus »

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.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: No sound from speakers.

#2 Post by Head_on_a_Stick »

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
deadbang

absconditus
Posts: 4
Joined: 2018-08-26 14:37

Re: No sound from speakers.

#3 Post by absconditus »

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

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: No sound from speakers.

#4 Post by Head_on_a_Stick »

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
deadbang

kevinthefixer
Posts: 190
Joined: 2018-05-05 22:30

Re: No sound from speakers.

#5 Post by kevinthefixer »

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.

absconditus
Posts: 4
Joined: 2018-08-26 14:37

Re: No sound from speakers.

#6 Post by absconditus »

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>

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: No sound from speakers.

#7 Post by Head_on_a_Stick »

^ 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.
deadbang

absconditus
Posts: 4
Joined: 2018-08-26 14:37

Re: No sound from speakers.

#8 Post by absconditus »

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"

Post Reply