No headphone jack detection (ASUS Zephyrus)

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No headphone jack detection (ASUS Zephyrus)

Post by MrEen »

For anyone wanting to try without having to recompile the kernel, I have some idea of what to do. I'll need to see the output of dmesg | grep snd to make sure we apply the fix to the proper sound card/device.

To prevent my forgetting what this fix is, and in case the patch gets removed, it should be similar to this:

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x0f
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x7774
Now that I've typed this, I recognize those numbers from helping a zenbook user with no audio output in this post. Looks like a consistent issue with newer ASUS machines with the ALC294 codec.

The following is just a reminder to myself in case more is needed:

Code: Select all

[ALC294_FIXUP_ASUS_HEADSET_MIC] = {
		.type = HDA_FIXUP_PINS,
		.v.pins = (const struct hda_pintbl[]) {
			{ 0x19, 0x01a1103c }, /* use as headset mic */
			{ }
		},
		.chained = true,
		.chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC
iancmx

Re: No headphone jack detection (ASUS Zephyrus)

Post by iancmx »

So I am the guy who posted that bug report. I've just installed the kernel with the patch Takashi Iwai suggested. After using the new patch, headphones were still unrecognized. However, headset mic is being detected, but does not work. Then using HDAjackretask, by setting 0x21 to headphones, the headset mic was working properly and headphone DETECTION (no audio) was working. It detects when I connect my headset, and pavucontrol switcches to headphones. However there is sitll no audio ccoming out from headphones.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No headphone jack detection (ASUS Zephyrus)

Post by MrEen »

Hi iancmx,

Thanks for joining in here. Can I see the output of this command please:

Code: Select all

curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
iancmx

Re: No headphone jack detection (ASUS Zephyrus)

Post by iancmx »

Heres the output:

Code: Select all

➜  Desktop curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info\?inline\=false | bash | nc termbin.com 9999

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2039  100  2039    0     0   4913      0 --:--:-- --:--:-- --:--:--  4913
dmesg: read kernel buffer failed: Operation not permitted
https://termbin.com/o1tf
Just a headsup, I have some of the pins remapped on HDAjackretask. If you would like an output with just the default settings please let me know
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No headphone jack detection (ASUS Zephyrus)

Post by MrEen »

iancmx wrote: Sun Jun 28, 2020 7:38 pm
Just a headsup, I have some of the pins remapped on HDAjackretask. If you would like an output with just the default settings please let me know
Yeah, I realized that. I'm looking through the output now just to see if I can spot anything that I think might help.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No headphone jack detection (ASUS Zephyrus)

Post by MrEen »

This is just a guess, but give it a shot. On Mint, you'll need alsa-tools installed. Might be alsa-utils on Manjaro:

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x21 SET_PIN_WIDGET_CONTROL 0x40
Assuming that doesn't work, let's see the output of this (hoping it's the same location on Manjaro):

Code: Select all

cat /lib/firmware/hda-jack-retask.fw
iancmx

Re: No headphone jack detection (ASUS Zephyrus)

Post by iancmx »

Unfortunately, after running that line, still no headphone audio.
Here's the output of the second line:

Code: Select all

➜  Desktop sudo hda-verb /dev/snd/hwC0D0 0x21 SET_PIN_WIDGET_CONTROL 0x40

[sudo] password for iancmx: 
nid = 0x21, verb = 0x707, param = 0x40
value = 0x0
➜  Desktop cat /lib/firmware/hda-jack-retask.fw

[codec]
0x10ec0294 0x10431881 0

[pincfg]
0x12 0x90a60120
0x13 0x40000000
0x14 0x411111f0
0x15 0x411111f0
0x16 0x411111f0
0x17 0x90170110
0x18 0x411111f0
0x19 0x01a1103c
0x1a 0x411111f0
0x1b 0x411111f0
0x1d 0x40600001
0x1e 0x411111f0
0x1f 0x411111f0
0x21 0x0321403f
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No headphone jack detection (ASUS Zephyrus)

Post by MrEen »

Okay, I wasn't sure if Takashi's patch had added anything there, and I'm pretty sure it didn't.

I'd like to see this now. These are the Mint steps that you may need to alter:

Code: Select all

sudo su
echo 1 > /sys/module/snd_hda_codec/parameters/dump_coef
exit
cat /proc/asound/card0/codec#0
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No headphone jack detection (ASUS Zephyrus)

Post by MrEen »

And I just spotted some weirdness, though we may have caused it with the hda-verb command:

Code: Select all

[codec]
0x10ec0294 0x10431881 0

[pincfg]
0x12 0x90a60120
0x13 0x40000000
0x14 0x411111f0
0x15 0x411111f0
0x16 0x411111f0
0x17 0x90170110
0x18 0x411111f0
0x19 0x01a1103c
0x1a 0x411111f0
0x1b 0x411111f0
0x1d 0x40600001
0x1e 0x411111f0
0x1f 0x411111f0
0x21 0x0321403f

Code: Select all

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:  [0x80 0x80]
  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 changed back to the default 0x411111f0, instead of the patched 0x0321403f. The user in the other thread that got fixed with a different ASUS machine had Pin Default 0x03211020: [Jack] HP Out at Ext Left, but that was when sound wasn't working, so I can't say it's still the same. It does make me wonder if the hda-patch took properly.

I'm mostly just babbling to myself here. This stuff is not easy to wrap one's head around at times.
iancmx

Re: No headphone jack detection (ASUS Zephyrus)

Post by iancmx »

Here's the output from running those lines:

Code: Select all

➜  ~ sudo su
[sudo] password for iancmx: 
[MX-LAPTOP-MANJARO iancmx]# echo 1 > /sys/module/snd_hda_codec/parameters/dump_coef
[MX-LAPTOP-MANJARO iancmx]# exit
exit
➜  ~ cat /proc/asound/card0/codec#0

Codec: Realtek ALC294
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0294
Subsystem Id: 0x10431881
Revision Id: 0x100004
No Modem Function Group found
Default PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D1 D2 D3 D3cold CLKSTOP EPSS
  Power: setting=D0, actual=D0
GPIO: io=4, o=0, i=0, unsolicited=1, wake=0
  IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
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="ALC294 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals:  [0x3b 0x3b]
  Converter: stream=1, 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="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:  [0x00 0x00]
  Converter: stream=1, channel=0
  PCM:
    rates [0x60]: 44100 48000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x06 [Audio Output] wcaps 0x411: Stereo
  Converter: stream=0, channel=0
  PCM:
    rates [0x40]: 48000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x07 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
  Amp-In vals:  [0x97 0x97]
  Converter: stream=0, channel=0
  SDI-Select: 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
  Connection: 1
     0x24
Node 0x08 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
  Amp-In vals:  [0x97 0x97]
  Converter: stream=0, channel=0
  SDI-Select: 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
  Connection: 1
     0x23
Node 0x09 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="ALC294 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
  Amp-In vals:  [0x3f 0x3f]
  Converter: stream=0, channel=0
  SDI-Select: 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
  Connection: 1
     0x22
Node 0x0a [Audio Input] wcaps 0x100711: Stereo Digital
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  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
  Connection: 1
     0x1f
Node 0x0b [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0c [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0d [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0e [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  Control: name="Internal Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x90a60120: [Fixed] Mic at Int N/A
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x13 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x40000000: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x00:
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x14 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00010010: OUT EAPD
  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: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x15 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  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: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x02* 0x03 0x06
Node 0x16 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00010014: OUT 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: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x02* 0x03
Node 0x17 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Speaker 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:  [0x80 0x80]
  Pincap 0x0001001c: 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: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x02 0x03* 0x06
Node 0x18 [Pin Complex] wcaps 0x400481: Stereo
  Pincap 0x00000024: IN Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x19 [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Control: name="Headset Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x01 0x01]
  Pincap 0x00003724: IN Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=02, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x1a [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00003724: IN Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x1b [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00013734: IN OUT EAPD Detect
    Vref caps: HIZ 50 GRD 80 100
  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: 0x20: IN VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x02* 0x03
Node 0x1c [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1d [Pin Complex] wcaps 0x400400: Mono
  Pincap 0x00000020: IN
  Pin Default 0x40600001: [N/A] Modem Line at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0x0, Sequence = 0x1
  Pin-ctls: 0x20: IN
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x1e [Pin Complex] wcaps 0x400581: Stereo
  Pincap 0x00000014: OUT Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, 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: 1
     0x06
Node 0x1f [Pin Complex] wcaps 0x400681: Stereo Digital
  Pincap 0x00000024: IN Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
  Processing caps: benign=0, ncoeff=130
    Coeff 0x00: 0x3004
    Coeff 0x01: 0xaaaa
    Coeff 0x02: 0x88aa
    Coeff 0x03: 0x0002
    Coeff 0x04: 0xaa09
    Coeff 0x05: 0x0700
    Coeff 0x06: 0x6210
    Coeff 0x07: 0x0200
    Coeff 0x08: 0xa807
    Coeff 0x09: 0x0021
    Coeff 0x0a: 0x7770
    Coeff 0x0b: 0x7778
    Coeff 0x0c: 0x802b
    Coeff 0x0d: 0xa420
    Coeff 0x0e: 0x65c0
    Coeff 0x0f: 0x7774
    Coeff 0x10: 0xc420
    Coeff 0x11: 0x7418
    Coeff 0x12: 0x6bd0
    Coeff 0x13: 0x645f
    Coeff 0x14: 0x0400
    Coeff 0x15: 0x8ccc
    Coeff 0x16: 0x4c50
    Coeff 0x17: 0xff00
    Coeff 0x18: 0x0003
    Coeff 0x19: 0x2c11
    Coeff 0x1a: 0x838b
    Coeff 0x1b: 0x4e4b
    Coeff 0x1c: 0x0000
    Coeff 0x1d: 0x0000
    Coeff 0x1e: 0x0000
    Coeff 0x1f: 0x0000
    Coeff 0x20: 0x51ff
    Coeff 0x21: 0x8000
    Coeff 0x22: 0x8f00
    Coeff 0x23: 0x88f4
    Coeff 0x24: 0x0000
    Coeff 0x25: 0x0000
    Coeff 0x26: 0x0000
    Coeff 0x27: 0x0000
    Coeff 0x28: 0x0000
    Coeff 0x29: 0x3000
    Coeff 0x2a: 0x0000
    Coeff 0x2b: 0x0000
    Coeff 0x2c: 0x0f00
    Coeff 0x2d: 0x1f4f
    Coeff 0x2e: 0x2902
    Coeff 0x2f: 0xe280
    Coeff 0x30: 0x1000
    Coeff 0x31: 0x8400
    Coeff 0x32: 0x5aaa
    Coeff 0x33: 0x8423
    Coeff 0x34: 0xa20c
    Coeff 0x35: 0x096a
    Coeff 0x36: 0x5757
    Coeff 0x37: 0xfe05
    Coeff 0x38: 0x4901
    Coeff 0x39: 0x110a
    Coeff 0x3a: 0x0010
    Coeff 0x3b: 0x60d9
    Coeff 0x3c: 0xf214
    Coeff 0x3d: 0xc2ba
    Coeff 0x3e: 0xa928
    Coeff 0x3f: 0x0000
    Coeff 0x40: 0x8800
    Coeff 0x41: 0x0000
    Coeff 0x42: 0x2000
    Coeff 0x43: 0x3d90
    Coeff 0x44: 0x4900
    Coeff 0x45: 0xd689
    Coeff 0x46: 0x0af4
    Coeff 0x47: 0xa47a
    Coeff 0x48: 0xd049
    Coeff 0x49: 0x0349
    Coeff 0x4a: 0x200b
    Coeff 0x4b: 0x0777
    Coeff 0x4c: 0x065c
    Coeff 0x4d: 0x7fff
    Coeff 0x4e: 0x7fff
    Coeff 0x4f: 0x0000
    Coeff 0x50: 0x0000
    Coeff 0x51: 0x0000
    Coeff 0x52: 0xbf5f
    Coeff 0x53: 0x3320
    Coeff 0x54: 0xcc00
    Coeff 0x55: 0x0000
    Coeff 0x56: 0x3f00
    Coeff 0x57: 0x0000
    Coeff 0x58: 0x0000
    Coeff 0x59: 0x0000
    Coeff 0x5a: 0x1300
    Coeff 0x5b: 0x005f
    Coeff 0x5c: 0x0000
    Coeff 0x5d: 0x1001
    Coeff 0x5e: 0x1000
    Coeff 0x5f: 0x0000
    Coeff 0x60: 0x5556
    Coeff 0x61: 0xffc0
    Coeff 0x62: 0xa000
    Coeff 0x63: 0xd010
    Coeff 0x64: 0x0000
    Coeff 0x65: 0x3fb1
    Coeff 0x66: 0x1881
    Coeff 0x67: 0xc810
    Coeff 0x68: 0x2000
    Coeff 0x69: 0xfff0
    Coeff 0x6a: 0x0300
    Coeff 0x6b: 0x4078
    Coeff 0x6c: 0x0000
    Coeff 0x6d: 0x0000
    Coeff 0x6e: 0x0c25
    Coeff 0x6f: 0x0c0b
    Coeff 0x70: 0x8000
    Coeff 0x71: 0x4008
    Coeff 0x72: 0x0000
    Coeff 0x73: 0x0800
    Coeff 0x74: 0xa28f
    Coeff 0x75: 0xa050
    Coeff 0x76: 0x7fe8
    Coeff 0x77: 0xdb8c
    Coeff 0x78: 0x0000
    Coeff 0x79: 0x0000
    Coeff 0x7a: 0x2a96
    Coeff 0x7b: 0x800f
    Coeff 0x7c: 0x0200
    Coeff 0x7d: 0x1600
    Coeff 0x7e: 0x0000
    Coeff 0x7f: 0x0000
    Coeff 0x80: 0x0000
    Coeff 0x81: 0x0000
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
Node 0x22 [Audio Selector] wcaps 0x300101: Stereo
  Connection: 4
     0x19* 0x1a 0x1b 0x12
Node 0x23 [Audio Selector] wcaps 0x300101: Stereo
  Connection: 4
     0x19* 0x1a 0x1b 0x13
Node 0x24 [Audio Selector] wcaps 0x300101: Stereo
  Connection: 3
     0x12* 0x13 0x18
Node 0x25 [Vendor Defined Widget] wcaps 0xf00000: Mono
➜  ~ 
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No headphone jack detection (ASUS Zephyrus)

Post by MrEen »

Okay, another shot in the dark:

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x1b
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x4a4b
And if that doesn't get it working try this one:

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x0f
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x74
It's a little different that Takashi's patch, but the other ASUS model is so extremely similar to your outputs that I'm hoping it might work.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No headphone jack detection (ASUS Zephyrus)

Post by MrEen »

Here's a comparison of just the first 10 lines or so with the other model:
Yours:

Code: Select all

    Coeff 0x00: 0x3004
    Coeff 0x01: 0xaaaa
    Coeff 0x02: 0x88aa
    Coeff 0x03: 0x0002
    Coeff 0x04: 0xaa09
    Coeff 0x05: 0x0700
    Coeff 0x06: 0x6210
    Coeff 0x07: 0x0200
    Coeff 0x08: 0xa807
    Coeff 0x09: 0x0021
    Coeff 0x0a: 0x7770
    Coeff 0x0b: 0x7778
    Coeff 0x0c: 0x802b
The other:

Code: Select all

    Coeff 0x00: 0x3004
    Coeff 0x01: 0xaaaa
    Coeff 0x02: 0x88aa
    Coeff 0x03: 0x0002
    Coeff 0x04: 0xaa09
    Coeff 0x05: 0x0700
    Coeff 0x06: 0x6110
    Coeff 0x07: 0x0200
    Coeff 0x08: 0xa807
    Coeff 0x09: 0x0021
    Coeff 0x0a: 0x7770
    Coeff 0x0b: 0x7778
    Coeff 0x0c: 0x802b
Of those, only 0x06 is different.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No headphone jack detection (ASUS Zephyrus)

Post by MrEen »

Ahh, what the heck. If the above still didn't do it, let's try 0x06 as well:

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x06
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x6110
All these changes are undone with a reboot, so there's no worry of messing up anything permanently.
iancmx

Re: No headphone jack detection (ASUS Zephyrus)

Post by iancmx »

Unfortunately, i dont think im getting any positive results. Im not sure if im doing this properly. Just to clarify, im supposed to run the 2 pairs of command one at a time, then check to see if i get audio from my headphones right after each run right? Do i have to restart alsa or pulseaudio after each run?

Code: Select all

➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x1b
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x4a4b
[sudo] password for iancmx: 
nid = 0x20, verb = 0x500, param = 0x1b
value = 0x0
nid = 0x20, verb = 0x477, param = 0x4a4b
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x0f
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x74
nid = 0x20, verb = 0x500, param = 0xf
value = 0x0
nid = 0x20, verb = 0x477, param = 0x74
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x06
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x6110
[sudo] password for iancmx: 
nid = 0x20, verb = 0x500, param = 0x6
value = 0x0
nid = 0x20, verb = 0x477, param = 0x6110
value = 0x0
➜  ~ 
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No headphone jack detection (ASUS Zephyrus)

Post by MrEen »

Each line should be run separately. I give them in pairs, because the first line is is asking to change a value, and the second is giving the value to change it to. Then it's testing time.

I'm not certain that running it in pairs like it appears you did works. At a glance, it looks like it ran correctly.

I have to head to bed, but tomorrow I'll inspect the full list to find all the differences to see if we can get this working. This might not be the correct path to get the issue fixed, but it's worth trying I believe.

Just so it's all in one place, here are the lists.

Yours:

Code: Select all

    Coeff 0x00: 0x3004
    Coeff 0x01: 0xaaaa
    Coeff 0x02: 0x88aa
    Coeff 0x03: 0x0002
    Coeff 0x04: 0xaa09
    Coeff 0x05: 0x0700
    Coeff 0x06: 0x6210
    Coeff 0x07: 0x0200
    Coeff 0x08: 0xa807
    Coeff 0x09: 0x0021
    Coeff 0x0a: 0x7770
    Coeff 0x0b: 0x7778
    Coeff 0x0c: 0x802b
    Coeff 0x0d: 0xa420
    Coeff 0x0e: 0x65c0
    Coeff 0x0f: 0x7774
    Coeff 0x10: 0xc420
    Coeff 0x11: 0x7418
    Coeff 0x12: 0x6bd0
    Coeff 0x13: 0x645f
    Coeff 0x14: 0x0400
    Coeff 0x15: 0x8ccc
    Coeff 0x16: 0x4c50
    Coeff 0x17: 0xff00
    Coeff 0x18: 0x0003
    Coeff 0x19: 0x2c11
    Coeff 0x1a: 0x838b
    Coeff 0x1b: 0x4e4b
    Coeff 0x1c: 0x0000
    Coeff 0x1d: 0x0000
    Coeff 0x1e: 0x0000
    Coeff 0x1f: 0x0000
    Coeff 0x20: 0x51ff
    Coeff 0x21: 0x8000
    Coeff 0x22: 0x8f00
    Coeff 0x23: 0x88f4
    Coeff 0x24: 0x0000
    Coeff 0x25: 0x0000
    Coeff 0x26: 0x0000
    Coeff 0x27: 0x0000
    Coeff 0x28: 0x0000
    Coeff 0x29: 0x3000
    Coeff 0x2a: 0x0000
    Coeff 0x2b: 0x0000
    Coeff 0x2c: 0x0f00
    Coeff 0x2d: 0x1f4f
    Coeff 0x2e: 0x2902
    Coeff 0x2f: 0xe280
    Coeff 0x30: 0x1000
    Coeff 0x31: 0x8400
    Coeff 0x32: 0x5aaa
    Coeff 0x33: 0x8423
    Coeff 0x34: 0xa20c
    Coeff 0x35: 0x096a
    Coeff 0x36: 0x5757
    Coeff 0x37: 0xfe05
    Coeff 0x38: 0x4901
    Coeff 0x39: 0x110a
    Coeff 0x3a: 0x0010
    Coeff 0x3b: 0x60d9
    Coeff 0x3c: 0xf214
    Coeff 0x3d: 0xc2ba
    Coeff 0x3e: 0xa928
    Coeff 0x3f: 0x0000
    Coeff 0x40: 0x8800
    Coeff 0x41: 0x0000
    Coeff 0x42: 0x2000
    Coeff 0x43: 0x3d90
    Coeff 0x44: 0x4900
    Coeff 0x45: 0xd689
    Coeff 0x46: 0x0af4
    Coeff 0x47: 0xa47a
    Coeff 0x48: 0xd049
    Coeff 0x49: 0x0349
    Coeff 0x4a: 0x200b
    Coeff 0x4b: 0x0777
    Coeff 0x4c: 0x065c
    Coeff 0x4d: 0x7fff
    Coeff 0x4e: 0x7fff
    Coeff 0x4f: 0x0000
    Coeff 0x50: 0x0000
    Coeff 0x51: 0x0000
    Coeff 0x52: 0xbf5f
    Coeff 0x53: 0x3320
    Coeff 0x54: 0xcc00
    Coeff 0x55: 0x0000
    Coeff 0x56: 0x3f00
    Coeff 0x57: 0x0000
    Coeff 0x58: 0x0000
    Coeff 0x59: 0x0000
    Coeff 0x5a: 0x1300
    Coeff 0x5b: 0x005f
    Coeff 0x5c: 0x0000
    Coeff 0x5d: 0x1001
    Coeff 0x5e: 0x1000
    Coeff 0x5f: 0x0000
    Coeff 0x60: 0x5556
    Coeff 0x61: 0xffc0
    Coeff 0x62: 0xa000
    Coeff 0x63: 0xd010
    Coeff 0x64: 0x0000
    Coeff 0x65: 0x3fb1
    Coeff 0x66: 0x1881
    Coeff 0x67: 0xc810
    Coeff 0x68: 0x2000
    Coeff 0x69: 0xfff0
    Coeff 0x6a: 0x0300
    Coeff 0x6b: 0x4078
    Coeff 0x6c: 0x0000
    Coeff 0x6d: 0x0000
    Coeff 0x6e: 0x0c25
    Coeff 0x6f: 0x0c0b
    Coeff 0x70: 0x8000
    Coeff 0x71: 0x4008
    Coeff 0x72: 0x0000
    Coeff 0x73: 0x0800
    Coeff 0x74: 0xa28f
    Coeff 0x75: 0xa050
    Coeff 0x76: 0x7fe8
    Coeff 0x77: 0xdb8c
    Coeff 0x78: 0x0000
    Coeff 0x79: 0x0000
    Coeff 0x7a: 0x2a96
    Coeff 0x7b: 0x800f
    Coeff 0x7c: 0x0200
    Coeff 0x7d: 0x1600
    Coeff 0x7e: 0x0000
    Coeff 0x7f: 0x0000
    Coeff 0x80: 0x0000
    Coeff 0x81: 0x0000
The other:

Code: Select all

    Coeff 0x00: 0x3004
    Coeff 0x01: 0xaaaa
    Coeff 0x02: 0x88aa
    Coeff 0x03: 0x0002
    Coeff 0x04: 0xaa09
    Coeff 0x05: 0x0700
    Coeff 0x06: 0x6110
    Coeff 0x07: 0x0200
    Coeff 0x08: 0xa807
    Coeff 0x09: 0x0021
    Coeff 0x0a: 0x7770
    Coeff 0x0b: 0x7778
    Coeff 0x0c: 0x802b
    Coeff 0x0d: 0xa420
    Coeff 0x0e: 0x65c0
    Coeff 0x0f: 0x7778
    Coeff 0x10: 0x0420
    Coeff 0x11: 0x7418
    Coeff 0x12: 0x6bd0
    Coeff 0x13: 0x645f
    Coeff 0x14: 0x0400
    Coeff 0x15: 0x8ccc
    Coeff 0x16: 0x4c50
    Coeff 0x17: 0xff00
    Coeff 0x18: 0x0003
    Coeff 0x19: 0x2c11
    Coeff 0x1a: 0x830b
    Coeff 0x1b: 0x4e4b
    Coeff 0x1c: 0x0000
    Coeff 0x1d: 0x0000
    Coeff 0x1e: 0x0000
    Coeff 0x1f: 0x0000
    Coeff 0x20: 0x51ff
    Coeff 0x21: 0x8000
    Coeff 0x22: 0x8f00
    Coeff 0x23: 0x88f4
    Coeff 0x24: 0x0000
    Coeff 0x25: 0x0000
    Coeff 0x26: 0x0000
    Coeff 0x27: 0x0000
    Coeff 0x28: 0x0000
    Coeff 0x29: 0x3000
    Coeff 0x2a: 0x0000
    Coeff 0x2b: 0x0000
    Coeff 0x2c: 0x0f00
    Coeff 0x2d: 0x1f4f
    Coeff 0x2e: 0x2902
    Coeff 0x2f: 0xe280
    Coeff 0x30: 0x1000
    Coeff 0x31: 0x8400
    Coeff 0x32: 0x5aaa
    Coeff 0x33: 0x8423
    Coeff 0x34: 0xa20c
    Coeff 0x35: 0x096a
    Coeff 0x36: 0x5757
    Coeff 0x37: 0xfe05
    Coeff 0x38: 0x4901
    Coeff 0x39: 0x110a
    Coeff 0x3a: 0x0010
    Coeff 0x3b: 0x60d9
    Coeff 0x3c: 0xf214
    Coeff 0x3d: 0xc2ba
    Coeff 0x3e: 0xa928
    Coeff 0x3f: 0x0000
    Coeff 0x40: 0x8800
    Coeff 0x41: 0x0000
    Coeff 0x42: 0x2000
    Coeff 0x43: 0x3d90
    Coeff 0x44: 0x4900
    Coeff 0x45: 0x5289
    Coeff 0x46: 0x0004
    Coeff 0x47: 0xa47a
    Coeff 0x48: 0xd049
    Coeff 0x49: 0x0049
    Coeff 0x4a: 0x200b
    Coeff 0x4b: 0x0777
    Coeff 0x4c: 0x065c
    Coeff 0x4d: 0x7fff
    Coeff 0x4e: 0x7fff
    Coeff 0x4f: 0x0000
    Coeff 0x50: 0x0000
    Coeff 0x51: 0x0000
    Coeff 0x52: 0xbf5f
    Coeff 0x53: 0x3320
    Coeff 0x54: 0xcc00
    Coeff 0x55: 0x0000
    Coeff 0x56: 0x3f00
    Coeff 0x57: 0x0000
    Coeff 0x58: 0x0000
    Coeff 0x59: 0x0000
    Coeff 0x5a: 0x1300
    Coeff 0x5b: 0x005f
    Coeff 0x5c: 0x0000
    Coeff 0x5d: 0x1001
    Coeff 0x5e: 0x1000
    Coeff 0x5f: 0x0000
    Coeff 0x60: 0x5554
    Coeff 0x61: 0xffc0
    Coeff 0x62: 0xa000
    Coeff 0x63: 0xd010
    Coeff 0x64: 0x0000
    Coeff 0x65: 0x3fb1
    Coeff 0x66: 0x1881
    Coeff 0x67: 0xc810
    Coeff 0x68: 0x2000
    Coeff 0x69: 0xfff0
    Coeff 0x6a: 0x0300
    Coeff 0x6b: 0x5078
    Coeff 0x6c: 0x0000
    Coeff 0x6d: 0x0000
    Coeff 0x6e: 0x0c25
    Coeff 0x6f: 0x0c0b
    Coeff 0x70: 0x8000
    Coeff 0x71: 0x4008
    Coeff 0x72: 0x0000
    Coeff 0x73: 0x0800
    Coeff 0x74: 0xa28f
    Coeff 0x75: 0xa050
    Coeff 0x76: 0x7fe8
    Coeff 0x77: 0xdb8c
    Coeff 0x78: 0x0000
    Coeff 0x79: 0x0000
    Coeff 0x7a: 0x2a96
    Coeff 0x7b: 0x800f
    Coeff 0x7c: 0x0200
    Coeff 0x7d: 0x1600
    Coeff 0x7e: 0x0000
    Coeff 0x7f: 0x0000
    Coeff 0x80: 0x0000
    Coeff 0x81: 0x0000
iancmx

Re: No headphone jack detection (ASUS Zephyrus)

Post by iancmx »

I ran each of the lines sperately, and still no result. Thanks a lot for the help today!
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No headphone jack detection (ASUS Zephyrus)

Post by MrEen »

iancmx wrote: Sun Jun 28, 2020 11:19 pm I ran each of the lines sperately, and still no result. Thanks a lot for the help today!
You're most welcome. I learn more myself trying to help with these things, so it's all good. If you meant you ran all of the stuff in my last post, you can ignore everything but the bottom of what I'm about to paste here:

Here are all the differences getting changed. Start with a fresh reboot, then run the first pair and test both speakers and headphones. I want you to test both, because one/some of these might make the speakers stop working. Then run the next pair and test both again, etc. If you get to the point where the headphones start working and the speakers are still working you can stop at that point, and mention where that occurred, and maybe we can pare it down further by trying the same thing in reverse order after another reboot.

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x06
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x6110

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x0f
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x7778

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x10
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x0420

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x1a
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x830b

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x45
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x5289

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x46
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x0004

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x49
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x0049

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x60
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x5554

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x6b
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x5078
If you go through the whole list and nothing has changed, try this Hail Mary pass:

Code: Select all

sudo su
echo 0x10431a61 > /sys/class/sound/hwC0D0/subsystem_id
echo 1 > /sys/class/sound/hwC0D0/reconfig
exit
And test once more. I'm hoping, but not certain, that doesn't wipe out the hda-verb commands that were just run. So if no luck at this point try running through the list again.

That last bit is changing the subsystem_id to the other ASUS models that were fixed earlier with just 0x0f and 0x1b (which yours already matches) changes. No idea if this will have any effect, good or bad, but they gave the option to change it, so it can't be all bad.

Good luck!
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No headphone jack detection (ASUS Zephyrus)

Post by MrEen »

And I just realized the patch done by HDAJackRetask might complicate matters. Don't worry about it for now, I'm just mentioning it more for myself, but it does have this:

Code: Select all

[codec]
0x10ec0294 0x10431881 0
I don't know if the reconfig will look at the patch or not, so the next step might be changing the subsystem_id in there, instead of dynamically.
iancmx

Re: No headphone jack detection (ASUS Zephyrus)

Post by iancmx »

Really appreciate the time and effort you are giving me to help solve this issue. Ive run all the lines and here are my results:

Code: Select all

➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x06

[sudo] password for iancmx: 
nid = 0x20, verb = 0x500, param = 0x6
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x6110

nid = 0x20, verb = 0x477, param = 0x6110
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x0f

nid = 0x20, verb = 0x500, param = 0xf
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x7778

nid = 0x20, verb = 0x477, param = 0x7778
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x10

nid = 0x20, verb = 0x500, param = 0x10
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x0420

nid = 0x20, verb = 0x477, param = 0x420
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x1a

nid = 0x20, verb = 0x500, param = 0x1a
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x830b

nid = 0x20, verb = 0x477, param = 0x830b
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x45

[sudo] password for iancmx: 
nid = 0x20, verb = 0x500, param = 0x45
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x5289

nid = 0x20, verb = 0x477, param = 0x5289
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x46

nid = 0x20, verb = 0x500, param = 0x46
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x0004

nid = 0x20, verb = 0x477, param = 0x4
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x49

nid = 0x20, verb = 0x500, param = 0x49
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x0049

nid = 0x20, verb = 0x477, param = 0x49
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x60

nid = 0x20, verb = 0x500, param = 0x60
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x5554

nid = 0x20, verb = 0x477, param = 0x5554
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x6b

nid = 0x20, verb = 0x500, param = 0x6b
value = 0x0
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x5078

nid = 0x20, verb = 0x477, param = 0x5078
value = 0x0
Upon running

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x1a
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x830b
Speakers stop working and there was no headphone detection. The otherr lines did not seem to produce any effect.

I tried doing the "Hail Mary" (lol) part and the moment I ran those lines, the speaker stopped working and headphone detection stopped working
I ran all the lines again and the output is rather strange:

Code: Select all

➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x06

[sudo] password for iancmx: 
nid = 0x20, verb = 0x500, param = 0x6
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x6110

nid = 0x20, verb = 0x477, param = 0x6110
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x0f

nid = 0x20, verb = 0x500, param = 0xf
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x7778

nid = 0x20, verb = 0x477, param = 0x7778
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x10

nid = 0x20, verb = 0x500, param = 0x10
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x0420

nid = 0x20, verb = 0x477, param = 0x420
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x1a

nid = 0x20, verb = 0x500, param = 0x1a
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x830b

nid = 0x20, verb = 0x477, param = 0x830b
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x45

nid = 0x20, verb = 0x500, param = 0x45
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x5289

nid = 0x20, verb = 0x477, param = 0x5289
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x46

nid = 0x20, verb = 0x500, param = 0x46
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x0004

nid = 0x20, verb = 0x477, param = 0x4
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x49

nid = 0x20, verb = 0x500, param = 0x49
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x0049

nid = 0x20, verb = 0x477, param = 0x49
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x60

nid = 0x20, verb = 0x500, param = 0x60
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x5554

nid = 0x20, verb = 0x477, param = 0x5554
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x6b

nid = 0x20, verb = 0x500, param = 0x6b
value = 0xffffffff
➜  ~ sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x5078

nid = 0x20, verb = 0x477, param = 0x5078
value = 0xffffffff
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: No headphone jack detection (ASUS Zephyrus)

Post by MrEen »

Gotcha, the 0xfffffff stuff is just what it looks like, Off. It was worth a shot. At least now I know not to try that in the future. :D

Just taking another guess here, but after the next reboot try just this one pair as it's a little different:

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x0f
sudo hda-verb /dev/snd/hwC0D0 0x20 0x477 0x74
And if the headphones still don't work, then try this:

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_MASK 0x01
sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DIR 0x01
sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0x01
Locked

Return to “Hardware Support”