[Alienware 18, Realtek ALC3661] Sound only comes out of subwoofer, and requires lid to be closed then opened to come out of speakers at all

Bug #1299322 reported by blitzd
16
This bug affects 4 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

To get any sound out of the speakers I need to close the lid of the laptop, let it go to sleep, then re-open it. When I unlock the computer the sound will then work from the speakers.

Sound from the speakers is not using all of the speakers, and appears to only come out the subwoofer channel or center channel on the bottom of the laptop. There's no sound from the 'speakers' on the front.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.11.0-18.32-generic 3.11.10.4
Uname: Linux 3.11.0-18-generic x86_64
NonfreeKernelModules: nvidia wl
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: kevin 2265 F.... pulseaudio
 /dev/snd/controlC0: kevin 2265 F.... pulseaudio
Date: Fri Mar 28 23:16:26 2014
InstallationDate: Installed on 2014-03-28 (0 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_CA:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaPlaybackTest: ALSA playback test through plughw:PCH failed
Symptom_Card: Built-in Audio - HDA Intel PCH
Symptom_Jack: Speaker, Internal
Symptom_Type: Only some of outputs are working
Title: [Alienware 18, Realtek ALC3661, Speaker, Internal] Playback problem
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/15/2013
dmi.bios.vendor: Alienware
dmi.bios.version: A02
dmi.board.name: 01W2J2
dmi.board.vendor: Alienware
dmi.board.version: A00
dmi.chassis.type: 8
dmi.chassis.vendor: Alienware
dmi.chassis.version: A02
dmi.modalias: dmi:bvnAlienware:bvrA02:bd07/15/2013:svnAlienware:pnAlienware18:pvr1747:rvnAlienware:rn01W2J2:rvrA00:cvnAlienware:ct8:cvrA02:
dmi.product.name: Alienware 18
dmi.product.version: 1747
dmi.sys.vendor: Alienware

Revision history for this message
blitzd (blitzd) wrote :
summary: - Sound only comes out of subwoofer, and requires lid to be closed then
- opened to come out of speakers at all
+ [Alienware 18, Realtek ALC3661] Sound only comes out of subwoofer, and
+ requires lid to be closed then opened to come out of speakers at all
Revision history for this message
Raymond (superquad-vortex2) wrote :

your alsa-info are incomplete , missing the most important info of init_pin_configs and driver_pin_configs in sysfs

https://wiki.ubuntu.com/Audio/AlsaInfo

Revision history for this message
Raymond (superquad-vortex2) wrote :

(2x) Audio Out 1/8" Ports (One compatible with inline mic headset)
(1x) Line In Microphone 1/8" Port (retaskable for 5.1 analog audio output)

how many internal speakers ?

for a 6 channels codec, you will lost the headphone volume control if you want to support 5.1 (Front , rear , center/lfe )

Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Revision history for this message
Raymond (superquad-vortex2) wrote :

Node 0x02 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="ALC3661 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals: [0x48 0x48]
  Converter: stream=8, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=1, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals: [0x48 0x48]
  Converter: stream=8, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x04 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Speaker Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals: [0x48 0x48]
  Converter: stream=8, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0

Revision history for this message
Daniel Letzeisen (dtl131) wrote :

This was the info before user tried ALSA dkms. I'm not sure why apport failed to capture this info...

!!Sysfs Files
!!-----------

/sys/class/sound/hwC0D0/init_pin_configs:
0x12 0x99a30140
0x14 0x90170110
0x15 0x0321101f
0x16 0x03211020
0x18 0x40030008
0x19 0x03a11030
0x1a 0x411111f0
0x1b 0x411111f0
0x1d 0x41000001
0x1e 0x411111f0
0x1f 0x411111f0

/sys/class/sound/hwC0D0/driver_pin_configs:

/sys/class/sound/hwC0D0/user_pin_configs:

/sys/class/sound/hwC0D0/init_verbs:

/sys/class/sound/hwC0D0/hints:

/sys/class/sound/hwC1D0/init_pin_configs:
0x04 0x585600f0
0x05 0x185600f0
0x06 0x585600f0
0x07 0x185600f0

/sys/class/sound/hwC1D0/driver_pin_configs:

/sys/class/sound/hwC1D0/user_pin_configs:

/sys/class/sound/hwC1D0/init_verbs:

/sys/class/sound/hwC1D0/hints:

Revision history for this message
blitzd (blitzd) wrote :

It's apparently three speakers, but only two channels. The sub outputs the merged left and right channels. When I ran the 'ubuntu-bug audio' command the tone test it did wasn't alternating channels in any way.

The !!Sysfs Files section of the script doesn't appear to output anything since the switch to ALSA DKMS. Is there some other way I can provide that information, or is the above from Daniel enough?

Revision history for this message
Raymond (superquad-vortex2) wrote :

try hda-jack-sense-test to find out which node is used for headset Jack icon

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/?id=73bdd597823e2231dc882577dbbaf8df92fe1775

the headset Mic may use node 0x1a similar to other dell notebook

the missing internal speakers are connected to the two remaining nodes 0x18 and 0x1b which pincap support OUT and widcap support stereo

try hdajackretask to change them to speaker

Node 0x15 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Front Jack", index=0, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x00 0x00]
  Pincap 0x0001001c: OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x0321101f: [Jack] HP Out at Ext Left
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x0c* 0x0d 0x0e
Node 0x16 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Switch", index=1, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Headphone Surround Jack", index=0, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x00 0x00]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x03211020: [Jack] HP Out at Ext Left
    Conn = 1/8, Color = Black
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=02, enabled=1
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x0c 0x0d* 0x0e

