<SOLVED> ACER laptop - no headphone or subwoofer audio

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
N7_X
Level 3
Level 3
Posts: 114
Joined: Mon Mar 02, 2015 10:11 am

<SOLVED> ACER laptop - no headphone or subwoofer audio

Post by N7_X »

SOLUTION

I used Linux Mint Cinnamon 19.3 x64, fully updated, kernel 5.4.x.

1 ) Install hdajackretask and tlp:

Code: Select all

sudo apt install alsa-tools-gui tlp
2 ) Download & install AC fix for Ryzen, following instructions for install https://github.com/pastaq/Acer-Ryzen-Helios-AC-Fix
3 ) Apply the tlp fix in the comment: https://bbs.archlinux.org/viewtopic.php ... 9#p1825039
4 ) Open hdajackretask, select 'show unconnected pins' and override 0x17 to "Internal speaker (LFE)" (Subwoofer fix)
5 ) In hdajackretask, select 'advanced override' and set the following settings for 0x21 (Headphone fix) Feel free to experiment a little, but this worked for me:

Code: Select all

[Connectivity: Jack],[Location: Left],[Device: Headphone],[Jack: 3.5 mm]
[Color: Green],[Jack detection: Present],[Channel group: 3],[Channel in group: Front]
6 ) Apply now & install boot override.
7 ) Run this command in the terminal

Code: Select all

sudo tee /etc/modprobe.d/snd-hda-intel.conf <<<'options snd-hda-intel power_save=0'
8 ) Reboot. Audio should be working properly.

Massive thanks to MrEen for helping me through all this, ToolFox on the Arch forums for the TLP fix, and pastaq for the Ryzen fix on github.


ORIGINAL POST


Hello all, I recently got my hands on an ACER Predator Helios 500 - Ryzen edition. I've made various hacks & fixes to get different things working correctly, but I still have 1 issue with audio that is driving me crazy. This particular laptop has a subwoofer on the bottom, which I can live without. However it does not play audio through headphones when I connect any set to the audio jack.

I am running Mint 19.3 Cinnamon 64-bit with custom kernel: 5.4.8-20.01.06.amdgpu.ubuntu. This issue has been present on every kernel I've tried up to, and including, this one.
The soundcard appears to be Realtek ALC299. I can get audio through the 2 main speakers, but that is it.
I have heard that the acpi tables for this laptop are bloody awful and that's the root cause of a power issue I have. I don't know if that's relevant, but I want to give as much information as possible.

Some of the troubleshooting info I've gathered through my searches:
inxi -Fxz

Code: Select all

System:
  Host: Empyrrean Kernel: 5.4.8-20.01.06.amdgpu.ubuntu x86_64 bits: 64 
  compiler: gcc v: 9.2.1 Desktop: Cinnamon 4.4.8 
  Distro: Linux Mint 19.3 Tricia base: Ubuntu 18.04 bionic 
Machine:
  Type: Laptop System: Acer product: Predator PH517-61 v: V1.08 
  serial: <filter> 
  Mobo: PRS model: Cayman_PRS v: V1.08 serial: <filter> UEFI: Insyde v: 1.08 
  date: 04/19/2019 
Battery:
  ID-1: BAT1 charge: 62.6 Wh condition: 74.2/74.1 Wh (100%) 
  model: PANASONIC AP17C5P status: Discharging 
CPU:
  Topology: 8-Core model: AMD Ryzen 7 2700 bits: 64 type: MT MCP arch: Zen+ 
  rev: 2 L2 cache: 4096 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 102207 
  Speed: 1377 MHz min/max: 1550/3200 MHz Core speeds (MHz): 1: 1378 2: 1447 
  3: 1547 4: 1544 5: 1547 6: 1545 7: 1546 8: 1547 9: 1444 10: 1436 11: 1378 
  12: 1382 13: 1378 14: 1380 15: 1397 16: 1380 
Graphics:
  Device-1: AMD Vega 10 XT [Radeon RX Vega 64] vendor: Acer Incorporated ALI 
  driver: amdgpu v: kernel bus ID: 08:00.0 
  Display: x11 server: X.Org 1.20.5 driver: amdgpu,ati 
  unloaded: fbdev,modesetting,vesa resolution: 1920x1080~144Hz 
  OpenGL: 
  renderer: AMD VEGA10 (DRM 3.36.0 5.4.8-20.01.06.amdgpu.ubuntu LLVM 10.0.0) 
  v: 4.6 Mesa 20.0.0-devel - padoka PPA direct render: Yes 
