Linux Mint 20 and Realtek 295 headphone pin problem

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
dimitriyk
Level 1
Level 1
Posts: 38
Joined: Sat Nov 30, 2019 9:06 pm

Re: Linux Mint 20 and Realtek 295 headphone pin problem

Post by dimitriyk »

Hello

Still not working. Sent to PM.

Thanks
User avatar
MrEen
Level 21
Level 21
Posts: 13057
Joined: Mon Jun 12, 2017 8:39 pm

Re: Linux Mint 20 and Realtek 295 headphone pin problem

Post by MrEen »

This is most likely the cause:
Node 0x21 [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
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 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0xc0: OUT HP
Unsolicited: tag=01, enabled=1
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 2
0x02 0x03*
The pin default didn't change to 0x022110f0 as should have been set by HDAJackRetask's boot override:
/sys/class/sound/hwC0D0/user_pin_configs:
0x12 0x90a60130
0x13 0x40000000
0x14 0x90170110
0x16 0x411111f0
0x17 0x90170120
0x18 0x411111f0
0x19 0x411111f0
0x1a 0x411111f0
0x1b 0x411111f0
0x1d 0x40610005
0x1e 0x411111f0
0x21 0x022110f0
Let me see if we can try to force that another way.
User avatar
MrEen
Level 21
Level 21
Posts: 13057
Joined: Mon Jun 12, 2017 8:39 pm

Re: Linux Mint 20 and Realtek 295 headphone pin problem

Post by MrEen »

Let's see if this forces it. Do these one line at a time:

Code: Select all

sudo su
echo 0x21 0x022110f0 > /sys/class/sound/hwC0D0/user_pin_configs
echo 1 > /sys/class/sound/hwC0D0/reconfig
exit
Then test the headphones. If still not working, let see this to see if the Pin Default did change:

Code: Select all

cat /proc/asound/card0/codec#0
dimitriyk
Level 1
Level 1
Posts: 38
Joined: Sat Nov 30, 2019 9:06 pm

Re: Linux Mint 20 and Realtek 295 headphone pin problem

Post by dimitriyk »

Hello

I can see error - devise or resource is busy.

Sent output to PM.
Thanks
User avatar
MrEen
Level 21
Level 21
Posts: 13057
Joined: Mon Jun 12, 2017 8:39 pm

Re: Linux Mint 20 and Realtek 295 headphone pin problem

Post by MrEen »

Dammit, that error gets in the way far too often!!!

Try it this way (this is a stab in the dark, I don't know that it'll help):

Code: Select all

pasuspender -- sudo su
echo 0x21 0x022110f0 > /sys/class/sound/hwC0D0/user_pin_configs
echo 1 > /sys/class/sound/hwC0D0/reconfig
exit
EDIT: I just noticed that 0x21 wasn't set to headphones anymore. Did you do that intentionally, or did running the previous command possibly cause that?
dimitriyk
Level 1
Level 1
Posts: 38
Joined: Sat Nov 30, 2019 9:06 pm

Re: Linux Mint 20 and Realtek 295 headphone pin problem

Post by dimitriyk »

Hello
In case advice is not working I'm reverting it back every time. Unfortunately I haven't time to test 100 advices and just want to know if this issue will be assigned to core team in order to fix it. Currently as I can see ALC295 is not supporting by Mint/Ubuntu and do we have any news when it will be fixed?

With hope
Thanks in Advance
User avatar
MrEen
Level 21
Level 21
Posts: 13057
Joined: Mon Jun 12, 2017 8:39 pm

Re: Linux Mint 20 and Realtek 295 headphone pin problem

Post by MrEen »

I have no idea if anyone is working on this. I'm not even sure where the problem lies with PulseAudio, ALSA, the linux kernel or libraries being the culprit. We're just users helping users here.

There has been a slew of users with ALC295 recently with issues, almost all of whom have been fixed with the realtek blacklist. I did just discover yesterday that at least one, and probably more need to shutdown instead of rebooting for the fix to work.

I'd suggest giving that a try:

Code: Select all

sudo tee /etc/modprobe.d/295-fix.conf <<<'blacklist snd_hda_codec_realtek'
Post Reply

Return to “Hardware Support”