From nobody Sun Sep 17 14:10:53 2023 X-Original-To: doc@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RpVFp0nDgz4srdR for ; Sun, 17 Sep 2023 14:10:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RpVFn4zmYz3YYb for ; Sun, 17 Sep 2023 14:10:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694959853; a=rsa-sha256; cv=none; b=KJP9bJ2U424sGtHQMAxZsZ+WJUdZ+mpt6YvImGimHLCKi7rMtbTTllBx2FeBuO357NI8OM U7m9jwxngppuI1XOZ+lKeLAcBnOcYlyHUK2j+QGzIBlZ8FlZOnAXKJKToCT7PJrr5DztKG QlOlIiisCj4O6fWiwAJifTBiSazFVoF4/eJeL/RhoP4PErBQjweuBZ4jZa19hTVqfR/UBP Z6v4B0urwRzzVWdl/jz/X1mU4gKCqjaAkI4D16XFv/ZJj7E77DMqg7X3i/8zKyNa1rX3I7 f5LITsmr4NHpAIY9Ihtr5k8bu+oohhU1geVlxxZ0/dm6DtvMmIUlu3Lx4d2pPw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694959853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LrtklAFT1GLgiKPb+/cezLy8bTwLN0RdIHHsRKmb7oM=; b=eccYTGr0tkyss7oJ4lAAR5IijS1w/S8Yuf5ypqY+uZa/N6F5M4VjJ1EchgwSHqcY+7zjbR PaRAluyrolRGIJVykBJuJBCas8Y5YH4mBoUCnShv8zZ38hnY/9suRtZYAlcusKY87Vm8jc 8StMxTJJXMAQ93Z7oyFsDSHro9VNBbioO553+1OtZJ/PzevuKyGI5WM/jVUSiIpRYdun8Z 5bNXrCCYzpBUdbxSOOtKBsgYD92zHFzfSojEBxarN0qepT+hzm8c68QyV2LQ75rSKm+YAk wChP1ALHeFfMmu8EvEnAFIGKzX4qNJe7iZfhq5UK3Uk2uBlrmLFrgflgaNcfLw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RpVFn44nFzrW9 for ; Sun, 17 Sep 2023 14:10:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 38HEArCq087326 for ; Sun, 17 Sep 2023 14:10:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38HEArEY087325 for doc@FreeBSD.org; Sun, 17 Sep 2023 14:10:53 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: doc@FreeBSD.org Subject: [Bug 273901] Handbook: Automatically Switching to Headphones: More explanation needed Date: Sun, 17 Sep 2023 14:10:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Books & Articles X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jwb@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: doc@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273901 Bug ID: 273901 Summary: Handbook: Automatically Switching to Headphones: More explanation needed Product: Documentation Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Books & Articles Assignee: doc@FreeBSD.org Reporter: jwb@freebsd.org I'm trying to get a better understanding of how to diagnose sound issues on FreeBSD. The handbook, under "Automatically Switching to Headphones", contains the following example: =3D=3D=3D Some systems may struggle with switching between audio outputs, but fortuna= tely FreeBSD allows automatic switchover to be configured in device.hints. Identify how the system is enumerating the audio outputs by executing the following command: % dmesg | grep pcm The output looks something like this: pcm0: at nid 23 and 26 on hdaa0 pcm1: at nid 22 on hdaa0 Add the following lines to /boot/device.hints: hint.hdac.0.cad0.nid22.config=3D"as=3D1 seq=3D15 device=3DHeadphones" hint.hdac.0.cad0.nid26.config=3D"as=3D2 seq=3D0 device=3Dspeakers" =3D=3D=3D It is not at all evident how the values of "as" and "seq" were determined f= rom the dmesg output above.=20 Also, running "dmesg | grep pcm" does not even reveal which device is the headphone jack on my Lenovo T430. I suspect the details provided to dmesg = are highly variable across devices. =3D=3D=3D FreeBSD moray.acadix bacon ~ 1004: dmesg|grep pcm pcm0: at nid 20 and 24 on hdaa0 pcm1: at nid 21 and 18 on hdaa0 pcm2: at nid 5 on hdaa1 pcm3: at nid 6 on hdaa1 pcm4: at nid 7 on hdaa1 pcm0: at nid 20,21 and 24 on hdaa0 pcm1: at nid 18 on hdaa0 pcm2: at nid 5 on hdaa1 pcm3: at nid 6 on hdaa1 pcm4: at nid 7 on hdaa1 =3D=3D=3D Maybe the handbook should explain how to use "sysctl dev.hdac.0.pindump=3D1= " and "dmesg" to obtain that information? Another developer pointed me to this method in bug #273809. =3D=3D=3D <<>> /home/bacon 1063 # sysctl dev.hdac.0.pindump=3D1 dev.hdac.0.pindump: 0 -> 0 <<>> /home/bacon 1064 # dmesg | awk '$2 =3D=3D "nid" || = $6 =3D=3D "Headphones"' hdaa0: nid 0x as seq device conn jack loc color misc hdaa0: 21 0321101f 1 15 Headphones Jack 1/8 Left Black 0 hdaa0: 27 6121113f 3 15 Headphones None 1/8 Ext-Rear Black 1 D= ISA hdaa1: nid 0x as seq device conn jack loc color misc =3D=3D=3D --=20 You are receiving this mail because: You are the assignee for the bug.=