Audio:
  Device-1: AMD vendor: Acer Incorporated ALI driver: snd_hda_intel 
  v: kernel bus ID: 08:00.1 
  Device-2: AMD Family 17h HD Audio vendor: Acer Incorporated ALI 
  driver: snd_hda_intel v: kernel bus ID: 0a:00.3 
  Sound Server: ALSA v: k5.4.8-20.01.06.amdgpu.ubuntu 
Network:
  Device-1: Qualcomm Atheros Killer E2500 Gigabit Ethernet 
  vendor: Acer Incorporated ALI driver: alx v: kernel port: 3000 
  bus ID: 04:00.0 
  IF: enp4s0 state: down mac: <filter> 
  Device-2: Intel Wireless-AC 9260 vendor: Bigfoot Networks driver: iwlwifi 
  v: kernel port: 3000 bus ID: 05:00.0 
  IF: wlp5s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 704.24 GiB used: 67.16 GiB (9.5%) 
  ID-1: /dev/nvme0n1 vendor: SK Hynix model: HFS256GD9MNE-6200A 
  size: 238.47 GiB 
  ID-2: /dev/sda vendor: Crucial model: CT500MX500SSD4 size: 465.76 GiB 
Partition:
  ID-1: / size: 233.24 GiB used: 19.87 GiB (8.5%) fs: ext4 
  dev: /dev/nvme0n1p2 
  ID-2: /home size: 457.45 GiB used: 47.28 GiB (10.3%) fs: ext4 
  dev: /dev/sda1 
Sensors:
  System Temperatures: cpu: 53.0 C mobo: N/A 
Use of uninitialized value $val2 in string eq at /usr/bin/inxi line 5759.
Use of uninitialized value $val2 in split at /usr/bin/inxi line 5764.
Use of uninitialized value $val2 in concatenation (.) or string at /usr/bin/inxi line 5766.
Use of uninitialized value $val2 in concatenation (.) or string at /usr/bin/inxi line 5767.
Use of uninitialized value $val2 in concatenation (.) or string at /usr/bin/inxi line 5768.
  Fan Speeds (RPM): N/A gpu: fan: 0 
Info:
  Processes: 342 Uptime: 11m Memory: 15.61 GiB used: 1.24 GiB (8.0%) 
  Init: systemd runlevel: 5 Compilers: gcc: 7.4.0 Shell: bash v: 4.4.20 
  inxi: 3.0.32
aplay -l

Code: Select all

**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALC299 Analog [ALC299 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
pacmd list-sinks (run with audio playing)

Code: Select all

1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_0a_00.3.analog-surround-21>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	state: RUNNING
	suspend cause: 
	priority: 9039
	volume: front-left: 26013 /  40% / -24.08 dB,   front-right: 26013 /  40% / -24.08 dB,   lfe: 27656 /  42% / -22.48 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 92.66 ms
	max request: 25 KiB
	max rewind: 25 KiB
	monitor source: 0
	sample spec: s16le 3ch 48000Hz
	channel map: front-left,front-right,lfe
	used by: 1
	linked by: 1
	fixed latency: 100.14 ms
	card: 1 <alsa_card.pci-0000_0a_00.3>
	module: 8
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC299 Analog"
		alsa.id = "ALC299 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xf0200000 irq 102"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:0a:00.3"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0a:00.3/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "1457"
		device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
		device.string = "surround21:1"
		device.buffering.buffer_size = "26496"
		device.buffering.fragment_size = "6624"
		device.access_mode = "mmap"
		device.profile.name = "analog-surround-21"
		device.profile.description = "Analog Surround 2.1"
		device.description = "Family 17h (Models 00h-0fh) HD Audio Controller Analog Surround 2.1"
		alsa.mixer_name = "Realtek ALC299"
		alsa.components = "HDA:10ec0299,10251246,00100002"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
	active port: <analog-output-speaker>
lspci -k

Code: Select all

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Root Complex
	Subsystem: Acer Incorporated [ALI] Family 17h (Models 00h-0fh) Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) I/O Memory Management Unit
	Subsystem: Acer Incorporated [ALI] Family 17h (Models 00h-0fh) I/O Memory Management Unit
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge
	Kernel driver in use: pcieport
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge
	Kernel driver in use: pcieport
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge
	Kernel driver in use: pcieport
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B
	Kernel driver in use: pcieport
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B
	Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 59)
	Subsystem: Acer Incorporated [ALI] FCH SMBus Controller
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
	Subsystem: Acer Incorporated [ALI] FCH LPC Bridge
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3
	Kernel driver in use: k10temp
	Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 7
