Skip to contentSkip to conversation

Realtek ALC286 SONY Vaio Pro 13 Ubuntu 13.10

DISCUSSION David Henningsson 2 participants 5 messages Sep 30, 2013 – Oct 2, 2013 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

(Adding alsa-devel to CC)

Quoted 5 lines · Yuval Levy

Sirs:

I have been pointed to your patch to implement headset jack functionality for some Dell hw [1] after reporting and investigating soud support issues [2] with a SONY Vaio Pro 13 (Realtek ALC286).

This different headset mode support is likely unrelated to your problem. And they don't cover your codec (ALC286), so you would need another set of verbs too, things that only Realtek knows.

Quoted 3 lines

Output to internal loudspeakers and HDMI works as expected, but neither internal microphone nor the headset work (and they do work in Windows, so it is not a hardware issue).

An important distinction is here: to they work in Windows without specific Realtek drivers installed, or do you require Realtek's Windows drivers for this support?

Second, to do some actual triaging. I see you have been running hda-jack-sense-test. Could you run it all three scenarios:
1) nothing connected
2) headphone (without mic) connected
3) headset (heaphone + mic combo) connected

...and submit the result? In ideal circumstances, 0x21 should report "Yes" in scenario 2 and 3, and 0x18 should only report yes in scenario
3. If this is not the result you get, try using hda-jack-retask to turn off the jack detection: in Ubuntu 13.10 just install the alsa-tools-gui package (no need to use my ppa). Click "advanced override", find pins 0x18 or 0x21, change "jack detection" from "yes" to "no" and click apply. Now you should be able to manually choose between internal and external microphone, as well as between headphones as speakers. See if this helps.

Quoted 3 lines

As you can see in the bug thread, I have been helped in the diagnosis by a very friendly expert, but it seems that we have reached the limit and without support from Realtek or Sony the issue will go unresolved.

I'm afraid Sony is not a company that actively supports Linux for the desktop machines, sorry. Canonical, which seems to have the most contracts for preloading Linux these days, has a list of certified hardware here: http://www.ubuntu.com/certification/

Quoted 10 lines

Would you kindly help me find out what need to be done for the Realtek ALC286 in the SONY Vaio Pro 13 to be supported in Ubuntu Linux?

Many thanks,
Yuv

[1]
<https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/patch_realtek.c?id=73bdd597823e2231dc882577dbbaf8df92fe1775>
[2] <https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1228689>

Signature · 2 lines
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 7 lines · Yuval Levy

Thank you for the quick reply.

Quoted 3 lines · David Henningsson

An important distinction is here: to they work in Windows without specific Realtek drivers installed, or do you require Realtek's Windows drivers for this support?

Quoted 12 lines

I am 99% certain that yes. I am no Windows expert. After taking delivery of the laptop and ascertaining that the functionality that I need works, I have backed up SONY's original stuff and stored it away. Far away. I have reformatted the SDD, leaving 30 GB for a Windows install (because unfortunately, the law school's exam system requires either Windows or Mac). I reinstalled Windows from Microsoft's media. I have not installed any other driver myself, but I am not sure if Windows downloads drivers from the internet. It definitely did download drivers for my Brother printer, automatically and without asking for permission, after it discovered it on the network. I booted into Windows before writing this email and looked in the Control Panel. It says the driver for the two microsoft and for the loudspeakers is Microsoft.

Ok. If things work without extra drivers from Sony or Realtek, then it should be possible to get things working in Linux too without extra information from these parties...

Quoted 6 lines
Quoted 5 lines

Second, to do some actual triaging. I see you have been running hda-jack-sense-test. Could you run it all three scenarios:
1) nothing connected
2) headphone (without mic) connected
3) headset (heaphone + mic combo) connected

Quoted 8 lines

Done and added to the bug report. 0x21 works as you expected. 0x18 not.

As you suggested I installed alsa-tools-gui and did the advance override with hdajackretask:
* selected codec Realtek ALC286
* clicked Advance override in the Options on the right hand side
* clicked Override under pins 0x18 and 0x21
* changed Jack detection from Present to Not present for both pins

