From nobody Wed May 01 05:43:49 2024 X-Original-To: freebsd-questions@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 4VTmGC1qCCz5JD57 for ; Wed, 1 May 2024 05:44:03 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VTmGB3ztcz4JLR for ; Wed, 1 May 2024 05:44:02 +0000 (UTC) (envelope-from freebsd@edvax.de) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edvax.de; s=s1-ionos; t=1714542239; x=1715147039; i=freebsd@edvax.de; bh=kjek86vYrPs+NkbNv93MMIsstNE2pyNvC9L+nUziJl4=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:Message-Id:In-Reply-To: References:Reply-To:Mime-Version:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=mEjIZ8P2AMDu/2LnflzhaoRvg+Ru3HifDgGRKQctSwvTpx/t8XkZUp6iDYvcV9TU DZpKA5B+2KVfFDSmdT9CrJ5avuk4Z6okzPnAiqy3qbc7o8YZc5pKLfpKBpmKJHrZs 0sG4+2xSB8trKN4BeWh0zbKOX78nLPXGH9WubsaASD/JMtXf1h859ITafI2WUNB7V mgLcrf64fCkD+izvb0n+mbwqTh6YDq7iFva99ErveHj7j+a27qzDJcokoj0nF5hCx f86HI566aLEE9Qkkg4j6xlth5+GIIHud1/F3C73PQmx49KggDP1Onp6AFM5YqFLXI k8kbNxdY4TU9Aoz79Q== X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from terra.edvax.de ([178.12.33.34]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MfqGN-1sYcY20Pg9-00gDiW; Wed, 01 May 2024 07:43:59 +0200 Received: from r56.edvax.de (r56 [10.200.1.11]) (authenticated bits=0) by terra.edvax.de (8.17.1/8.17.1) with ESMTPA id 4415htcX048380; Wed, 1 May 2024 07:43:55 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 1 May 2024 07:43:49 +0200 From: Polytropon To: Steven Friedrich Cc: FreeBSD Questions Subject: Re: Missing magic in i915kms.ko? Message-Id: <20240501074349.a081a958.freebsd@edvax.de> In-Reply-To: <76b7f66a-f6b9-4a79-825f-cec3c808a73c@gmail.com> References: <76b7f66a-f6b9-4a79-825f-cec3c808a73c@gmail.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:2Tqx4HT4xpVJu6zmNkErGBbY1eBSeCzyd5q7sLVyfTOwO0kdMm5 1+VQZHgEt1c/SI4gmRNg9ub8C+JTKJ74NNVgVYvHz0nzabFPAevz98YVmARxJIchT6JFItZ 7RD4JbD+S2Dr2C3OfVDBKSgKRKDQ/+y3yN4JFJ+Zt6Y/XWkEMuynUp8mWAnir6B19TC1KVT y44kjelDNXRXT1Dm7Ei2g== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:euqUoUA28ck=;z2y4PttiAaOCOS3sIgFWrEt0Fhz dy+/crL5SYTe6V1DqWmFaPmVgQe1qju712JC48dya31Mu87L1YyruGz/XH5qJpQn85oxNnuK5 sd0bM2Qf9zIAvBLpcEM3DBGPo9kUzhXANtcNyCncFbhj3fylKjvpnbFWOflporWAHV3fLoLux rVMLshQP4DvolIXr/0SfDugWa3xwWVagPnvUw5bsdLBUkwz+VcjRq16WkTq9pQDb8lS5LNdIb E0W+JKJSAlJ/Y5K3ZARHk7mrR816ydaE5Ms4M9hOkkq+BpxTCXBt4vqpicrUbZazFEJ4hPif7 g2zVFH+p/N4CkqTdt7IzaLn+tnOtUmWdFghBLbOK1nj34NdUdHHnqcf260iXkBsxF0X2X7tuf My693xZj40Jv+OGyGbRv4k41oF4EAbKZpCCnYyQjn8T+X0gDUTmyhm3Vf1HIxN2KeZnrgziIe MxOd+Xzj8RnSSOsEjxSyohkHnQdhxGWnvd02TYSReuiHFEW+rhIphYfHzHLLkIljKbjrbl2QI JAUuwLZDF29EYoCYwRG0tFKMnekw4a7+0wo+ZPfNsdZhblDVJWSoIL3GJsl/LcG1+F/fpwATI +CtRVM5nhAylM3mn5mRsc3QgFhJyUe8FIZNc+163eo9DIcW+XSfgfl3VrNV1CACcsvpScNEfJ Ic0sOSodUYAykIUaugVr9moqp9inwh29nytwjT8tCuIRroYYSKcHz93e82FrODTRwmgnyVIQR 2lWzxuYPCZlxAZX1bwhXigwmP859nLSBJGD4+wCYEhxGqjgfB75cMc= X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Queue-Id: 4VTmGB3ztcz4JLR On Tue, 30 Apr 2024 12:49:16 -0400, Steven Friedrich wrote: > I can use beep -d /dev/dsp0 or /dev/dsp1 and hear a sound at the rear or= =20 > fron audio jacks. >=20 > If I send the beep to /dev/dsp2, I hear nothing. >=20 > I believe there is missing magic in i915kms.ko that routes audio from=20 > the video driver to the audio driver. Don't confuse this audio with "normal" audio - this is the console beep or flash, here specifically a NCurses thing; see "man beep" for details. The console beep is definitely not a good test for if audio works. > Or perhaps I need a hint in=20 > /boot/loader.conf or /boot/device.hints? Possible. In /boot/loader.conf, you can set hw.snd.default_unit=3D"1" depending on your available outputs (several analog possible, but also digital like HDMI audio). > I am using the snd_hda.ko driver in FreeBSD-14p6. That is correct. Check if it's working by $ cat /dev/sndstat The following is IMPORTANT for testing: Also make sure you have a simple but reliable (!) test setup. Use some MP3 file and install something simple like madplay. Use $ madplay testfile.mp3 to check audio output. Also mind the mixers. Check them with $ mixer -f /dev/mixer0 and $ mixer -f /dev/mixer1 $ mixer -f /dev/mixer2 $ mixer -f /dev/mixer3 and so on, if you have them. See "man mixer" for details. > I also have linuxkpi_hdmi.ko in kldstat. Is that something Linux-specific? > I can't find man pages describing these components.=A0 There are man page= s=20 > for drm and drm-kms, but they don't contain magic, like loader settings=20 > or device hints. With $ sysctl -aod | grep "snd" you can get some information related to sound. Otherwise, see the manpage for your audio driver which contains all the tunables it has. Also see "man pcm", it contains a lot of those. > I haven't been able to get sound from FreeBSD on this system for years.= =A0=20 > Linux Mint, KDE Neon, and Ubuntu 24.04=A0 DO deliver sound to the hdmi/dp= =20 > port. If you're using HDMI, make sure that it is set as the default unit (see above), or otherwise you will only get audio through the speakers or 3.5mm connectors (whatever your system provides). Why do I know? Because I "recently discovered" this fact on a HP mini laptop... ;-) --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...