01:00.0 Non-Volatile memory controller: SK hynix Device 1504
	Subsystem: Thales e-Security Device 1093
	Kernel driver in use: nvme
	Kernel modules: nvme
02:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43d5 (rev 01)
	Subsystem: Acer Incorporated [ALI] Device 1246
	Kernel driver in use: xhci_hcd
02:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] Device 43c8 (rev 01)
	Subsystem: Acer Incorporated [ALI] Device 1246
	Kernel driver in use: ahci
	Kernel modules: ahci
02:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c6 (rev 01)
	Kernel driver in use: pcieport
03:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
	Kernel driver in use: pcieport
03:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43c7 (rev 01)
	Kernel driver in use: pcieport
04:00.0 Ethernet controller: Qualcomm Atheros Killer E2500 Gigabit Ethernet Controller (rev 10)
	Subsystem: Acer Incorporated [ALI] Killer E2500 Gigabit Ethernet Controller
	Kernel driver in use: alx
	Kernel modules: alx
05:00.0 Network controller: Intel Corporation Wireless-AC 9260 (rev 29)
	Subsystem: Bigfoot Networks, Inc. Device 1550
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
06:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1470 (rev c7)
	Kernel driver in use: pcieport
07:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1471
	Kernel driver in use: pcieport
08:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 XT [Radeon RX Vega 64] (rev c7)
	Subsystem: Acer Incorporated [ALI] Vega 10 XT [Radeon RX Vega 64]
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
08:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aaf8
	Subsystem: Acer Incorporated [ALI] Device 1246
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
09:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 145a
	Subsystem: Acer Incorporated [ALI] Device 1246
09:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Platform Security Processor
	Subsystem: Acer Incorporated [ALI] Family 17h (Models 00h-0fh) Platform Security Processor
	Kernel driver in use: ccp
	Kernel modules: ccp
09:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] USB 3.0 Host controller
	Subsystem: Acer Incorporated [ALI] USB 3.0 Host controller
	Kernel driver in use: xhci_hcd
0a:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 1455
	Subsystem: Acer Incorporated [ALI] Device 1246
0a:00.2 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
	Subsystem: Acer Incorporated [ALI] FCH SATA Controller [AHCI mode]
	Kernel driver in use: ahci
	Kernel modules: ahci
0a:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) HD Audio Controller
	Subsystem: Acer Incorporated [ALI] Family 17h (Models 00h-0fh) HD Audio Controller
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
Thank you! I'm a proud user of Linux Mint for ~7 years. This community has helped me a lot (even without me posting!)
Last edited by N7_X on Sat Feb 22, 2020 1:51 pm, edited 12 times in total.
User avatar
MrEen
Level 21
Level 21
Posts: 13116
Joined: Mon Jun 12, 2017 8:39 pm

Re: ASUS laptop - no headphone or subwoofer audio

Post by MrEen »

Hi N7_X.

The first thing to check for the SW is to run alsamixer -c1 in the terminal and see if the LFE column is muted. If it shows MM at the bottom of the column, then it's muted. Use the arrow keys to select the column, then press the m key to unmute. You might also need to raise the level with the up arrow key.

For the headphone issue, let's see the output of pacmd list-cards and dmesg | grep snd please. I'm assuming your pacmd list-sinks output was with headphones attached and no headphone port was shown. This could be a reversed detection issue, i.e. when plugging in headphones makes them disappear, but the above will show if your system even recognizes a headphone port.
N7_X
Level 3
Level 3
Posts: 114
Joined: Mon Mar 02, 2015 10:11 am

Re: ASUS laptop - no headphone or subwoofer audio

Post by N7_X »

Thank you for a speedy reply MrEen.

alsamixer -c1 didn't show an LFE column. I have Master, Speaker, Bass Speaker, PCM, Mic Boost, and Internal mic.
I tried boosting Bass Speaker levels with the arrow key, but it was already maxed out. none of the channels appear to be muted.

Although I did, according to another thread I read elsewhere, change the value enable-lfe-remixing = yes in /etc/pulse/daemon.conf
Please let me know if I should try changing that back.

Yes, I'm pretty positive I did pacmd before when my headphones were plugged in.
pacmd list-cards

Code: Select all

2 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_08_00.1>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "0"
		alsa.card_name = "HDA ATI HDMI"
		alsa.long_card_name = "HDA ATI HDMI at 0xf0680000 irq 100"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:08:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:06:00.0/0000:07:00.0/0000:08:00.1/sound/card0"
		device.bus = "pci"
		device.vendor.id = "1002"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
		device.product.id = "aaf8"
		device.string = "0"
		device.description = "HDA ATI HDMI"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 300, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 300, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5200, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 100, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 100, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5200, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 100, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 100, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5200, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 100, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 100, available: no)
		off: Off (priority 0, available: unknown)
	active profile: <off>
	ports:
		hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "video-display"
    index: 1
	name: <alsa_card.pci-0000_0a_00.3>
	driver: <module-alsa-card.c>
	owner module: 8
	properties:
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xf0200000 irq 102"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:0a:00.3"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:0a:00.3/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "1457"
		device.product.name = "Family 17h (Models 00h-0fh) HD Audio Controller"
		device.string = "1"
		device.description = "Family 17h (Models 00h-0fh) HD Audio Controller"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 60, available: unknown)
		output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, available: unknown)
		output:analog-surround-21: Analog Surround 2.1 Output (priority 800, available: unknown)
		output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (priority 860, available: unknown)
		output:analog-surround-40: Analog Surround 4.0 Output (priority 700, available: unknown)
		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (priority 760, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-surround-21+input:analog-stereo>
	sinks:
		alsa_output.pci-0000_0a_00.3.analog-surround-21/#0: Family 17h (Models 00h-0fh) HD Audio Controller Analog Surround 2.1
	sources:
		alsa_output.pci-0000_0a_00.3.analog-surround-21.monitor/#0: Monitor of Family 17h (Models 00h-0fh) HD Audio Controller Analog Surround 2.1
		alsa_input.pci-0000_0a_00.3.analog-stereo/#1: Family 17h (Models 00h-0fh) HD Audio Controller Analog Stereo
	ports:
		analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
User avatar
MrEen
Level 21
Level 21
Posts: 13116
Joined: Mon Jun 12, 2017 8:39 pm

Re: ASUS laptop - no headphone or subwoofer audio

Post by MrEen »

No headphone output is shown. Let's see dmesg | grep snd please.

Also, as it's listing it as a Bass Speaker, see if changing the profile to Analog Stereo Duplex has any effect.
N7_X
Level 3
Level 3
Posts: 114
Joined: Mon Mar 02, 2015 10:11 am

Re: ASUS laptop - no headphone or subwoofer audio

Post by N7_X »

dmesg | grep snd

Code: Select all

4.650811] snd_hda_intel 0000:08:00.1: Force to non-snoop mode
[    4.656059] snd_hda_intel 0000:08:00.1: bound 0000:08:00.0 (ops amdgpu_exit [amdgpu])
[    4.673242] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC299: line_outs=2 (0x14/0x21/0x0/0x0/0x0) type:speaker
[    4.673244] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    4.673245] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    4.673246] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[    4.673247] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[    4.673248] snd_hda_codec_realtek hdaudioC1D0:      Mic=0x19
[    4.673249] snd_hda_codec_realtek hdaudioC1D0:      Internal Mic=0x12
How do I change the profile to that? The output profiles listen in the GUI are "Analog Stereo Output", "Analog Surround 2.1 Output", and "Analog Surround 4.0 Output."
I did not notice any difference between those 3 modes. And thank you again - sound troubleshooting is very much a weak area for me on Linux, haha
User avatar
MrEen
Level 21
Level 21
Posts: 13116
Joined: Mon Jun 12, 2017 8:39 pm

Re: ASUS laptop - no headphone or subwoofer audio

Post by MrEen »

