You are not logged in.

#1 2015-01-17 20:07:15

Feynman
Member
From: Atlanta, GA, USA
Registered: 2008-05-06
Posts: 24

[SOLVED] Laptop Sound: Headphones fine, speakers not

Edit: This problem seems to be solved for me by editing the model settings.  I didn't see alc282 listed in the docs at first because it was listed as alc28x.  Mea culpa.  Here was the fix for me:

$ cat /etc/modprobe.d/modprobe.conf
options snd-hda-intel model=laptop-amic

I haven't tested my mic and such yet, but that's not as important to me.
/Edit

I'm having an issue where I have sound through headphones, but no sound through my laptop speakers. 

aplay -l:

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

At first, the HDMI card was the default, so after some googling I added this file to /etc/modprobe.d:

$ cat /etc/modprobe.d/50-alsa.conf 
options snd-hda-intel index=1,0

Sound seemed to work perfectly for a few days after that, both through headphones and speakers.  I made no further changes to my sound config.  I can't exactly point out what changed because I use headphones most of the time, but today I tried to get audio from speakers and got nothing.

Here's the output of amixer (note that I've tested all 4 combinations of muting/unmuting S/PDIF and S/PDIF D on the PCH card, with the same results):

$ amixer 
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 72 [83%] [-11.25dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'Speaker',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'Bass Speaker',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 82 [94%] [-3.75dB] [on]
  Front Right: Playback 82 [94%] [-3.75dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 245 [96%] [-2.00dB]
  Front Right: Playback 245 [96%] [-2.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 84 [97%] [-2.25dB]
  Front Right: Playback 84 [97%] [-2.25dB]
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 22 [71%] [-1.50dB] [off]
  Front Right: Playback 22 [71%] [-1.50dB] [off]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 2 [67%] [24.00dB]
  Front Right: 2 [67%] [24.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 39 [62%] [12.00dB] [on]
  Front Right: Capture 39 [62%] [12.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Digital',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 60 [50%] [0.00dB]
  Front Right: Capture 60 [50%] [0.00dB]
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%] [36.00dB]
  Front Right: 3 [100%] [36.00dB]

speaker-test seems to indicate my devices are being seen just fine, but there's no sound through speakers, and it works flawlessly with headphones.

$ speaker-test -c 2

speaker-test 1.0.28

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 2048 to 16384
Period size range from 1024 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
 0 - Front Left
 1 - Front Right
Time per period = 5.651780
$ cat /proc/asound/card0/codec#0 | grep Codec
Codec: Realtek ALC282
$ cat /proc/asound/modules 
 0 snd_hda_intel
 1 snd_hda_intel

I wanted to set the model settings per the alsa wiki, but there's no ALC282 listed on https://www.kernel.org/doc/Documentatio … Models.txt or any of the other kernel docs I can find.

Any suggestions?

Last edited by Feynman (2015-01-17 20:29:51)

Offline

#2 2015-01-17 20:13:20

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: [SOLVED] Laptop Sound: Headphones fine, speakers not

Open up `alsamixer` in a terminal and check that the "Auto-Mute" option is enabled and that the "Speaker" channel is un-muted.


Jin, Jîyan, Azadî

Offline

#3 2015-01-17 20:16:30

Feynman
Member
From: Atlanta, GA, USA
Registered: 2008-05-06
Posts: 24

Re: [SOLVED] Laptop Sound: Headphones fine, speakers not

My alsamixer settings were fine.  After working on it for a day, I fixed my problem right after I posted (isn't that how it always goes)?  I'm marking it as [solved?] until I confirm my mic is working, but my speakers are good now.  Thanks though!

Offline

Board footer

Powered by FluxBB