Revision history for this message
Raymond (superquad-vortex2) wrote :

you should verify the two headphone jacks and Mic jacks are node 0x15, 0x16 and 0x19 by using hda jack sense test and plug and unplug

you have to use advanced override option and make sure the two new speaker pins use same Def association 1, the sequence number determine the speaker is used for front, rear, center/lfe

Revision history for this message
Raymond (superquad-vortex2) wrote :

seem dell use 0x1b as headset mic for codec alc668 , you have to try assign speaker to the remaining unconnected pin complexes which support OUT and widcap support stereo

+ [ALC668_FIXUP_DELL_MIC_NO_PRESENCE] = {
+ .type = HDA_FIXUP_PINS,
+ .v.pins = (const struct hda_pintbl[]) {
+ { 0x19, 0x03a1913d }, /* use as headphone mic, without its own jack detect */
+ { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack detect */
+ { }

Revision history for this message
Raymond (superquad-vortex2) wrote :

https://bugzilla.kernel.org/enter_bug.cgi?product=Drivers

you have to to file bug since the driver alway create headset mic and headphone mic when there are two headphone jacks

Revision history for this message
Raymond (superquad-vortex2) wrote :

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/?id=cb420b1186e0090f24137855e14e6f3bf7cb769d

+
+ /* If we didn't find our sequence number mark, fall back to any sequence number */
+ for (i = 0; (hsmic || hpmic) && (i < cfg->num_inputs); i++) {
+ if (!can_be_headset_mic(codec, &cfg->inputs[i], -1))
continue;
- cfg->inputs[i].is_headset_mic = 1;
- break;
+ if (hsmic) {
+ cfg->inputs[i].is_headset_mic = 1;
+ hsmic = false;
+ } else if (hpmic) {
+ cfg->inputs[i].is_headphone_mic = 1;
+ hpmic = false;
+ }

the above code add headphome mic even sequence number is not 0x0d

Revision history for this message
Raymond (superquad-vortex2) wrote :

do you mean node 0x14 is the subwoofer ?

you have to find the other two node if the notebook have 5.1 internal speakers

assign Def association 1 and sequence to indicate the channel

Node 0x14 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Control: name="Speaker Phantom Jack", index=0, device=0
  Amp-In caps: N/A
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x00 0x00]
  Pincap 0x0001003c: IN OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x90170110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x0c 0x0d 0x0e*

Revision history for this message
blitzd (blitzd) wrote :

Hey Raymond, thanks for your help - I haven't been able to get the hda jack retask to work, it doesn't show any pin configurations. It sounds like a lot of people have had success with that for different speaker configurations, so hopefully if I can get it working I can get some sound. As for filing the kernel bug - I wouldn't know what I was talking about, sorry :)

Revision history for this message
Raymond (superquad-vortex2) wrote :

use hda-jack-sense-test to verify the existing two headphone jacks and Mic jacks are correct

the remaining unconnected nodes are the two speakers and headset mic

http://voices.canonical.com/david.henningsson/2011/11/29/turn-your-mic-jack-into-a-headphone-jack/

you need to have root priviliege to run the program

show un connected pins and advanced override

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for alsa-driver (Ubuntu) because there has been no activity for 60 days.]

Changed in alsa-driver (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Gaz (gaznims) wrote :

Hi All was this problem solved or Not
I also have Alienware 18

I have tried to configure it as above

Same deal I think the sound is only coming out from the Sub

I have spent a week trying to sort it and have done many re-installs

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.