For your GUI, Analog Stereo Output would have been the choice I was referring to. In PulseAudio Volume Control the Configuration tab would have what I mentioned, as well as other choices possible that your GUI isn't revealing. We'll get back to that after getting the headphone working which I'll focus on now.

Now the hard part. Install alsa-tools-gui so you can run HDAJackRetask. You have no headphone port listed as seen here:

Code: Select all

[    4.673245] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
When HDAJckRetask opens make sure ALC299 is selected in the upper left instead of the HDMI card. Now click on Show unconnected pins. Click on the Override check box for one of the Not connected pins and see if it can be changed to Headphones. If not, move on to another pin. If so, select Headphones then click on Apply now and test the headphones with this terminal command: aplay /usr/share/sounds/alsa/Front_Center.wav

You may need to ensure the headphones aren't muted in your GUI as well as alsamixer -c1 where I'm hoping you'll now have that column.

If you have success, click on Install boot override, then reboot to ensure it still works. Otherwise, move on to another unconnected pin after changing that one back.

Using HDAJackRetask has about a 50/50 chance of working. I'm hoping you're in the right half! You might also check your BIOS to see if anything sound related needs enabling there.
N7_X
Level 3
Level 3
Posts: 114
Joined: Mon Mar 02, 2015 10:11 am

Re: ASUS laptop - no headphone or subwoofer audio

Post by N7_X »

Hoo boy, this got confusing fast.
HDAJackRestask installed & ran beautifully, but my results are extremely confusing.

Initial start, there are 4 pin configurations:
  • Internal Mic
  • Internal Speaker
  • Black Mic, Right Side
  • Black Headphone, Right Side
With unconnected pins, I get 8 additional options, 2 of which can be set to "Headphone." Enabling either and playing the sound adds "Headphone" to the alsamixer. However, it also adds "PCM" to the mixer, and that controls the volume somehow? Very confused.
Anyway, the complete list of options I have on those 2 pins are:
  • Headphone
  • Line Out (Front)
  • Line Out (Center/LFE)
  • Line Out (Back)
  • Line Out (Side)
  • Internal Speaker
  • Internal Speaker (LFE)
  • Internal Speaker (Back)
  • Dock Headphone
  • Dock Line out
I haven't tried every option yet (does it matter which pin? or just one that allows it?) but so far none of them have made the headphones work.
Also I wonder if one of these options might "wake up" the subwoofer? The volume seems to max out when I set a pin to headphones and unmute it. Hard to tell if there's a 3rd speaker in there or not.
Apologies for my ramblings, I'll look into hdajackretask a little more in the meantime and keep experimenting.

EDIT: My BIOS is incredibly basic. I did not see any options there, unfortunately.
User avatar
MrEen
Level 21
Level 21
Posts: 13116
Joined: Mon Jun 12, 2017 8:39 pm

Re: ASUS laptop - no headphone or subwoofer audio

Post by MrEen »

Yeah, it's a rather confusing app to work with, especially at first. One thing I did spot which may come into play later is this one: Internal Speaker (LFE)

Setting an unconnected pin to that may be what we need for the SW.

All I can suggest is to play with the app and see what you can get working. If sound gets all messed up, a reboot should put you back to where you were when you started. Only after clicking on Install boot override will it be more work than rebooting to undo everything.

Any unconnected pin you can change is fine. Doesn't matter which.

Oops, almost missed this:

Code: Select all

Black Headphone, Right Side
What pin number is that? maybe we can fiddle with it to get it working!
User avatar
MrEen
Level 21
Level 21
Posts: 13116
Joined: Mon Jun 12, 2017 8:39 pm

Re: ASUS laptop - no headphone or subwoofer audio

Post by MrEen »

I'm going to assume the Black Headphone has a pin number. Let's see these outputs: amixer -c1 and cat /proc/asound/card1/codec#0
N7_X
Level 3
Level 3
Posts: 114
Joined: Mon Mar 02, 2015 10:11 am

Re: ASUS laptop - no headphone or subwoofer audio

Post by N7_X »

"Black Headphone, Right Side" - That's pin 0x21. One of the "connected pins."

So any unconnected pin, thank you, sounds good!
Does the "override device" matter in any way? I'm wondering because I have "Headphone" & "Dock Headphone" options.

Fascinating program, the more I mess around with it. Would I be correct in gathering that each "pin" is part of the motherboard of this specific device?
I might have an idea which pin could be the SW. I forget which right now, but setting that to "Headphone" caused audio to play out of, what sounded like, a speaker other than the 2 main. Worth investigating more, but I don't know why "Headphone" worked for that instead of LFE.
N7_X
Level 3
Level 3
Posts: 114
Joined: Mon Mar 02, 2015 10:11 am

Re: ASUS laptop - no headphone or subwoofer audio

Post by N7_X »

MrEen wrote:
Sat Feb 15, 2020 6:37 pm
I'm going to assume the Black Headphone has a pin number. Let's see these outputs: amixer -c1 and cat /proc/asound/card1/codec#0
amixer -c1

Code: Select all

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 45 [52%] [-31.50dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Bass Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
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: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 63 [100%] [30.00dB] [on]
  Front Right: Capture 63 [100%] [30.00dB] [on]
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: 1 [33%] [10.00dB]
  Front Right: 1 [33%] [10.00dB]
cat /proc/asound/card1/codec#0

Code: Select all

Codec: Realtek ALC299
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0299
Subsystem Id: 0x10251246
Revision Id: 0x100002
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=3, 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
Node 0x02 [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
  Device: name="ALC299 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals:  [0x2d 0x2d]
  Converter: stream=5, 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 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Bass 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:  [0x2d 0x2d]
  Converter: stream=5, 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=5, 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 [0x40]: 48000
    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
  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="ALC299 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
  Amp-In vals:  [0x3f 0x3f]
  Converter: stream=1, 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
  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
     0x22
Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
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:  [0x01 0x01]
  Pincap 0x00000020: IN
  Pin Default 0x90a60140: [Fixed] Mic at Int N/A
    Conn = Digital, Color = Unknown
    DefAssociation = 0x4, 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
  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:  [0x00 0x00]
  Pincap 0x00010014: OUT EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x90171110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = Black
    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: 1
     0x02
Node 0x15 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x16 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0000001c: OUT HP 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=01, enabled=1
  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
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0000001c: OUT HP 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=01, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x02 0x03 0x06*
Node 0x18 [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  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="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 0x00003724: IN Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x04a11030: [Jack] Mic at Ext Right
    Conn = 1/8, Color = Black
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=01, 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: 0x00: 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 0x40699b6d: [N/A] Modem Line at Ext N/A
    Conn = XLR, Color = Pink
    DefAssociation = 0x6, Sequence = 0xd
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x1e [Pin Complex] wcaps 0x400501: Stereo
  Pincap 0x00000010: OUT
  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
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x06
Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
  Processing caps: benign=0, ncoeff=104
Node 0x21 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Bass 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:  [0x00 0x00]
  Pincap 0x0001001c: OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x0421101f: [Jack] HP Out at Ext Right
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x02 0x03*
Node 0x22 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 5
     0x19 0x1a 0x1b 0x1d 0x13
Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x00 0x00]
  Connection: 5
     0x19 0x1a 0x1b 0x1d 0x12
Node 0x24 [Audio Selector] wcaps 0x300101: Stereo
  Connection: 3
     0x12* 0x13 0x18
User avatar
MrEen
Level 21
Level 21
Posts: 13116
Joined: Mon Jun 12, 2017 8:39 pm

Re: ASUS laptop - no headphone or subwoofer audio

Post by MrEen »

Aha! Look at this one:

Code: Select all

Node 0x21 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Bass 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:  [0x00 0x00]
  Pincap 0x0001001c: OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x0421101f: [Jack] HP Out at Ext Right
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x02 0x03*
I'm not absolutely sure which attack method is best, but lets start with HDAJackRetask, and clicking on the Override box for 0x21 and changing it to headphones.

The reason I'm saying that is this line:

Code: Select all

Pin Default 0x0421101f: [Jack] HP Out at Ext Right
N7_X
Level 3
Level 3
Posts: 114
Joined: Mon Mar 02, 2015 10:11 am

Re: ASUS laptop - no headphone or subwoofer audio

Post by N7_X »

Alright, set 0x21 to Headphone and applied.
Opened alsamixer and played audio clip via bash.
Unmuted headphone channel, shows it's at 100% audio, master @ 33%, audio applet say 39%.
No audio through headphones, but both interfaces seem to think this is correct.

What would you like me to do next?
User avatar
MrEen
Level 21
Level 21
Posts: 13116
Joined: Mon Jun 12, 2017 8:39 pm

Re: ASUS laptop - no headphone or subwoofer audio

Post by MrEen »

Also, I'd like to see the output again (the cat /proc.. one) with the headphones unplugged if they were plugged in when you ran that. Otherwise, if they were unplugged, plug them in then run the command again. That mute=1 near the top is what I'm hoping to see change between the 2 outputs.
N7_X
Level 3
Level 3
Posts: 114
Joined: Mon Mar 02, 2015 10:11 am

Re: ASUS laptop - no headphone or subwoofer audio

Post by N7_X »

Do you want the full output?
I ran it both with the headphones plugged and unplugged. It still showed mute=1 for 0x21 though.
User avatar
MrEen
Level 21
Level 21
Posts: 13116
Joined: Mon Jun 12, 2017 8:39 pm

Re: ASUS laptop - no headphone or subwoofer audio

Post by MrEen »

N7_X wrote:
Sat Feb 15, 2020 6:40 pm
"Black Headphone, Right Side" - That's pin 0x21. One of the "connected pins."

So any unconnected pin, thank you, sounds good!
Does the "override device" matter in any way? I'm wondering because I have "Headphone" & "Dock Headphone" options.

Fascinating program, the more I mess around with it. Would I be correct in gathering that each "pin" is part of the motherboard of this specific device?
I might have an idea which pin could be the SW. I forget which right now, but setting that to "Headphone" caused audio to play out of, what sounded like, a speaker other than the 2 main. Worth investigating more, but I don't know why "Headphone" worked for that instead of LFE.
I managed to miss this post completely. Another thing worth looking at here is clicking on Advanced override which will expose 8 boxes for each pin. See if those look normal for 0x21 Should look something like this:
Jack Front Headphone 3.5mm
Black Present SomeNumber SomeChannel(s)

No need for the full output of the cat /proc command. I'm trying to see why it's staying muted as that might be the last hurdle for the headphones.
User avatar
MrEen
Level 21
Level 21
Posts: 13116
Joined: Mon Jun 12, 2017 8:39 pm

Re: ASUS laptop - no headphone or subwoofer audio

Post by MrEen »

I'm not sure exactly what the pins correspond to. And it's not uncommon for the BIOS to misreport the pins that are available. That is why the developer of HDAJackRetask created the program. He's one of the main audio developers for Linux.
N7_X
Level 3
Level 3
Posts: 114
Joined: Mon Mar 02, 2015 10:11 am

Re: ASUS laptop - no headphone or subwoofer audio

Post by N7_X »

Unplugged

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:  [0x00 0x00]
  Pincap 0x0001001c: OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x0421101f: [Jack] HP Out at Ext Right
    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: 2
     0x02 0x03*
Plugged

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:  [0x00 0x00]
  Pincap 0x0001001c: OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x0421101f: [Jack] HP Out at Ext Right
    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: 2
     0x02 0x03*
"Channel" was set to 3, and "Channel (In group)" was set to 30 & 31. I tried messing around with that a bit and making it 1 & front, but that still doesn't get what we want.
User avatar
MrEen
Level 21
Level 21
Posts: 13116
Joined: Mon Jun 12, 2017 8:39 pm

Re: ASUS laptop - no headphone or subwoofer audio

Post by MrEen »

Alright, the only difference there between your and mine was my channel was set to 2. I'm thinking that's not going to be enough yet.

Install alsa-tools (this is different than alsa-tools-gui) then run this command and test the headphones:

Code: Select all

sudo hda-verb /dev/snd/hwC1D0 0x21 SET_PIN_WIDGET_CONTROL 0xc0
Caution: keep the headphones away from your ears. They may start way too loud if this works.
N7_X
Level 3
Level 3
Posts: 114
Joined: Mon Mar 02, 2015 10:11 am

Re: ASUS laptop - no headphone or subwoofer audio

Post by N7_X »

sudo hda-verb /dev/snd/hwC1D0 0x21 SET_PIN_WIDGET_CONTROL 0xc0

Code: Select all

nid = 0x21, verb = 0x707, param = 0xc0
value = 0x0
No audio from headphones when I ran the command. Should I restart the computer first to reset any changes I made with hdajackretask?

EDIT: Restarted, no changes.
Post Reply

Return to “Hardware Support”