Ok - given that 0x21 works as expected you should only need to do this for pin 0x18.

Quoted 8 lines

* clicked Apply now

An error message appeared: Failed to create file '/home/yuv/.pulse/client.conf.3K083W': No such file or directory

maybe it should save to /home/yuv/.config/pulse/client.conf.3K083W?

                                   ^^^^^^^

I am sorry I do not know how to fix this, can you help?

Oh. That's fixed upstream [1], but apparently not in Ubuntu yet.

Any of these workarounds should do it:

1) use the "boot override" instead (and reboot your computer to test)
2) create a symlink from .pulse to .config/pulse
3) or copy everything from .config/pulse to .pulse (but then you have
to restart your computer afterwards, so PulseAudio will look in .pulse instead).

Signature · 5 lines
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic

[1]
http://git.alsa-project.org/?p=alsa-tools.git;a=commitdiff;h=772fbde91c00c8f9517e67e2f5401d28e9aa88d4

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 11 lines · Yuval Levy
Quoted 3 lines · David Henningsson

Ok. If things work without extra drivers from Sony or Realtek, then it should be possible to get things working in Linux too without extra information from these parties...

I have added this information to the bug report
<https://bugs.launchpad.net/bugs/1228689>
where I also post my comments so that they are more persistent and available to other users with similar issues.

Quoted 6 lines
Quoted 2 lines

Ok - given that 0x21 works as expected you should only need to do this for pin 0x18.

All my testing was with doing this for both pins. I only noticed now that I do not need to do this for pin 0x18. I will try to o this only for pin 0x21 and reboot tomorrow.

Ok, cool. Notice that I wrote "do this for pin 0x18 only, not for pin 0x21", where as you replied "I'll do this for pin 0x21 only, not for pin 0x18".

0x18 is for input switching, 0x21 is for output switching. If you remove jack detection, like you did, you will need to do this switching manually, e g in pavucontrol or gnome sound settings. That is, when you plug your headphone in, you need to manually select "Headphone" too, if you don't, the result will probably be that you hear sound in both headphones and speakers.

Anyway, let's guess that the high pitched sound, as well as the lack of headset microphone input, is because your headset is OMTP and that the Vaio only supports CTIA. That's my *guess*, but it could be wrong, and it would be good to have this confirmed with a CTIA headset.

Signature · 2 lines
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
#6 lore raw
Quoted 6 lines
Quoted 6 lines

I have added this information to the bug report
<https://bugs.launchpad.net/bugs/1228689>
where I also post my comments so that they are more persistent and available to other users with similar issues.

http://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/?id=abdd8f510686da0a58e475bc0143d1069e5f53da

ALSA: hda - Apply ALC269 VAIO fix-up to all Sony laptops with ALC269 We've applied a fix-up for ALC269 VAIO only for two models. But all Sony VAIO models with ALC269 codec seem to require the similar fix. Let's apply it with vendor-id mask.

Does it mean that the Fixup need to check whether node 0x19 must be valid Mic pin if Sony Vaio pro 13 alc286 does not use node 0x19?

#7 lore raw
Quoted 9 lines · Raymond Yau
Quoted 6 lines
Quoted 6 lines

I have added this information to the bug report
<https://bugs.launchpad.net/bugs/1228689>
where I also post my comments so that they are more persistent and available to other users with similar issues.

http://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/?id=abdd8f510686da0a58e475bc0143d1069e5f53da

Quoted 7 lines

ALSA: hda - Apply ALC269 VAIO fix-up to all Sony laptops with ALC269 We've applied a fix-up for ALC269 VAIO only for two models. But all Sony VAIO models with ALC269 codec seem to require the similar fix. Let's apply it with vendor-id mask.

Does it mean that the Fixup need to check whether node 0x19 must be valid Mic pin if Sony Vaio pro 13 alc286 does not use node 0x19?

Yeah, that's a valid point - we should try different vref values for pin 0x18 to see if any of them works to enable headset mic (and possibly also get rid of the noise in headphones).

Signature · 2 lines
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic