From nobody Mon Jul 1 07:46:04 2024 X-Original-To: freebsd-stable@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 4WCJ4v1BJSz5PmpB for ; Mon, 01 Jul 2024 07:46:07 +0000 (UTC) (envelope-from sthaug@nethelp.no) Received: from bizet.nethelp.no (bizet.nethelp.no [195.1.209.4]) by mx1.freebsd.org (Postfix) with ESMTP id 4WCJ4t66xtz4txt for ; Mon, 1 Jul 2024 07:46:06 +0000 (UTC) (envelope-from sthaug@nethelp.no) Authentication-Results: mx1.freebsd.org; none Received: from localhost (bizet.nethelp.no [195.1.209.4]) by bizet.nethelp.no (Postfix) with ESMTP id 6374E646B0A; Mon, 1 Jul 2024 09:46:04 +0200 (CEST) Date: Mon, 01 Jul 2024 09:46:04 +0200 (CEST) Message-Id: <20240701.094604.2129872793923031185.sthaug@nethelp.no> To: freebsd@oldach.net Cc: freebsd-stable@freebsd.org Subject: Re: BIND 9.19.24 not listening to rndc port (953) From: sthaug@nethelp.no In-Reply-To: <202406301218.45UCImcO021592@nuc.oldach.net> References: <20240630.134609.2166404118346455953.sthaug@nethelp.no> <202406301218.45UCImcO021592@nuc.oldach.net> X-Mailer: Mew version 6.9 on Emacs 29.2 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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:2116, ipnet:195.1.0.0/16, country:NO] X-Rspamd-Queue-Id: 4WCJ4t66xtz4txt >> # rndc status >> rndc: connect failed: 127.0.0.1#953: connection refused >> >> In syslog I can see among the startup messages: >> >> Jun 30 12:53:31 nlab0 named[31772]: couldn't add command channel 127.0.0.1#953: permission denied >> Jun 30 12:53:31 nlab0 named[31772]: couldn't add command channel ::1#953: permission denied > > Potentially a change in 9.19's port binding logic triggering by mac_portacl(4)? > > https://forums.freebsd.org/threads/named-could-not-listen-on-udp-socket-permission-denied.11196/ > > Does it help adding 953 to security.mac.portacl.rules=uid:53:tcp:53,uid:53:udp:53? Well, I don't use mac_portacl at all on this host, and there is no sysctl OID security.mac.portacl.rules: # sysctl security.mac.portacl.rules sysctl: unknown oid 'security.mac.portacl.rules' I could probably *make* it work with mac_portacl - however, I would much prefer to get a solution which doesn't need special kernel config etc. Steinar Haug, AS2116 From nobody Mon Jul 1 09:49:38 2024 X-Original-To: freebsd-stable@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 4WCLqg4kLGz5PwYh for ; Mon, 01 Jul 2024 09:49:51 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx-01.divo.sbone.de (mx-01.divo.sbone.de [IPv6:2003:a:140a:2200:6:594:fffe:19]) (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 ECDSA (P-256) client-digest SHA256) (Client CN "mx-01.divo.sbone.de", Issuer "E5" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WCLqg2WlFz486W for ; Mon, 1 Jul 2024 09:49:51 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; none Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mx-01.divo.sbone.de (Postfix) with ESMTPS id 30C56A64805; Mon, 01 Jul 2024 09:49:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zabbadoz.net; s=20240622; t=1719827382; bh=rZQBb1Heer4xLuxChHbQOrEtk1wOcY9bAEg8udkuC04=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=YxQVZN1iYZseZ2ephf5ulsh0sBU3WulE9OIdzQqYUUHLJPftVFpTVfvyJI+T1JDFR QuAtWH+wY5IFGKr3F3lBZrt1WrTYHcMeEJ1iGo+uTa6HsM9+sT0cdG6YgekWvg89LL UmYkWqxdJgdORTlTG+d7KbLuZU+FR9p36SubOO42xdXpDApxwdiVRmt7SqKCDf8qOi N2vKu++CzPyPeoR8aLqd9Bnjt84C42q7/try84f4/6N7HvOzw2Zb2KF3euc7vYVQSw hxoooBn7uIRODL34CHJYvPFyMR/cFT5oUs9YLVd3jcl7uhI/0mBWbWU+GqgECyRdHV khe6AHVES7mjJtyv5B36rODGjP4msgdGPPwNaMaKK9mONqYWMxWH4AiK4iniXPYM6B RfAae9bxRgK3LGyUiYY3Ta7m9AUtHj31bQrAEVHoULJ5fXvNafCs+cclQFP9E7ng6e 7uiskijxcO3vdCKLlS0k0Nt6FBBiPj0CO+Zm8WUF8YUeZtYtQQeDQS33Ly1cdqsMT4 fM4PDtEUsO8KDyNOYLY7uGPY/0/zyUi0PAdmfIpXTAacxkUCBhxAmFVOEyVkb7o/Ho 7jK6PH6HEUhTMrmVlcdyon099UhZPSTNgu19/VsMm6FOyNoOG0J+Q5KGKWImO6/uPK JZk94/52clxF5o0ydyzjN6Ck= Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 446CC2D029D8; Mon, 1 Jul 2024 09:49:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id xny8togKOfQQ; Mon, 1 Jul 2024 09:49:40 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id B40662D029D2; Mon, 1 Jul 2024 09:49:40 +0000 (UTC) Date: Mon, 1 Jul 2024 09:49:38 +0000 (UTC) From: "Bjoern A. Zeeb" To: sthaug@nethelp.no cc: freebsd-stable@freebsd.org Subject: Re: BIND 9.19.24 not listening to rndc port (953) In-Reply-To: <20240630.134609.2166404118346455953.sthaug@nethelp.no> Message-ID: <38321p06-q966-p811-oqpq-q679qpo9pp31@yvfgf.mnoonqbm.arg> References: <20240630.134609.2166404118346455953.sthaug@nethelp.no> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed 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:3320, ipnet:2003::/19, country:DE] X-Rspamd-Queue-Id: 4WCLqg2WlFz486W On Sun, 30 Jun 2024, sthaug@nethelp.no wrote: > Short description: Fresh install of bind9-devel-9.19.24_1 doesn't > listen to localhost port 953, with the result that rndc doesn't work. > Problem is 100% reproducible. > > Environment: > > - FreeBSD 13.3-STABLE #n257580 > - BIND 9.19.24 installed using "pkg install bind9-devel-9.19.24_1" > - Default (directly from the package) named.conf, no changes > - rc.conf has named_enable="YES" added > - named started using service named start > > If I then try to use rndc, it doesn't work: > > # rndc status > rndc: connect failed: 127.0.0.1#953: connection refused > > In syslog I can see among the startup messages: > > Jun 30 12:53:31 nlab0 named[31772]: couldn't add command channel 127.0.0.1#953: permission denied > Jun 30 12:53:31 nlab0 named[31772]: couldn't add command channel ::1#953: permission denied my first guess was something returns 1 and that is leaked to user space as errno but reading on ... > which explains the rndc error message - but doesn't explain *why* > this happens. > > Other info: > > - BIND 9.18.24 on the same host works perfectly, with no rndc issues. > - BIND 9.19.24 on the same host also works *if I change it to run as > root* (by default it runs as user bind). The syslog messages are gone, > and rndc works as expected. That sounds like they try to open the priv port after they changed users rather than before. If you (as root) temporary chnage sysctl net.inet.ip.portrange.reservedhigh=952 does it work then (as user bind)? (don't forget to set it back after the experiment) A ktrace might reveal more but I'd likely go to bind people and ask. Seems like more chances. > Speculation: 9.19.24 Release notes, under Feature changes, lists: > > Multiple RNDC messages are now processed when sent in a single TCP message. > > So maybe a bug introduced in connection with this feature change? > > Steinar Haug, AS2116 > > -- Bjoern A. Zeeb r15:7 From nobody Mon Jul 1 10:52:46 2024 X-Original-To: freebsd-stable@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 4WCNDL411mz5QDNQ for ; Mon, 01 Jul 2024 10:52:50 +0000 (UTC) (envelope-from sthaug@nethelp.no) Received: from bizet.nethelp.no (bizet.nethelp.no [195.1.209.4]) by mx1.freebsd.org (Postfix) with ESMTP id 4WCNDL0JHqz4MJH for ; Mon, 1 Jul 2024 10:52:49 +0000 (UTC) (envelope-from sthaug@nethelp.no) Authentication-Results: mx1.freebsd.org; none Received: from localhost (bizet.nethelp.no [195.1.209.4]) by bizet.nethelp.no (Postfix) with ESMTP id 18B36646B02; Mon, 1 Jul 2024 12:52:47 +0200 (CEST) Date: Mon, 01 Jul 2024 12:52:46 +0200 (CEST) Message-Id: <20240701.125246.573156563037901466.sthaug@nethelp.no> To: bzeeb-lists@lists.zabbadoz.net Cc: freebsd-stable@freebsd.org Subject: Re: BIND 9.19.24 not listening to rndc port (953) From: sthaug@nethelp.no In-Reply-To: <38321p06-q966-p811-oqpq-q679qpo9pp31@yvfgf.mnoonqbm.arg> References: <20240630.134609.2166404118346455953.sthaug@nethelp.no> <38321p06-q966-p811-oqpq-q679qpo9pp31@yvfgf.mnoonqbm.arg> X-Mailer: Mew version 6.9 on Emacs 29.2 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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:2116, ipnet:195.1.0.0/16, country:NO] X-Rspamd-Queue-Id: 4WCNDL0JHqz4MJH > If you (as root) temporary chnage > sysctl net.inet.ip.portrange.reservedhigh=952 > does it work then (as user bind)? Yes! Steinar Haug, AS2116 From nobody Mon Jul 1 16:18:05 2024 X-Original-To: freebsd-stable@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 4WCWRf5McMz5PLJd for ; Mon, 01 Jul 2024 16:18:06 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WCWRf4rhwz4Jf3; Mon, 1 Jul 2024 16:18:06 +0000 (UTC) (envelope-from leres@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719850686; 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: in-reply-to:in-reply-to:references:references; bh=OgasxtOKyfgk81UStquKViIUYv+lBJeppgoF3UnXUXk=; b=rVmvAKv+cuRo4TjuFjfbebTGtzu6yGBZjHAvjIFkMKUpGnSvSIuEbtaNqqn3zTu153jWA+ yUZzJScikLASyRetXKAGwE+Kp/6yFJ/ilBdOLGDQVvokHNno5CW2z0PGrk73B4kqnT1i3l QRcRknLY3br34e1JGa0wZFajV63hD1sRcZQGY1VFA9p/ii5PU/73DGz02poIPDjYN3nOHE z5m0Lmpvtu4tCE07n9D+k+CseHEqIOm5OgACnSzd57GBuxfd4Rt+S+QLcRrsFMn43ns1Da l/pHrpBzLpOjym0M2hUjf66yDDABzdjOM51pfJqJSUg7Qay/9LNzFdr+Ct5Q/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719850686; a=rsa-sha256; cv=none; b=U2Oy3rDtMGfTYgkJ2MevXzwAEwIK5BzvNuTghsOeXpFI0S4r9zhRNqbLJlP/nAvidnns5T Ml3dMaMBd3mQ2TT+gDRG3XyLDazgCWmdGza+ic1t0tRHAXeYSfLG0Y1bb3PSnluDzb3cZO 2EJu+6iaXtNrOBhhQkeecIUux7Rf3HJ6xtRRMWrW9FSOuKLNd44jiwnTrs78fx3dksrRvM 2Je0RCWxsy9Zee0+07238xtRqCTBV0Dm5MsA8Rs92T9udtvg+E/N8yaCWKlNCpvhAGvJgG qAAfTANGrFoHUS55a79lw6iB/lugNl8O40qT//TDr2WTvN0CEE56ACpSUEHE/A== 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=1719850686; 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: in-reply-to:in-reply-to:references:references; bh=OgasxtOKyfgk81UStquKViIUYv+lBJeppgoF3UnXUXk=; b=JSlEe2Lwq9NnbWoNCQ9WJSZJ4eTySyAIoqhAUOnQbc1z8+jBBSoU3j8BvOl/1HIZ8yBSSe vbMxGjGaCw2IfzNxqok2AzFGW7tG3dYy2K1TLIDV/cul+RsVCZm8dqgmB93rIxRb5uPYyY vDLokUtIQaFxpBH8CoLM4HXse3GzVfmSlNKpUXE7SZ04VbZ0/rzSzr7oBc3sWQCSYJNi4z Ubr4opx+U7H5Tm8+NQfGHqiZmUP1j7lMAuR/ZpZjQ79ldjEE8EXtch6Xwp0VyYInVAEcTd 6ous7dIFq290nWO7KsECexRaU4s6MjGajz8BByA4kZtPEiEiL3YjG/DNgagReQ== Received: from [IPV6:fd:1965::2] (unknown [IPv6:2600:1700:ab1b:6800:2e0:edff:fece:8f27]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: leres) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WCWRf2q0lzQnQ; Mon, 1 Jul 2024 16:18:06 +0000 (UTC) (envelope-from leres@freebsd.org) Message-ID: <3ace1a1c-324a-41ce-a39c-676ef830a5e0@freebsd.org> Date: Mon, 1 Jul 2024 09:18:05 -0700 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: BIND 9.19.24 not listening to rndc port (953) To: sthaug@nethelp.no, freebsd-stable@freebsd.org References: <20240630.134609.2166404118346455953.sthaug@nethelp.no> From: Craig Leres Content-Language: en-US In-Reply-To: <20240630.134609.2166404118346455953.sthaug@nethelp.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/30/24 04:46, sthaug@nethelp.no wrote: > Short description: Fresh install of bind9-devel-9.19.24_1 doesn't > listen to localhost port 953, with the result that rndc doesn't work. > Problem is 100% reproducible. bind-tools-9.18.27_1 with 14.1-RELEASE-p1 suffers from this as well. Craig From nobody Mon Jul 1 17:17:32 2024 X-Original-To: freebsd-stable@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 4WCXmZ0PL9z5Q4Gb for ; Mon, 01 Jul 2024 17:17:50 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WCXmY4kS1z4SnZ for ; Mon, 1 Jul 2024 17:17:49 +0000 (UTC) (envelope-from bakul@iitbombay.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-24c9f6338a4so1743245fac.1 for ; Mon, 01 Jul 2024 10:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20230601.gappssmtp.com; s=20230601; t=1719854265; x=1720459065; darn=freebsd.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=CDoiUA93XtA3Ah3VLI6yRtli3XJZMiARupjYtA6Ln1M=; b=YLalITxkURh8jSLBhJEhlTiGjQXuKUKqIvdDP0g9Qy1Bm1QDEdNGoCwO7oNustXUCS WNEQtiGwEkxm0aj70e3SlCNA1pbAi7o8dw9JOFVr1T0zR6mzmyxxPcDGvJxSAW0cVppn AIYLeyXy8i9YFj92CC1K4xgyf+dm1A744nXUxzxENOCIF5FWWWVpdWFtBfl7ipKxUKl1 TUll/ZyLLtquHpVKegBCG/OqBsNsqmfpzSo7ZOpskNey98HuGNpdQP0M+HTIQi/j7la7 tjXiMn4UtIc5L7g0YOepaJpUjmLu8FThtbwkesL/WwQawZ2yNGbH2BLjuMr6iTXjaDeM oUDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719854265; x=1720459065; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CDoiUA93XtA3Ah3VLI6yRtli3XJZMiARupjYtA6Ln1M=; b=iRvcfoztiqXJjhcHIH5E/cVvsqnqjt5fqrLKUTM8O7mNSh2XxD4q0rCsQwqiM6m4jy 7WKM3R7Z912Jwf1AuEJi34hswRjmUajlJDIJo6aoBOmqTlXNP7tY5NggO9XQWw+2GGkr s+Iit4sw/pEV67owNo8TyTtc5qUgYsovaMIMbG5aJEkkdvs/+eXHlvvQPuRgF635tU22 orTEt68D96cOFhCE/si68MZ6BQf9FAd8UzODr5B7ccvgY1X7LTPNPRbJuDyB14cPH3QS Md7DUP11oFqpwwCBc3ChNtpip7VZJBpCK4dhIkCmYJJcMj0Cy/RmFFC8ziU079sTc7Eb F0tA== X-Forwarded-Encrypted: i=1; AJvYcCXIB3zC4Ng9BIgyiM2XiB6dGxCKi8GW95zzC8yFAzTncljX/laRKIbX6HS65mnlUtTWy2QUjybRQZCAnAXo8MbQPbUSIeIsmpp+MQ== X-Gm-Message-State: AOJu0YwrQptjy99UVbcReeLMLc5Lwr1u+ooBd5yCFiZb8EpK2mg84J3r aJGL+8PsdmVG13Yw7nZKk1wrQdGLlv2Y62E11cbQpFq/iWJ+jDtmvLzj0Pdd3ffob7AWbjNjZN8 = X-Google-Smtp-Source: AGHT+IGEt9XsiDkY1q3tXE/rdgT9LLyPZ1oGOEr2MJRB7t1wacR6IHvnqor4iYvPlFvjhqjrZVAdew== X-Received: by 2002:a05:6870:a711:b0:254:7211:424b with SMTP id 586e51a60fabf-25db340dcd8mr6097206fac.6.1719854264666; Mon, 01 Jul 2024 10:17:44 -0700 (PDT) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70804a7e7e0sm6766156b3a.204.2024.07.01.10.17.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jul 2024 10:17:44 -0700 (PDT) Content-Type: text/plain; charset=utf-8 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: BIND 9.19.24 not listening to rndc port (953) From: Bakul Shah In-Reply-To: <3ace1a1c-324a-41ce-a39c-676ef830a5e0@freebsd.org> Date: Mon, 1 Jul 2024 10:17:32 -0700 Cc: sthaug@nethelp.no, freebsd-stable@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20240630.134609.2166404118346455953.sthaug@nethelp.no> <3ace1a1c-324a-41ce-a39c-676ef830a5e0@freebsd.org> To: Craig Leres X-Mailer: Apple Mail (2.3774.600.62) 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:15169, ipnet:2001:4860:4864::/48, country:US] X-Rspamd-Queue-Id: 4WCXmY4kS1z4SnZ On Jul 1, 2024, at 9:18=E2=80=AFAM, Craig Leres = wrote: >=20 > On 6/30/24 04:46, sthaug@nethelp.no wrote: >> Short description: Fresh install of bind9-devel-9.19.24_1 doesn't >> listen to localhost port 953, with the result that rndc doesn't work. >> Problem is 100% reproducible. >=20 > bind-tools-9.18.27_1 with 14.1-RELEASE-p1 suffers from this as well. I was ignoring this until now but finally chased it down! I had to add inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; }; to "controls { ... }" in /etc/named.conf From nobody Mon Jul 1 17:49:49 2024 X-Original-To: freebsd-stable@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 4WCYTc0VKZz5Q9sZ for ; Mon, 01 Jul 2024 17:49:56 +0000 (UTC) (envelope-from pi@freebsd.org) Received: from fc.opsec.eu (fc.opsec.eu [IPv6:2001:14f8:200:4::4]) by mx1.freebsd.org (Postfix) with ESMTP id 4WCYTb4CRSz4YZh for ; Mon, 1 Jul 2024 17:49:55 +0000 (UTC) (envelope-from pi@freebsd.org) Authentication-Results: mx1.freebsd.org; none Received: from pi (uid 104) (envelope-from pi@freebsd.org) id 591d7 by fc.opsec.eu (DragonFly Mail Agent v0.13+ on fc.opsec.eu); Mon, 01 Jul 2024 19:49:49 +0200 Date: Mon, 1 Jul 2024 19:49:49 +0200 From: Kurt Jaeger To: Craig Leres Cc: sthaug@nethelp.no, freebsd-stable@freebsd.org Subject: Re: BIND 9.19.24 not listening to rndc port (953) Message-ID: References: <20240630.134609.2166404118346455953.sthaug@nethelp.no> <3ace1a1c-324a-41ce-a39c-676ef830a5e0@freebsd.org> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ace1a1c-324a-41ce-a39c-676ef830a5e0@freebsd.org> 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:12502, ipnet:2001:14f8::/32, country:DE] X-Rspamd-Queue-Id: 4WCYTb4CRSz4YZh Hi! > On 6/30/24 04:46, sthaug@nethelp.no wrote: > > Short description: Fresh install of bind9-devel-9.19.24_1 doesn't > > listen to localhost port 953, with the result that rndc doesn't work. > > Problem is 100% reproducible. > > bind-tools-9.18.27_1 with 14.1-RELEASE-p1 suffers from this as well. It does not, if one has the necessary config as described by Bakul. We had that config already (a few years), and we already upgraded to 14.1 and 9.18.27 on one of our nameservers, but were not affected. -- pi@FreeBSD.org +49 171 3101372 Now what ? From nobody Mon Jul 1 18:00:21 2024 X-Original-To: freebsd-stable@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 4WCYjg1h3hz5QCf1 for ; Mon, 01 Jul 2024 18:00:23 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WCYjg0m1Yz4bcQ; Mon, 1 Jul 2024 18:00:23 +0000 (UTC) (envelope-from leres@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719856823; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5aLMrmHSsOx4PLYnpOT4NdanfpYBREbQjR+ifdQH294=; b=TF+bNPZF8SEccUJbdUb4a7p4cMViQJ3PCwIBheJzE5V6e0icxqDAoT7VAFmzF69UmWASq6 b+yiB/VYJTTDs1anhzhL6A6i3uLeZxt5kvkXFXwhpNt8GB/uuqe7N6OVKKkAzk8AfHxbxI Idxxlcz8NKne6UhOk2NYeWoNnzdbd/Pt9xreo8RYLjQZ5tSriDflT7TyckvvAYSyj0u+bV daClND6nW0FD5aPDJrYumoPTgvpKWdayRFNQ7GISZPnWKH4K3Yyi4qXUYkqV6FBYgBkkRm qDJgcabhtdbS9ubigl+BD0+mAsP+303NkftN0eG+raJp2SoMG37H01ZCQOV1HQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719856823; a=rsa-sha256; cv=none; b=CgffCE9H4Eextn0eS1/7Hl1rwDJsiQ4JKkmOBA28WkFx5RPuNQJ4zIDYRVjCiHnTLwpaK2 kj6WhLPfhg/8jnr3HV5p0Kg07QVBzCbRR6tTCLw348BrLGZykfocYXY4N2Xf5a7kbmV997 V6QVhyvcj+fzeKFor7DP9nFYA32/rpVtmU79IYBo7oSUm6kSmD7m84Lx71QY+7kqiimJz4 D00HY1wRIV3n1EmfmiXj0ulUHiHKq6051OYMYllMKqLAmDz5V7iSSB+A2dVN1+B6k1Jwvv CCPAZpkemT4Epe+KwuodcMcO9XCF7e1z1ZH+zSMfg2rvt+Uf/J5TgiqVVUqCjQ== 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=1719856823; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5aLMrmHSsOx4PLYnpOT4NdanfpYBREbQjR+ifdQH294=; b=dHNj2p8zH5OlrujJtveOa8L9J5ShPwbLf3rGFiJXbQDXyNcq4A5eLbPcy9WimPrGb0pZ1f r3IpdV7zBpMenwVfQ07O+TwZgwbOn7MulfSeqDHVtONPOhYU5RoNvB9JQjSOw2oUVmtmuk sb33Ro2hMkJ4xW8mC9/v7C282XtVr80kE+U2c+oF0yumSn86jCAP//it+LkPS1IyCp1hH0 fMJm5U9jRq8edozfeBc7eKY5VndeeI22yCu3U0iMpvKUm4NA7d3GWjQ4wA0FQSAKVWKAPM rod7+MSc0fNQN48g/KKHsAejj0635wxdWH/6YAvnb4dP0jwqIv7gK2YnZew/xg== Received: from [IPV6:fd:1965::2] (unknown [IPv6:2600:1700:ab1b:6800:2e0:edff:fece:8f27]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: leres) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WCYjf5G3gzSRg; Mon, 1 Jul 2024 18:00:22 +0000 (UTC) (envelope-from leres@freebsd.org) Message-ID: <57b84b90-5f95-475b-9f45-ecff2b4adf05@freebsd.org> Date: Mon, 1 Jul 2024 11:00:21 -0700 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: BIND 9.19.24 not listening to rndc port (953) To: Bakul Shah Cc: sthaug@nethelp.no, freebsd-stable@freebsd.org References: <20240630.134609.2166404118346455953.sthaug@nethelp.no> <3ace1a1c-324a-41ce-a39c-676ef830a5e0@freebsd.org> From: Craig Leres Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 7/1/24 10:17, Bakul Shah wrote: > On Jul 1, 2024, at 9:18 AM, Craig Leres wrote: >> >> On 6/30/24 04:46, sthaug@nethelp.no wrote: >>> Short description: Fresh install of bind9-devel-9.19.24_1 doesn't >>> listen to localhost port 953, with the result that rndc doesn't work. >>> Problem is 100% reproducible. >> >> bind-tools-9.18.27_1 with 14.1-RELEASE-p1 suffers from this as well. > > I was ignoring this until now but finally chased it down! I had to add > > inet 127.0.0.1 port 953 > allow { 127.0.0.1; } keys { "rndc-key"; }; > > to "controls { ... }" in /etc/named.conf Ah... I already had that but I see now that the problem is due to the 14.1 issue I reported (see "FreeBSD 14.x localhost source address" on the freebsd-stable list). > For 14.1 at least, this has the side effect that the source address > for anything in the 127.0.0.0/8 domain becomes 127.0.0.2 instead > of 127.0.0.1. So I changed named.conf and now it works! --- named.conf (revision 72) +++ named.conf (working copy) @@ -141,7 +141,7 @@ controls { inet 127.0.0.1 port 953 - allow { 127.0.0.1; } keys { "rndc-key"; }; + allow { 127.0.0.0/8; } keys { "rndc-key"; }; }; Looks like I need to create a PR for this issue. Craig From nobody Mon Jul 1 22:53:16 2024 X-Original-To: freebsd-stable@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 4WChCt1s3Rz5QNMM for ; Mon, 01 Jul 2024 22:53:30 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WChCs3jnmz4GZF for ; Mon, 1 Jul 2024 22:53:29 +0000 (UTC) (envelope-from mike@jellydonut.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=jellydonut.org header.s=google header.b=V5yGN6gy; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@jellydonut.org designates 2a00:1450:4864:20::52f as permitted sender) smtp.mailfrom=mike@jellydonut.org Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-58b0beaf703so558808a12.2 for ; Mon, 01 Jul 2024 15:53:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jellydonut.org; s=google; t=1719874408; x=1720479208; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=haBTbLqGZ57SqDZTi0XioS5/wT6m8WDXEpTUu/dhWoA=; b=V5yGN6gy9GOpeevzHZwcN+hSDdC22PWD+Ggrdu+iSMiDBRcH5cySlh1jmyGbg39lz7 K93RTgtFFuhywcNd9r4OEp465dkgk9aDQlHVzSZxUkq1DPRfHdSmRBz05xvgVbO78l+G 2nuRTRauAKIzAHT21RUktXdL7Mi/BXhO3+qWs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719874408; x=1720479208; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=haBTbLqGZ57SqDZTi0XioS5/wT6m8WDXEpTUu/dhWoA=; b=Q5pjOVmCPkuv/h3aNCKyEAo0p7taZNDy1MUGOWlafaJ6H6owgcSwY5Wp4yA+df2fhI MHUMqdabBYkifCbwtZkYzA1arqVfqNkYOe9i1fK/L9haw3nMiYAtUNWVy/OHkKIIMndX YdiP8OHYNeiErIJkzJOdv5SakSYpyUdBchlQkuor3H4B93L+VCvaXu4uneYMdeKJipaV pmNvyNY+1ZIPHcxbtJqLfa2n182PrnwjXyRju6tRMDAGC07KuclypeZS/3wWDqNt/x2O WtxbTo08m0lK43KnfZG1/NFVmHb3VLzGSSCdv49G0jIEHBFHPv++BlfIyaeYxatP2IFv S+vg== X-Gm-Message-State: AOJu0YxfIyLuZHbnDkRZNH3j11gb0HRtJ9N9GZ7jjDPeT5E6O4K+lQ1J hASNVBXVHZExqF75rIxXj0qP8tEnOhEYUAIE4UtxEWOowVQ8YEAECUQoSKdo0LEutFPnhB152FG zX2ywhkDUbV2NnFUzGPbk+eW05tnENovpuoVU X-Google-Smtp-Source: AGHT+IF0uO2UWWTSF2elnUOaeaFf+E4ZQWE3a3O5Pw5Fd9GQuCoKNvEHSrCqihSk3uIhB2c7K6BHMLBwsGV5WaWO/fE= X-Received: by 2002:a05:6402:2786:b0:582:7e6d:6816 with SMTP id 4fb4d7f45d1cf-5879f0c6348mr5122790a12.8.1719874407739; Mon, 01 Jul 2024 15:53:27 -0700 (PDT) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 References: <086405e2-8fc2-4463-b8bb-d6c652745ae1@freebsd.org> In-Reply-To: <086405e2-8fc2-4463-b8bb-d6c652745ae1@freebsd.org> From: Michael Proto Date: Mon, 1 Jul 2024 18:53:16 -0400 Message-ID: Subject: Re: FreeBSD 14.x localhost source address To: Craig Leres Cc: freebsd-stable@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_DKIM_ALLOW(-0.20)[jellydonut.org:s=google]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; FREEFALL_USER(0.00)[mike]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[jellydonut.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52f:from]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[jellydonut.org:+] X-Rspamd-Queue-Id: 4WChCs3jnmz4GZF On Sat, Jun 29, 2024 at 8:17=E2=80=AFPM Craig Leres wro= te: > > When I upgraded ~10 systems from 13.3 to 14.1 recently, 90%+ of my > breakage was due to the localhost source address changing from 127.0.0.1 > to 127.0.0.2. This was on two of my systems. > > My lo0 config is standard: > > mote 20 % ifconfig lo0 > lo0: flags=3D1008049 metric = 0 > mtu 16384 > options=3D680003 > inet 127.0.0.1 netmask 0xff000000 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > groups: lo > nd6 options=3D21 > > What's different on the two problematic systems is that they are > authoritative nameservers. Following best practices, I use the (bind) > server for authoritative queries and unbound for recursive resolver > duties. The way I did this was to configure unbound to listen on > 127.0.0.2 and then change /etc/resolv.conf to use "nameserver > 127.0.0.2". (Which reminds me of another 14.X breakage -- unbound is no > longer able to provide me with authoritative sshfp records!) > > For 14.1 at least, this has the side effect that the source address for > anything in the 127.0.0.0/8 domain becomes 127.0.0.2 instead of 127.0.0.1= . > > Given a host that has unbound listening on 127.0.0.2: > > mote 133 # lsof -np `cat /usr/local/etc/unbound/unbound.pid` | > fgrep domain > unbound 39496 unbound 3u IPv4 0xfffff8001ee56000 0 > UDP 127.0.0.2:domain->*:* > unbound 39496 unbound 4u IPv4 0xfffff80037c2ea80 0 > TCP 127.0.0.2:domain->*:* (LISTEN) > > you can see this with the iperf3 port. Start the server side with: > > iperf3 -s 127.0.0.1 > > and connect using: > > iperf3 -c 127.0.0.1 > > The server session will report: > > Accepted connection from 127.0.0.2, port 37306 > > I believe my configuration is far enough off the well-traveled path that > I'm the first to notice this. But there are definitely some programs > (e.g. sendmail/opendkim which appears to sign messages from 127.0.0.1 > but not from 127.0.0.2!) that are hardwired to know about 127.0.0.1 and > deal with it specially/differently... > > Craig > What netmask are you using for 127.0.0.2? I'd treat it as I would an IP alias (only on localhost) with a /32 netmask, should keep it isolated. Just tried it myself on a test box and iperf works as expected, using 127.0.0.1 as the source when connecting. -Proto From nobody Mon Jul 1 23:04:55 2024 X-Original-To: freebsd-stable@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 4WChT46HLwz5QPst for ; Mon, 01 Jul 2024 23:04:56 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WChT45cjGz4JMZ; Mon, 1 Jul 2024 23:04:56 +0000 (UTC) (envelope-from leres@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719875096; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tbYo+/OF+ikePQEUws/Ut8Xr0+CNUfxyXOsV5Xol6xc=; b=QUp+2FoN+fG5skQX2OX4Dq5aaUNMyNwqfmHTe31naSgqmAdo+xeHg9c/Z6700Mio1wHpoM CiS3yfbEmBXJiXqqJuDLHqiAGxGBZrBtGqor46W5yWLxlPUhqvueQgbLtoTYp1LNEPD4Rt gELCgxKa9U8kV1F9xzRGOD5bCy7kLdOnsklEDlF28RE11hrcTLmXYgevEkUa5mR9SEtkNP 0u1aXxmOy3bwfMA/gr26NnwN2UJt/1ZaRdlV9s8xOXxsHMIfq1b932LFT6x9k5L2ic7Lmf zrsrTUrH9sOZCPj2ConUWfLPtPFP/flg3C51R/XuLHjx6UAvfp/BqzSj7iikMw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719875096; a=rsa-sha256; cv=none; b=datRsDdTApnh0jlspOB5ZM/Qry9gs5WLWz/2fNOOukNNc9TMIuoDEKC9O8xc0Ud86HcVUt 12oqqOcqXVpWzV57uy8LqcsznavY7xFAVPz941kNyP0af/JG/K2P0QgjRwMmvt4tFguCUt l4HR3Hu3Yhu5YMOA4QqVNRRr5bXvLKY0+dG9OE5mWuup14jAUfl1QiaVNbMBTCP33RqP0F ga9QyC+6ywN+X7FhibKpvHGhUJcBRXGEKTPVWd0IqSeVee43GkKrAYrry3ACgDJxjLDAYo mzfenb3m/cxbSGOgAX6/BF5laGHAlYFp+btRmXdpMQ4UcAQ7vup0GjBGTSSjtQ== 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=1719875096; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tbYo+/OF+ikePQEUws/Ut8Xr0+CNUfxyXOsV5Xol6xc=; b=JR4sE9fLf5K0+p3qmJPP1l23QnUgDra7K24PYRrJZJyD0KPkDcMwZ4K5ezkEEcuMFQvP7+ P7grXwa3uVd5mqj8v7Tf4VilDAS8LAmXfGGOJaVjB+WfHarCnnPgn0j5PMAbZ1Au05qHBg 5CL63OtzYcHieu6c9oA+LMWModyy+UDx8BnwDTzLTmEvUVOZZ3heI2b/AQ+j5lc82ArL8/ cu3lTLRqC8OzfpM+ddo1ojMoAmEagno9cU5W+FyqOWzFm8m9YeGjTwLMm19OvJnR1WWD+a bMh3ZzRYrFSeVVKiBygGwO0DnY62R1Q42f3/tvCV9ZmCzTUE6CwIGRvvHzKW0g== Received: from [IPV6:fd:1965::2] (unknown [IPv6:2600:1700:ab1b:6800:2e0:edff:fece:8f27]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: leres) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WChT43bWVzYds; Mon, 1 Jul 2024 23:04:56 +0000 (UTC) (envelope-from leres@freebsd.org) Message-ID: <7005d0ed-70ea-4c70-ac61-2a12e023cdd7@freebsd.org> Date: Mon, 1 Jul 2024 16:04:55 -0700 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: FreeBSD 14.x localhost source address To: Michael Proto Cc: freebsd-stable@freebsd.org References: <086405e2-8fc2-4463-b8bb-d6c652745ae1@freebsd.org> From: Craig Leres Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 7/1/24 15:53, Michael Proto wrote: > What netmask are you using for 127.0.0.2? I'd treat it as I would an > IP alias (only on localhost) with a /32 netmask, should keep it > isolated. Just tried it myself on a test box and iperf works as > expected, using 127.0.0.1 as the source when connecting. I was just looking at that and I used 127.0.0.2 without an explicit mask and the system picked /24. I'm not sure why I did it that way but it's been awhile. I just got rid of lo2 and made 127.0.0.2/32 an alias on lo0 and it seems to work better all around. I guess the overlap between 127.0.0.0/8 and 127.0.0.0/24 was problematic. Craig From nobody Mon Jul 1 23:16:07 2024 X-Original-To: freebsd-stable@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 4WChkD056zz5QRlY for ; Mon, 01 Jul 2024 23:16:20 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WChkC5BcQz4LYF for ; Mon, 1 Jul 2024 23:16:19 +0000 (UTC) (envelope-from mike@jellydonut.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-57d106e69a2so1251292a12.0 for ; Mon, 01 Jul 2024 16:16:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jellydonut.org; s=google; t=1719875778; x=1720480578; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=f+qheWM2OcjBZlqdN+RayWwxRN2OWkYmvCYG2kW+So8=; b=XwtDf75Bjp6cBIRoJ9ccO3sowmOg1roz9iPSnD43yvQ9buGqYUvbDoRk97QyXWJgld Jr+CpVSsVunnP3QP1OWnldUMqUKvdCFCKKPSymE9BMdJIbsZuVVFmRUtqlXnkYJKNyuy bJRmmlgcul/qtm8UPz2c8T30rFylks5mCY9fA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719875778; x=1720480578; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f+qheWM2OcjBZlqdN+RayWwxRN2OWkYmvCYG2kW+So8=; b=N1yErACQCNoNg5ZEv/sUHrZSII99QlTUhjjAl7UhqbDGsHO5ub/SH4yUCBACPrC6xt Umpqe9JBUc8Bs0dmqSkjzeiCFrjbU8jLP4HNXqL+jBSFaYgQz5efwOghfzwcigaIZ+Ta P52dGsO1EBqY8+kcDmi/K+Yg5D0iezaOfHWadTszXtT0L6+Wg4dGhB4/nF+0g9A/3bOk 1DxFHP9AG9fjMKpf5AHXaOm2MIkoI8hC8XNCjpcfElkxnSyADGJeBDnq6SXgBt0zeXRO m/llkXoVQjtQrpGFP6gi2c8ix9IE6I74jixOvXWKKA2NpXUqGuCdyahcPQdB8ctOXPcK uEnw== X-Gm-Message-State: AOJu0Yx1tRdXsfVYk4rqWxjqJ9QTeb6NVnCK54SqNSBrFebkOzoxuvEu 4AVWHAKRO4nT4Bctl0DYyy6kIGQUBywqTErTae2HKNV0UbGNbWmO/BmhDe4TTSON+8/nEZP29SO QL+3mdMN/g5U/wVxJvX+4PiXo8q3RfiKLwWgYccX2o9LQvyE= X-Google-Smtp-Source: AGHT+IFVDaz7rJw2gVb1B4t6YHf1X9MvYxbEZTz6RmUYT184azXvZHXLDd324r5uQhGoSB/gYXZzvvwrCj5z5VGGqHA= X-Received: by 2002:aa7:c883:0:b0:57d:1595:f6fd with SMTP id 4fb4d7f45d1cf-5865da42a7fmr6754053a12.18.1719875778315; Mon, 01 Jul 2024 16:16:18 -0700 (PDT) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 References: <086405e2-8fc2-4463-b8bb-d6c652745ae1@freebsd.org> <7005d0ed-70ea-4c70-ac61-2a12e023cdd7@freebsd.org> In-Reply-To: <7005d0ed-70ea-4c70-ac61-2a12e023cdd7@freebsd.org> From: Michael Proto Date: Mon, 1 Jul 2024 19:16:07 -0400 Message-ID: Subject: Re: FreeBSD 14.x localhost source address To: Craig Leres Cc: freebsd-stable@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4WChkC5BcQz4LYF On Mon, Jul 1, 2024 at 7:04=E2=80=AFPM Craig Leres wrot= e: > > On 7/1/24 15:53, Michael Proto wrote: > > What netmask are you using for 127.0.0.2? I'd treat it as I would an > > IP alias (only on localhost) with a /32 netmask, should keep it > > isolated. Just tried it myself on a test box and iperf works as > > expected, using 127.0.0.1 as the source when connecting. > > I was just looking at that and I used 127.0.0.2 without an explicit mask > and the system picked /24. I'm not sure why I did it that way but it's > been awhile. > > I just got rid of lo2 and made 127.0.0.2/32 an alias on lo0 and it seems > to work better all around. > > I guess the overlap between 127.0.0.0/8 and 127.0.0.0/24 was problematic. > > Craig Yep, most network stacks I'm familiar with will pick the more-specific route when given two options like that, hence the use of 127.0.0.2 as the source. Glad its working now. -Proto From nobody Tue Jul 2 03:56:45 2024 X-Original-To: freebsd-stable@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 4WCpxs332Mz5P3Lp for ; Tue, 02 Jul 2024 03:56:49 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WCpxr5xJ2z4nqf for ; Tue, 2 Jul 2024 03:56:48 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=hzh5KHVQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of freebsdlouisville@gmail.com designates 2607:f8b0:4864:20::732 as permitted sender) smtp.mailfrom=freebsdlouisville@gmail.com Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-79c0bc8092dso325022185a.2 for ; Mon, 01 Jul 2024 20:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719892607; x=1720497407; darn=freebsd.org; h=content-transfer-encoding:subject:to:content-language:user-agent :mime-version:date:message-id:from:from:to:cc:subject:date :message-id:reply-to; bh=YY9skqWksPACWRj9yhP0hXVS1hG3XyBCeELm5XSr42c=; b=hzh5KHVQrpB9l/zxcGvYzvp4l2ckTb0kRVOoJVwmmx9QYSQnYHrz2vSd9/VTbKI95l gKEU2T02iJzaABXd5SxmtbwqMcuYBHrjkUlvGvekc6IW5/wsyG98t3Ij3u4MCOwVpK2Z j8cOwDdHmLWPIKERmDXbvxIAq0U9r8eweVECJzfpxALzYameOaXSvYRV+ZI5hDD3GZRS 6LUcfuG5JSQnJu3vlJ/v4KQmUgaF2dPKrMxcwYAJGTH+k34Cz/ys6DVNghc2VTkRHgbq eh4URxCKcah3fGcSNmugv2nr8L0lNMHIU9I8fGDWOPjL8+MnVhLT8Gl/mxebQFzKZSNW sGQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719892607; x=1720497407; h=content-transfer-encoding:subject:to:content-language:user-agent :mime-version:date:message-id:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YY9skqWksPACWRj9yhP0hXVS1hG3XyBCeELm5XSr42c=; b=VfoNjW/dSS57oUv9PtT6mahgnrmpR8+SfZA1/ywlKyc7FW3J/AoXOCNC7OgVowJQ6s U/93xuHiwHO2e7alBEaAjviI3621diOALkeonoaLb8qoAJlMOdVa7/WaBLVHl3Wz47/F hEroBW2ZpLq4Bgryp3Hs5oGxFtV6G05RhWzJOH0YyIY0pEVW0GuhFZlnsdBsYK2LKBL2 uhydtBa2p56MxepjOCNbTPkhgVJq/4hF8+UOzl3lN6yo/rEcO57FfHP0F9LGv+UG1qA6 DlZPp+5gSx3Jni/f09N8OKBZc19AxJrn0ZVhOPCeROi4X/SmDYbF5jta06SKqSqU0Lyd beFw== X-Gm-Message-State: AOJu0YwNt4XPKmMCHSVeaUdNTKk+BrTUjIikI786z8Uu10IAIvhr/bNx /bcHdOZI1PtdiMKSEWCIT30bMVhTpxjNjmuzTKH2fQjIb5yDzlJzUkZ8pQ== X-Google-Smtp-Source: AGHT+IF3aV8n5mQsWCILI2rov5GaxnAr9nmoBxJQywZZzMziMZDVKa8DiyEcs7cLGVb0gS5MYGAVVA== X-Received: by 2002:ae9:e407:0:b0:79d:6039:783c with SMTP id af79cd13be357-79d7ba0cca8mr834342485a.41.1719892607321; Mon, 01 Jul 2024 20:56:47 -0700 (PDT) Received: from ?IPV6:2600:1015:a032:296:f856:fed2:45e3:486e? ([2600:1015:a032:296:f856:fed2:45e3:486e]) by smtp.gmail.com with ESMTPSA id af79cd13be357-79d692f0bcasm413810985a.80.2024.07.01.20.56.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Jul 2024 20:56:46 -0700 (PDT) From: Steven Friedrich X-Google-Original-From: Steven Friedrich Message-ID: Date: Mon, 1 Jul 2024 23:56:45 -0400 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: FreeBSD-STABLE Mailing List Subject: FreeBSD Day 2024 - Colin Percival Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.48 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_SPAM_SHORT(0.51)[0.513]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[FreeBSD-stable@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::732:from] X-Rspamd-Queue-Id: 4WCpxr5xJ2z4nqf Linux routes sound from the audio driver to the video driver causing sound to come out of the HDMI cable. FreeBSD can't. This affects ALL i3, i5, i7, i9 systems. FreeBSD can't even support x11 on my GMKtec K8 with Radeon 780M graphics. Linux Mint does. From nobody Tue Jul 2 08:40:20 2024 X-Original-To: freebsd-stable@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 4WCxF91X1dz5Pmsp for ; Tue, 02 Jul 2024 08:40:29 +0000 (UTC) (envelope-from SRS0=7aeR=OC=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4WCxF86Z4Qz4PjQ; Tue, 2 Jul 2024 08:40:28 +0000 (UTC) (envelope-from SRS0=7aeR=OC=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; none Date: Tue, 2 Jul 2024 10:40:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1719909621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gEcFujIfWWIkU+Oxj1bhblJpA/jAiRgUEFdlcoGmoTE=; b=QMjz5oDf3tDLj2WfbT0i0DM4epRIpeCWWNwRJ7xtjklSqJbbZIaHf7J99UOwoe4iC3+00B eeBhthpjex7WCavky/tQzs769hzDxLMyoTKsSQsyjCS2dFnUv4EG+VPmyVCDGphStrwBnT 4hdWNnEBbx8bO/if3TJHwd/P1UWCNcBw2ssKvO4tMwIWsXNj+KC9cXqFM0lQ+wy2keDJ6y kxZHRxxvZ8OajLetbmzZQj63a2pudiKiSto0sDIndKc6SkufShVmEUCh0Tec+KE5SUnn4P NJvqlJL+o0LBVBKkjr4sH4VkvWnqCd3B6sxWvrUalPlYdcAUnPq4T4nvbHvAlQ== From: Ronald Klop To: Craig Leres Cc: freebsd-stable@freebsd.org, Michael Proto Message-ID: <1298289263.3566.1719909620825@localhost> In-Reply-To: <7005d0ed-70ea-4c70-ac61-2a12e023cdd7@freebsd.org> References: <086405e2-8fc2-4463-b8bb-d6c652745ae1@freebsd.org> <7005d0ed-70ea-4c70-ac61-2a12e023cdd7@freebsd.org> Subject: Re: FreeBSD 14.x localhost source address List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3565_798228293.1719909620800" X-Mailer: Realworks (708.118) Importance: Normal X-Priority: 3 (Normal) 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:3265, ipnet:194.109.0.0/16, country:NL] X-Rspamd-Queue-Id: 4WCxF86Z4Qz4PjQ ------=_Part_3565_798228293.1719909620800 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Van: Craig Leres Datum: dinsdag, 2 juli 2024 01:04 Aan: Michael Proto CC: freebsd-stable@freebsd.org Onderwerp: Re: FreeBSD 14.x localhost source address > > On 7/1/24 15:53, Michael Proto wrote: > > What netmask are you using for 127.0.0.2? I'd treat it as I would an > > IP alias (only on localhost) with a /32 netmask, should keep it > > isolated. Just tried it myself on a test box and iperf works as > > expected, using 127.0.0.1 as the source when connecting. > > I was just looking at that and I used 127.0.0.2 without an explicit mask and the system picked /24. I'm not sure why I did it that way but it's been awhile. > > I just got rid of lo2 and made 127.0.0.2/32 an alias on lo0 and it seems to work better all around. > > I guess the overlap between 127.0.0.0/8 and 127.0.0.0/24 was problematic. > > Craig > > > > Hi, Could it be that this mail thread also applies to your situation? https://lists.freebsd.org/archives/freebsd-current/2024-June/006047.html It has a follow-up about a fix in https://lists.freebsd.org/archives/freebsd-current/2024-June/006075.html. Regards, Ronald. ------=_Part_3565_798228293.1719909620800 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Van: Craig Leres <leres@freebsd.org>
Datum: dinsdag, 2 juli 2024 01:04
Aan: Michael Proto <mike@jellydonut.org>
CC: freebsd-stable@freebsd.org
Onderwerp: Re: FreeBSD 14.x localhost source address

On 7/1/24 15:53, Michael Proto wrote:
>   What netmask are you using for 127.0.0.2? I'd treat it as I would an
> IP alias (only on localhost) with a /32 netmask, should keep it
> isolated. Just tried it myself on a test box and iperf works as
> expected, using 127.0.0.1 as the source when connecting.

I was just looking at that and I used 127.0.0.2 without an explicit mask and the system picked /24. I'm not sure why I did it that way but it's been awhile.

I just got rid of lo2 and made 127.0.0.2/32 an alias on lo0 and it seems to work better all around.

I guess the overlap between 127.0.0.0/8 and 127.0.0.0/24 was problematic.

        Craig
 



Hi,

Could it be that this mail thread also applies to your situation?
https://lists.freebsd.org/archives/freebsd-current/2024-June/006047.html

It has a follow-up about a fix in https://lists.freebsd.org/archives/freebsd-current/2024-June/006075.html.

Regards,
Ronald.
  ------=_Part_3565_798228293.1719909620800-- From nobody Tue Jul 2 09:22:50 2024 X-Original-To: freebsd-stable@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 4WCyBC5G2Sz5PtZh for ; Tue, 02 Jul 2024 09:22:59 +0000 (UTC) (envelope-from sthaug@nethelp.no) Received: from bizet.nethelp.no (bizet.nethelp.no [195.1.209.4]) by mx1.freebsd.org (Postfix) with ESMTP id 4WCyBC3FV2z4VnD for ; Tue, 2 Jul 2024 09:22:59 +0000 (UTC) (envelope-from sthaug@nethelp.no) Authentication-Results: mx1.freebsd.org; none Received: from localhost (bizet.nethelp.no [195.1.209.4]) by bizet.nethelp.no (Postfix) with ESMTP id 26776646B0A; Tue, 2 Jul 2024 11:22:51 +0200 (CEST) Date: Tue, 02 Jul 2024 11:22:50 +0200 (CEST) Message-Id: <20240702.112250.268297637701792446.sthaug@nethelp.no> To: bzeeb-lists@lists.zabbadoz.net Cc: freebsd-stable@freebsd.org Subject: Re: BIND 9.19.24 not listening to rndc port (953) From: sthaug@nethelp.no In-Reply-To: <38321p06-q966-p811-oqpq-q679qpo9pp31@yvfgf.mnoonqbm.arg> References: <20240630.134609.2166404118346455953.sthaug@nethelp.no> <38321p06-q966-p811-oqpq-q679qpo9pp31@yvfgf.mnoonqbm.arg> X-Mailer: Mew version 6.9 on Emacs 29.2 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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:2116, ipnet:195.1.0.0/16, country:NO] X-Rspamd-Queue-Id: 4WCyBC3FV2z4VnD >> Other info: >> >> - BIND 9.18.24 on the same host works perfectly, with no rndc issues. >> - BIND 9.19.24 on the same host also works *if I change it to run as >> root* (by default it runs as user bind). The syslog messages are gone, >> and rndc works as expected. > > That sounds like they try to open the priv port after they changed > users rather than before. I ran named under truss, and as far as I can see that is exactly what is happening: root@nlab1:/local/etc/namedb # egrep 'setuid|setresuid|127.0.0.1:953' truss.log 38461: 0.063859531 setresuid(0xffffffff,0x35,0xffffffff) = 0 (0x0) 38461: 0.064231316 setresuid(0xffffffff,0x0,0xffffffff) = 0 (0x0) 38461: 0.064999183 setresuid(0xffffffff,0x35,0xffffffff) = 0 (0x0) 38461: 0.065332218 setresuid(0xffffffff,0x0,0xffffffff) = 0 (0x0) 38461: 0.083518302 setuid(0x35) = 0 (0x0) 38461: 0.093282161 bind(59,{ AF_INET 127.0.0.1:953 },16) ERR#13 'Permission denied' So we set uid 53 (bind) at 0.083518302, and then try to bind to port 953 at 0.093282161. Steinar Haug, AS2116 From nobody Tue Jul 2 10:09:22 2024 X-Original-To: freebsd-stable@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 4WCzD15fqNz5Q0yd for ; Tue, 02 Jul 2024 10:09:37 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WCzD06hn2z4ZZn for ; Tue, 2 Jul 2024 10:09:36 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (mx1.freebsd.org: domain of freebsd-stable@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=freebsd-stable@m.gmane-mx.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sOaS0-0007Jh-14 for freebsd-stable@freebsd.org; Tue, 02 Jul 2024 12:09:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Anton Shepelev Subject: Re: FreeBSD Day 2024 - Colin Percival Date: Tue, 2 Jul 2024 13:09:22 +0300 Message-ID: <20240702130922.0916de2558c67181a54625f1@gmail.com> References: List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) X-Spamd-Bar: / X-Spamd-Result: default: False [-0.75 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-0.995]; NEURAL_HAM_MEDIUM(-0.81)[-0.808]; MV_CASE(0.50)[]; NEURAL_SPAM_LONG(0.36)[0.357]; FORGED_SENDER(0.30)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; R_SPF_ALLOW(-0.20)[+mx]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:24940, ipnet:116.202.0.0/16, country:DE]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; FROM_NEQ_ENVFROM(0.00)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4WCzD06hn2z4ZZn Steven Friedrich: > Linux routes sound from the audio driver to the video > driver causing sound to come out of the HDMI cable. > FreeBSD can't. This affects ALL i3, i5, i7, i9 systems. > FreeBSD can't even support x11 on my GMKtec K8 with Radeon > 780M graphics. Linux Mint does. Sounds a tad ranty. I think the foremost thing to do in your case is to make your complaints into issues at: From nobody Tue Jul 2 11:20:53 2024 X-Original-To: freebsd-stable@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 4WD0ph0gxTz5Q9CD for ; Tue, 02 Jul 2024 11:21:16 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from fhigh4-smtp.messagingengine.com (fhigh4-smtp.messagingengine.com [103.168.172.155]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4WD0pg2GwQz4hrx for ; Tue, 2 Jul 2024 11:21:14 +0000 (UTC) (envelope-from dch@skunkwerks.at) Authentication-Results: mx1.freebsd.org; none Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id C5B6611402BF; Tue, 2 Jul 2024 07:21:13 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute2.internal (MEProxy); Tue, 02 Jul 2024 07:21:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skunkwerks.at; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1719919273; x= 1720005673; bh=hiESvEdT9ebcdS2c+L8SQBOk4WU/M2OFBKtjbarq86o=; b=f sLs8SzdBLFwSjdxfUTFPj6rnF7AH7EWbVp8mL5sYppyBxQpJoh/O56NxU3g0TrfR fJAiWgmRNOb2bd70PfQRFasCph5JyRNbuRyzqAt4jXlXkx088qncGJBGBnn9+nxO KZ0QkMo+DeiiZNV2KGsY6oD8cJCDzE/vp6XKeNzWYL560rIrwgam+JEo9dghcc7w cJplDm6tP0He+jjpfr9q5pahkjVY4tkc86J7/ESm8Ui/24S4WjQTLRz4u+eA+iTY cjmlELmcn612lLlsp6W2RVUApIODT+nhwTjgwmEz9Sm6K7P2BRn2eQKmpd/LCipd Zm87xiTdINdKGM+R2dZ7A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1719919273; x=1720005673; bh=hiESvEdT9ebcdS2c+L8SQBOk4WU/ M2OFBKtjbarq86o=; b=GhlIUk72BUDnur+2vcKWmoPIBWgbZzdRADgfZZ7C1Fru 6Ttz471CBfFLZCtW2FSSc5jaOWP33CNwt+WHYFSNoROt8jntShHil7gp8TTRnW3y NVsAmlOlqEzCXSAB6ZJ4YjYAnMfKFB6TXyd8ufqKG6Syt6QVMqTvmVgX1NvRpmJe udEMdEj0Wz7BJsb+qGDaskZFpREXkTSBuGpabIibxqov4A+PamHn7XMdmtI+76V1 okCtU2uZRc9NfuPm5IvdQ2uGq61+K5GEJdZEP7XCfJ1kFfSKRBU/xAbPmSnGzj3d 3xcM9jq3OBTzjIMdw5RbgIPjMLrhk8uaYZ2hK9toYQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudehgdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdffrghv vgcuvehothhtlhgvhhhusggvrhdfuceouggthhesshhkuhhnkhifvghrkhhsrdgrtheqne cuggftrfgrthhtvghrnhepkeeukeefjeekgedufefgvedutddufeevheekudfghfeugfdv gedtveetudehudehnecuffhomhgrihhnpehfrhgvvggsshgurdhorhhgnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepuggthhesshhkuhhnkhif vghrkhhsrdgrth X-ME-Proxy: Feedback-ID: ic0e84090:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7CFEA36A0075; Tue, 2 Jul 2024 07:21:13 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-566-g3812ddbbc-fm-20240627.001-g3812ddbb List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Message-Id: <3d40cb00-9fbb-4809-b6d9-fa40944cc62c@app.fastmail.com> In-Reply-To: References: Date: Tue, 02 Jul 2024 11:20:53 +0000 From: "Dave Cottlehuber" To: "Steven Friedrich" Cc: "FreeBSD Stable" Subject: Re: freebsd hdmi audi Content-Type: text/plain 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:209242, ipnet:103.168.172.0/24, country:US] X-Rspamd-Queue-Id: 4WD0pg2GwQz4hrx On Tue, 2 Jul 2024, at 03:56, Steven Friedrich wrote: > Linux routes sound from the audio driver to the video driver causing > sound to come out of the HDMI cable. FreeBSD can't. This affects ALL i3, > i5, i7, i9 systems. > FreeBSD can't even support x11 on my GMKtec K8 with Radeon 780M > graphics. Linux Mint does. Hi Steven Perhaps you can be more specific here about what's not working. Here I've got: - dell xps13 i7 [1] & intel nuc i5 - in 14.1-RELEASE and CURRENT - capable of playing audio & video via HDMI - I use the drm-kmod drivers & X11 not wayland Can you link: - what freebsd version this is for - relevant parts of your dmesg for just 1 system - if X doesn't start at all, whats in xorg logs? - what kmods / video drivers you have set up on it - set `sysctl hw.snd.verbose=2` and then attach `/dev/sndstat` info More info is in https://docs.freebsd.org/en/books/handbook/multimedia/ I use mpg123 or mpv for quick tests, for audio & video respectively. [1]: https://wiki.freebsd.org/Laptops/Dell_XPS13_9360 A+ Dave From nobody Tue Jul 2 13:16:29 2024 X-Original-To: freebsd-stable@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 4WD3Mj3Xkdz5QQj2 for ; Tue, 02 Jul 2024 13:16:33 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WD3Mj1Ww6z4xKT for ; Tue, 2 Jul 2024 13:16:33 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-7f38da3800aso157371939f.0 for ; Tue, 02 Jul 2024 06:16:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719926192; x=1720530992; darn=freebsd.org; h=in-reply-to:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:from:from:to:cc:subject:date :message-id:reply-to; bh=W8ZLvMBTV7Ihz4zHKVX9LDbBFQ7pQDgYQ7M/fukrceo=; b=VCq6WUShFZXS2kyMcCN8NIe3E1DmCftUiY7rDJ2fUqLVZKcJrDf7z4Rh8XSrubTFkG qqKzsIqjj+rRbdAvbZwYYItAOYmEKxY6cbnPxstJPfg3XOGioAaThPqDVp4ElsnfklmJ ADH2w2NrXte8rxnQjceJ9adgfK+eG43pfC4E6fFsQgnDIh+V0P15mnBtKQMToxaQCjhW DYkOmvscxuhK/S+c2cgMy/AIn04myS3P+I/5OCh/+Jxny0Rx79K7NZAfpjYhm4rzSHgq 6niaCnHvjfw77TGfsOYXFjt7w2dRDdq4KsUi+KLPC6V2G97lzSa4HzLG2o8fTEtzwhPZ 0F+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719926192; x=1720530992; h=in-reply-to:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W8ZLvMBTV7Ihz4zHKVX9LDbBFQ7pQDgYQ7M/fukrceo=; b=IYlYnsTXdVHDnwt8xPlCOa4hGqllvVB3WL+Nm3g38MY53/Rw2fP4jmIss8of1B1GM2 iLR3Q1+58qx546TwxnKXYP3vEPexkanIUnzoyk2vuA/0h/BswtWVQdX9VC0H8RZ0pnpM lbQWmdQ6cpHCvxgOaH473A/ibfDzK39k8UnRpB6tNhVGJxwTxVzbEONBs2DFxayvcPBm bzsE9+Jg919zaOElgdp1lGgkUBSIQp4b4/De08eWvkUxcf7RZA40WT5JMFk9VZOCf5lN croh6F+hbqgCCWKenAVtmgzYKTrDiIrakxAkTA534Y16QPcuVYx2sjVzNUKfhs9z9Pui +vdg== X-Gm-Message-State: AOJu0Yz/LbVDgE7aDrVnbrcFuMyEC567lwBHP7gxILyhNadw6ZLY7M1I PXxf3vKHvmrIZN5lAs0uzSp+bCrTwQJJcAjTAM7nor3DiwXjaNiDQCss1w== X-Google-Smtp-Source: AGHT+IG59I/i3KifTyJBeRHkHepZTuBmDGDLWxEH6L0J7ilEDbdehrvLUq9bZiOKTtTYOQap7EmkJg== X-Received: by 2002:a05:6602:122b:b0:7eb:5250:a54a with SMTP id ca18e2360f4ac-7f62ee0f91fmr1058711439f.7.1719926191879; Tue, 02 Jul 2024 06:16:31 -0700 (PDT) Received: from ?IPV6:2600:1015:a032:296:4495:a296:3a18:8472? ([2600:1015:a032:296:4495:a296:3a18:8472]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4bb73bb374dsm2750367173.36.2024.07.02.06.16.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Jul 2024 06:16:31 -0700 (PDT) From: Steven Friedrich X-Google-Original-From: Steven Friedrich Content-Type: multipart/alternative; boundary="------------OZqtDF1DLHw01eH8Vc0At5Nm" Message-ID: Date: Tue, 2 Jul 2024 09:16:29 -0400 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: freebsd hdmi audi To: Dave Cottlehuber Cc: FreeBSD Stable References: <3d40cb00-9fbb-4809-b6d9-fa40944cc62c@app.fastmail.com> Content-Language: en-US In-Reply-To: <3d40cb00-9fbb-4809-b6d9-fa40944cc62c@app.fastmail.com> 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4WD3Mj1Ww6z4xKT This is a multi-part message in MIME format. --------------OZqtDF1DLHw01eH8Vc0At5Nm Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Thank you for a response, it's the first in a decade for this issue. I have two HP's, a Slimline with an i7, and an Envy with an i7. Both are small towers (desktops). I too use drm-kmod and x11. dmesg: hdacc0: at cad 0 on hdac0 hdaa0: at nid 1 on hdacc0 pcm0: at nid 20 and 27 on hdaa0 pcm1: at nid 33 and 24 on hdaa0 hdacc1: at cad 2 on hdac0 hdaa1: at nid 1 on hdacc1 pcm2: at nid 3 on hdaa1 kde5 as well as plasma6-plasma correctly identify all three sound outputs, but when I press the Test button (in system settings Audio) it says there's a driver missing (but it doesn't identify the driver) X does provide a good kde5 or 6 desktop, but can't output sound to any of the three outputs. From the command line, I can output to the front or rear realtek outputs, but not hdmi. cat /dev/sndstat FreeBSD Audio Driver Installed devices: pcm0: on hdaa0 (1p:1v/1r:1v)        snddev flags=0x2e2        [pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000004        interrupts 0, underruns 0, feed 0, ready 0 [b:2048/1024/2|bs:2048/1024/2]        channel flags=0x2100        {userland} -> feeder_mixer(0x00200010) -> {hardware} pcm0:play:dsp0.p0[pcm0:virtual_play:dsp0.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]        channel flags=0x10000000        {userland} -> feeder_root(0x00000000) -> {hardware}        [pcm0:record:dsp0.r0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000005        interrupts 0, overruns 0, feed 0, hfree 512, sfree 512 [b:512/256/2|bs:512/256/2]        channel flags=0x2100        {hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland} pcm0:record:dsp0.r0[pcm0:virtual_record:dsp0.vr0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000        interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0]        channel flags=0x10000000        {hardware} -> feeder_root(0x00000000) -> {userland} pcm1: on hdaa0 (1p:1v/1r:1v)        snddev flags=0x2e2        [pcm1:play:dsp1.p0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000004        interrupts 0, underruns 0, feed 0, ready 0 [b:2048/1024/2|bs:2048/1024/2]        channel flags=0x2100        {userland} -> feeder_mixer(0x00200010) -> {hardware} pcm1:play:dsp1.p0[pcm1:virtual_play:dsp1.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]        channel flags=0x10000000        {userland} -> feeder_root(0x00000000) -> {hardware}        [pcm1:record:dsp1.r0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000005        interrupts 0, overruns 0, feed 0, hfree 512, sfree 512 [b:512/256/2|bs:512/256/2]        channel flags=0x2100        {hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland} pcm1:record:dsp1.r0[pcm1:virtual_record:dsp1.vr0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000        interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0]        channel flags=0x10000000        {hardware} -> feeder_root(0x00000000) -> {userland} pcm2: on hdaa1 (1p:1v/0r:0v) default        snddev flags=0x2e7        [pcm2:play:dsp2.p0]: spd 48000, fmt 0x00200010, flags 0x00006100, 0x00000004        interrupts 0, underruns 0, feed 0, ready 0 [b:2048/1024/2|bs:2048/1024/2]        channel flags=0x6100        {userland} -> feeder_mixer(0x00200010) -> {hardware} pcm2:play:dsp2.p0[pcm2:virtual_play:dsp2.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]        channel flags=0x10000000        {userland} -> feeder_root(0x00000000) -> {hardware} No devices installed from userspace.    BTW, I've been using FreeBSD since 1.x days. These same systems give me sound on every output on linux mint, kde neon, debian12. the x11 anomaly i mentioned was regarding a new gmktec k8 (amd w radeon 780M graphics) I'm running 14stable, but I've had this issue since 2017 (Dell Inspiron 3668 (i3). On 7/2/24 07:20, Dave Cottlehuber wrote: > On Tue, 2 Jul 2024, at 03:56, Steven Friedrich wrote: >> Linux routes sound from the audio driver to the video driver causing >> sound to come out of the HDMI cable. FreeBSD can't. This affects ALL i3, >> i5, i7, i9 systems. >> FreeBSD can't even support x11 on my GMKtec K8 with Radeon 780M >> graphics. Linux Mint does. > Hi Steven > > Perhaps you can be more specific here about what's not working. > > Here I've got: > > - dell xps13 i7 [1] & intel nuc i5 > - in 14.1-RELEASE and CURRENT > - capable of playing audio & video via HDMI > - I use the drm-kmod drivers & X11 not wayland > > Can you link: > - what freebsd version this is for > - relevant parts of your dmesg for just 1 system > - if X doesn't start at all, whats in xorg logs? > - what kmods / video drivers you have set up on it > - set `sysctl hw.snd.verbose=2` and then attach `/dev/sndstat` info > > More info is inhttps://docs.freebsd.org/en/books/handbook/multimedia/ > > I use mpg123 or mpv for quick tests, for audio & video respectively. > > [1]:https://wiki.freebsd.org/Laptops/Dell_XPS13_9360 > > A+ > Dave --------------OZqtDF1DLHw01eH8Vc0At5Nm Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Thank you for a response, it's the first in a decade for this issue.

I have two HP's, a Slimline with an i7, and an Envy with an i7.  Both are small towers (desktops).

I too use drm-kmod and x11.

dmesg:

hdacc0: <Realtek ALC671 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC671 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC671 (Rear Analog)> at nid 20 and 27 on hdaa0
pcm1: <Realtek ALC671 (Analog)> at nid 33 and 24 on hdaa0
hdacc1: <Intel Kaby Lake HDA CODEC> at cad 2 on hdac0
hdaa1: <Intel Kaby Lake Audio Function Group> at nid 1 on hdacc1
pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> at nid 3 on hdaa1

kde5 as well as plasma6-plasma correctly identify all three sound outputs, but when I press the Test button (in system settings Audio) it says there's a driver missing (but it doesn't identify the driver)

X does provide a good kde5 or 6 desktop, but can't output sound to any of the three outputs.  From the command line, I can output to the front or rear realtek outputs, but not hdmi.

cat /dev/sndstat
FreeBSD Audio Driver
Installed devices:
pcm0: <Realtek ALC671 (Rear Analog)> on hdaa0 (1p:1v/1r:1v)
       snddev flags=0x2e2<AUTOVCHAN,BUSY,MPSAFE,REGISTERED,VPC>
       [pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000004
       interrupts 0, underruns 0, feed 0, ready 0 [b:2048/1024/2|bs:2048/1024/2]
       channel flags=0x2100<BUSY,HAS_VCHAN>
       {userland} -> feeder_mixer(0x00200010) -> {hardware}
       pcm0:play:dsp0.p0[pcm0:virtual_play:dsp0.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
       interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
       channel flags=0x10000000<VIRTUAL>
       {userland} -> feeder_root(0x00000000) -> {hardware}
       [pcm0:record:dsp0.r0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000005
       interrupts 0, overruns 0, feed 0, hfree 512, sfree 512 [b:512/256/2|bs:512/256/2]
       channel flags=0x2100<BUSY,HAS_VCHAN>
       {hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland}
       pcm0:record:dsp0.r0[pcm0:virtual_record:dsp0.vr0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
       interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0]
       channel flags=0x10000000<VIRTUAL>
       {hardware} -> feeder_root(0x00000000) -> {userland}
pcm1: <Realtek ALC671 (Analog)> on hdaa0 (1p:1v/1r:1v)
       snddev flags=0x2e2<AUTOVCHAN,BUSY,MPSAFE,REGISTERED,VPC>
       [pcm1:play:dsp1.p0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000004
       interrupts 0, underruns 0, feed 0, ready 0 [b:2048/1024/2|bs:2048/1024/2]
       channel flags=0x2100<BUSY,HAS_VCHAN>
       {userland} -> feeder_mixer(0x00200010) -> {hardware}
       pcm1:play:dsp1.p0[pcm1:virtual_play:dsp1.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
       interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
       channel flags=0x10000000<VIRTUAL>
       {userland} -> feeder_root(0x00000000) -> {hardware}
       [pcm1:record:dsp1.r0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000005
       interrupts 0, overruns 0, feed 0, hfree 512, sfree 512 [b:512/256/2|bs:512/256/2]
       channel flags=0x2100<BUSY,HAS_VCHAN>
       {hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland}
       pcm1:record:dsp1.r0[pcm1:virtual_record:dsp1.vr0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
       interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0]
       channel flags=0x10000000<VIRTUAL>
       {hardware} -> feeder_root(0x00000000) -> {userland}
pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> on hdaa1 (1p:1v/0r:0v) default
       snddev flags=0x2e7<SIMPLEX,AUTOVCHAN,SOFTPCMVOL,BUSY,MPSAFE,REGISTERED,VPC>
       [pcm2:play:dsp2.p0]: spd 48000, fmt 0x00200010, flags 0x00006100, 0x00000004
       interrupts 0, underruns 0, feed 0, ready 0 [b:2048/1024/2|bs:2048/1024/2]
       channel flags=0x6100<BUSY,HAS_VCHAN,VCHAN_PASSTHROUGH>
       {userland} -> feeder_mixer(0x00200010) -> {hardware}
       pcm2:play:dsp2.p0[pcm2:virtual_play:dsp2.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
       interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
       channel flags=0x10000000<VIRTUAL>
       {userland} -> feeder_root(0x00000000) -> {hardware}
No devices installed from userspace.

   BTW, I've been using FreeBSD since 1.x days.

These same systems give me sound on every output on linux mint, kde neon, debian12.

the x11 anomaly i mentioned was regarding a new gmktec k8 (amd w radeon 780M graphics)

I'm running 14stable, but I've had this issue since 2017 (Dell Inspiron 3668 (i3).

On 7/2/24 07:20, Dave Cottlehuber wrote:
On Tue, 2 Jul 2024, at 03:56, Steven Friedrich wrote:
Linux routes sound from the audio driver to the video driver causing 
sound to come out of the HDMI cable. FreeBSD can't. This affects ALL i3, 
i5, i7, i9 systems.
FreeBSD can't even support x11 on my GMKtec K8 with Radeon 780M 
graphics. Linux Mint does.
Hi Steven

Perhaps you can be more specific here about what's not working.

Here I've got:

- dell xps13 i7 [1] & intel nuc i5
- in 14.1-RELEASE and CURRENT
- capable of playing audio & video via HDMI
- I use the drm-kmod drivers & X11 not wayland

Can you link:
- what freebsd version this is for
- relevant parts of your dmesg for just 1 system 
- if X doesn't start at all, whats in xorg logs?
- what kmods / video drivers you have set up on it
- set `sysctl hw.snd.verbose=2` and then attach `/dev/sndstat` info

More info is in https://docs.freebsd.org/en/books/handbook/multimedia/

I use mpg123 or mpv for quick tests, for audio & video respectively.

[1]: https://wiki.freebsd.org/Laptops/Dell_XPS13_9360

A+
Dave
--------------OZqtDF1DLHw01eH8Vc0At5Nm-- From nobody Tue Jul 2 14:01:42 2024 X-Original-To: freebsd-stable@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 4WD4N655K2z5QXR6 for ; Tue, 02 Jul 2024 14:01:58 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WD4N61PkDz54P8 for ; Tue, 2 Jul 2024 14:01:58 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=aI2w2NKY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rick.macklem@gmail.com designates 2607:f8b0:4864:20::632 as permitted sender) smtp.mailfrom=rick.macklem@gmail.com Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1f64ecb1766so23128795ad.1 for ; Tue, 02 Jul 2024 07:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719928914; x=1720533714; darn=freebsd.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=VdpPrsdUa+dGz/NQHspbzI2tGyLQjt6IRyEp7wFdfVs=; b=aI2w2NKY+TEHcdTm/u4BH0seG6F5PbwzgmVrtbN017m3ROojFgfRBhdlih38m2sOMy f7mQDmi2eEY1RID8pgIkKaOZkF9S+ntaQe4Ep/161grOWpEE67g+mpLEfzNUbdSPYt/y TanrvwVIxcAVM/ORojRPBYmXcfpEycPtG+VLLs9gXLT3mowxp40eooCi7/e/yz07OdqD sVcSHw4lxwGvQt1GELQa9F5XjVlNt0SyvJAz7KB441kZ3lA2zxiTGdG9E9RHJxBMUX8U 2XwbDI7Of+3FC7cQUpMLACXrkNv+S0P9MHBQuDg728kZrOSYt8YBffKamMTyga1RGa9j dWxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719928914; x=1720533714; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VdpPrsdUa+dGz/NQHspbzI2tGyLQjt6IRyEp7wFdfVs=; b=BrI1O4aHrZufKF5g8ith4EwR3ynrFxQJnRYCVaVx23KmITXL6DW3AiVi8rBtIsljIL IgSJJt1AHnAUz1P5zCcXF74bTClII8XOWp0qOr8V9gd8uxJNqRNuTBz3g1XmLUVtHeEV KnSddcMP7/XklA46AtU5ZvhTSs0qSF/MyQPeXII5NNTPqeV9KFZKzMb9L0Bj6eJhMtWy BjoM3wg7cew8GWV3/MGazVDTx4D3MBAzZwdQL5owylRvnsKW+2RgedbYUTZ3oLaeKtaH OoD2zrd476o43DUflkbhN3+NDTZD94OcXRf9adbk6lRye1UkAF0dPaeHQAty4pQnskQE 0/Pw== X-Gm-Message-State: AOJu0Yz03/mMjd0KdJnAsfszXJXL/uKNy4WoeU4ZeymDGa9OmpookH04 I7+PqrlVa3UYl8zW1E8aAptpcrXF1/UuyzRQaqthdXcEjwBZM80pQuulIXxgfpgcqlovRWIfNFz 2tF9F730/u6AzD1ZmIbLKSpdzK9qBm1k= X-Google-Smtp-Source: AGHT+IGh3NdCTOBn/bbpq7OkkCHPFCKUb+kCGIIGJUq7LkQI/vDBNq/pBpIq0e9b5F/+WaO7OukpwQIIZrdNHbSXkGs= X-Received: by 2002:a17:902:e74d:b0:1f7:2135:ce6d with SMTP id d9443c01a7336-1fadbc746a8mr58756765ad.18.1719928913599; Tue, 02 Jul 2024 07:01:53 -0700 (PDT) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Rick Macklem Date: Tue, 2 Jul 2024 07:01:42 -0700 Message-ID: Subject: Re: new error messages after upgrade 14.0-p5 to 14.1-p1 amd64 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.983]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TAGGED_FROM(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::632:from] X-Rspamd-Queue-Id: 4WD4N61PkDz54P8 On Sat, Jun 29, 2024 at 3:18=E2=80=AFAM void wrote: > > On Fri, Jun 28, 2024 at 01:23:29PM +0100, void wrote: > > (snip) > > Just to add to this, the reported error does *not* occur on > 15.0-CURRENT #5 n270917-5dbf886104b4 arm64 > > and that system has *only* nfs_client_enable=3D"YES" > > and it's a slower system Could this possibly be the cause? https://lists.freebsd.org/archives/freebsd-current/2024-June/006075.html rick > -- > From nobody Tue Jul 2 17:05:48 2024 X-Original-To: freebsd-stable@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 4WD8SV0Hssz5NmQZ for ; Tue, 02 Jul 2024 17:06:02 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx-01.divo.sbone.de (mx-01.divo.sbone.de [IPv6:2003:a:140a:2200:6:594:fffe:19]) (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 ECDSA (P-256) client-digest SHA256) (Client CN "mx-01.divo.sbone.de", Issuer "E5" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WD8ST4Lsvz4HT1 for ; Tue, 2 Jul 2024 17:06:01 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; none Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mx-01.divo.sbone.de (Postfix) with ESMTPS id B748BA64805; Tue, 02 Jul 2024 17:05:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zabbadoz.net; s=20240622; t=1719939950; bh=U0m13s3wKgcrhaFZOww4p4GKjt19o07mvDpKgCLe4Dg=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=fGiy8R04W5uqfQ+c3NDuD7sP/GNG/8fBws//Wqp2F2Dd8oYpawEUFWLGqfKiPMs9d Sl7LDfGFFyoS1U1TJo3GOFZUhqluCemp544hHNaF8wGXyPTr2e/3k9RXiWxLag7dqv TQZo4w0Itz3Jg0cBfGjbQXNumd5+uZe5QbffS6RUzLyePZ+TBd+fW0Ftj3ZrJ8YNsA +Wh4ylpqhaoVw/D5IBfOEjz1+CFom/JLob30bKXSOS9IHnhIxHBHGRCDk4ZTyAvUc9 hjxHdGxNXcKImuIQ4D4fkJ4sDR6jfPgx012TO1YGrmGm8bwn99HMcGTowZJSOshI2o W71SQ27GMJ6jUU65UX6XzFAC4HRb/E6UjqC8T1Od4DQIEZmiGF9G/KJKvjMnELzQeQ WtQR9zO7bcW2AFZWEkhlpGbTSgdA1Tli3t7zECEcLo8c+xzx2NDuIgaV6cNOoIXbUb 1dN1E0PNcZceSYWqYq0JqRgNSV5oSF89N0/LmtcBEYCWpvykfWA2xS6G9WXoA6QnI3 TFqwpkJNrmfwBlvpVFGLfLe4BsZOaXrFdJk5lXFuwLLVO/77uqNZc10PwK+4f4iwmR 5IRbCEcD5kYqsfv8HMb9wUFDHi3Sbsfcv3ajRrLA2h2lgheu4u0gqvAAX0e4YG3q/8 qrt/jIl5Kuq5bUYhICUtg+GE= Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id E33AA2D029D8; Tue, 2 Jul 2024 17:05:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id hfz7ItasdMYG; Tue, 2 Jul 2024 17:05:49 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id F22F32D029D2; Tue, 2 Jul 2024 17:05:48 +0000 (UTC) Date: Tue, 2 Jul 2024 17:05:48 +0000 (UTC) From: "Bjoern A. Zeeb" To: sthaug@nethelp.no cc: freebsd-stable@freebsd.org Subject: Re: BIND 9.19.24 not listening to rndc port (953) In-Reply-To: <20240702.112250.268297637701792446.sthaug@nethelp.no> Message-ID: <18s0oq25-816s-84ns-41np-47402182ns46@yvfgf.mnoonqbm.arg> References: <20240630.134609.2166404118346455953.sthaug@nethelp.no> <38321p06-q966-p811-oqpq-q679qpo9pp31@yvfgf.mnoonqbm.arg> <20240702.112250.268297637701792446.sthaug@nethelp.no> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed 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:3320, ipnet:2003::/19, country:DE] X-Rspamd-Queue-Id: 4WD8ST4Lsvz4HT1 On Tue, 2 Jul 2024, sthaug@nethelp.no wrote: >>> Other info: >>> >>> - BIND 9.18.24 on the same host works perfectly, with no rndc issues. >>> - BIND 9.19.24 on the same host also works *if I change it to run as >>> root* (by default it runs as user bind). The syslog messages are gone, >>> and rndc works as expected. >> >> That sounds like they try to open the priv port after they changed >> users rather than before. > > I ran named under truss, and as far as I can see that is exactly > what is happening: > > root@nlab1:/local/etc/namedb # egrep 'setuid|setresuid|127.0.0.1:953' truss.log > 38461: 0.063859531 setresuid(0xffffffff,0x35,0xffffffff) = 0 (0x0) > 38461: 0.064231316 setresuid(0xffffffff,0x0,0xffffffff) = 0 (0x0) > 38461: 0.064999183 setresuid(0xffffffff,0x35,0xffffffff) = 0 (0x0) > 38461: 0.065332218 setresuid(0xffffffff,0x0,0xffffffff) = 0 (0x0) > 38461: 0.083518302 setuid(0x35) = 0 (0x0) > 38461: 0.093282161 bind(59,{ AF_INET 127.0.0.1:953 },16) ERR#13 'Permission denied' > > So we set uid 53 (bind) at 0.083518302, and then try to bind to port > 953 at 0.093282161. Are you going to poe a bug with the bind people? /bz -- Bjoern A. Zeeb r15:7 From nobody Tue Jul 2 17:08:41 2024 X-Original-To: freebsd-stable@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 4WD8Wd1clvz5Nmbv for ; Tue, 02 Jul 2024 17:08:45 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx-01.divo.sbone.de (mx-01.divo.sbone.de [IPv6:2003:a:140a:2200:6:594:fffe:19]) (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 ECDSA (P-256) client-digest SHA256) (Client CN "mx-01.divo.sbone.de", Issuer "E5" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WD8Wd0bwDz4JKn; Tue, 2 Jul 2024 17:08:45 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; none Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mx-01.divo.sbone.de (Postfix) with ESMTPS id 7DEEFA64805; Tue, 02 Jul 2024 17:08:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zabbadoz.net; s=20240622; t=1719940123; bh=n5vsuLs1o+7jyXqckweDB9Ar+poQxejo3pjzyCwf/4A=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=bLvk9QhExggObg3TaV/Cm2zVU8qSgb0hdNO0sDmDnHZcoyq5MAsxfw9asefajvwDm aSdSAfVltlgnaf9aXAPekuAFtch+M8z6ZDdquOPWCm/we86Cf1OHYmjqWkF901bfad oUwjapIS5hk94XvTkm9PS9zrRpvFBHDOBvI6W4B8uwisAPjEYhEu3SnUzUMQfD3nPC 7IKU4LIiKg8UUickjByueZF6VHZZAI75GLLyzVXCayvNlnGPWORb0mX5jwKaEXULjQ ghuse1u3PNieFJcpyN9BP3ZDZjJaLwLzUugPD+y8YV4Ihmfky0u87XFPgdOXs3dStB sGzOJETvfqKahRN/IokaABGPGVTmkANwCebiMtR+ZCD1yp3zFWfDaoYzSZSZrxemsp 2amNguPRrKR6RU6X4M9Z1l+nHLyp7o1Xtp59CxT9xzeR+AH5sKs/CI+VTFrRge87k+ tv2U5KGg+i28SPeGRgLBj+BN5KGEJPSVSULEwYLFsrrPjSHpdI1Sftb2h4r67hwqWR 9CTuYqkqht1kyah596sbrMTbNz2lvoC1aGrOIIQEt9/v7DF/qjdk0aBJeTrbE0vB5g PcOnyxRv7gBWaT9rCZaHxcxnsffUSC1uCbAb3efThWXKU3KdjPdhxn2v/zcHbcD+7d fA/lhZcRhYuTcunzX2blAk4k= Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id B4E792D029D8; Tue, 2 Jul 2024 17:08:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id zJEMZvj3iTy2; Tue, 2 Jul 2024 17:08:42 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id E9B002D029D2; Tue, 2 Jul 2024 17:08:41 +0000 (UTC) Date: Tue, 2 Jul 2024 17:08:41 +0000 (UTC) From: "Bjoern A. Zeeb" To: Craig Leres cc: Bakul Shah , sthaug@nethelp.no, freebsd-stable@freebsd.org Subject: Re: BIND 9.19.24 not listening to rndc port (953) In-Reply-To: <57b84b90-5f95-475b-9f45-ecff2b4adf05@freebsd.org> Message-ID: <4s037291-72n0-rnq0-8o69-o0r56p3r811o@yvfgf.mnoonqbm.arg> References: <20240630.134609.2166404118346455953.sthaug@nethelp.no> <3ace1a1c-324a-41ce-a39c-676ef830a5e0@freebsd.org> <57b84b90-5f95-475b-9f45-ecff2b4adf05@freebsd.org> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="1098556516-1216463851-1719940065=:2327" Content-ID: <179r25or-rr28-317s-9nq1-696o5pq31o41@mnoonqbm.arg> 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:3320, ipnet:2003::/19, country:DE] X-Rspamd-Queue-Id: 4WD8Wd0bwDz4JKn This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1098556516-1216463851-1719940065=:2327 Content-Type: text/plain; CHARSET=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT Content-ID: <3s59p25o-6r1s-46qn-0648-8qq803p53n1n@mnoonqbm.arg> On Mon, 1 Jul 2024, Craig Leres wrote: > On 7/1/24 10:17, Bakul Shah wrote: >> On Jul 1, 2024, at 9:18 AM, Craig Leres wrote: >>> >>> On 6/30/24 04:46, sthaug@nethelp.no wrote: >>>> Short description: Fresh install of bind9-devel-9.19.24_1 doesn't >>>> listen to localhost port 953, with the result that rndc doesn't work. >>>> Problem is 100% reproducible. >>> >>> bind-tools-9.18.27_1 with 14.1-RELEASE-p1 suffers from this as well. >> >> I was ignoring this until now but finally chased it down! I had to add >> >> inet 127.0.0.1 port 953 >> allow { 127.0.0.1; } keys { "rndc-key"; }; >> >> to "controls { ... }" in /etc/named.conf > > Ah... I already had that but I see now that the problem is due to the 14.1 > issue I reported (see "FreeBSD 14.x localhost source address" on the > freebsd-stable list). > >> For 14.1 at least, this has the side effect that the source address >> for anything in the 127.0.0.0/8 domain becomes 127.0.0.2 instead >> of 127.0.0.1. > > So I changed named.conf and now it works! [... hijacking ...] This all wouldn't be a problem if they wouldn't have taken away UNIX Domain sockets ... https://gitlab.isc.org/isc-projects/bind9/-/issues/4311 Maybe more people want to complain ;-) -- Bjoern A. Zeeb r15:7 --1098556516-1216463851-1719940065=:2327-- From nobody Tue Jul 2 17:13:33 2024 X-Original-To: freebsd-stable@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 4WD8dC3m9Gz5NnW8 for ; Tue, 02 Jul 2024 17:13:35 +0000 (UTC) (envelope-from sthaug@nethelp.no) Received: from bizet.nethelp.no (bizet.nethelp.no [195.1.209.4]) by mx1.freebsd.org (Postfix) with ESMTP id 4WD8dC0wvKz4KgL for ; Tue, 2 Jul 2024 17:13:35 +0000 (UTC) (envelope-from sthaug@nethelp.no) Authentication-Results: mx1.freebsd.org; none Received: from localhost (bizet.nethelp.no [195.1.209.4]) by bizet.nethelp.no (Postfix) with ESMTP id 4140B646B02; Tue, 2 Jul 2024 19:13:33 +0200 (CEST) Date: Tue, 02 Jul 2024 19:13:33 +0200 (CEST) Message-Id: <20240702.191333.1782316333681428598.sthaug@nethelp.no> To: bzeeb-lists@lists.zabbadoz.net Cc: freebsd-stable@freebsd.org Subject: Re: BIND 9.19.24 not listening to rndc port (953) From: sthaug@nethelp.no In-Reply-To: <18s0oq25-816s-84ns-41np-47402182ns46@yvfgf.mnoonqbm.arg> References: <38321p06-q966-p811-oqpq-q679qpo9pp31@yvfgf.mnoonqbm.arg> <20240702.112250.268297637701792446.sthaug@nethelp.no> <18s0oq25-816s-84ns-41np-47402182ns46@yvfgf.mnoonqbm.arg> X-Mailer: Mew version 6.9 on Emacs 29.2 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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:2116, ipnet:195.1.0.0/16, country:NO] X-Rspamd-Queue-Id: 4WD8dC0wvKz4KgL >> So we set uid 53 (bind) at 0.083518302, and then try to bind to port >> 953 at 0.093282161. > > Are you going to poe a bug with the bind people? Already did: https://gitlab.isc.org/isc-projects/bind9/-/issues/4793 Steinar Haug, AS2116 From nobody Tue Jul 2 20:10:44 2024 X-Original-To: freebsd-stable@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 4WDDYf2msZz5PDvS for ; Tue, 02 Jul 2024 20:10:46 +0000 (UTC) (envelope-from leres@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDDYf0Dhxz4kZ9; Tue, 2 Jul 2024 20:10:46 +0000 (UTC) (envelope-from leres@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719951046; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/b4MA/+l4V2EIy2AlHzW2lYxVnYvvFFu0G84p01Siag=; b=O+nvkdcENF98/mZsIrLZO1nmbxDqzbJ++AWV/Hc460ti6LkzVPMmd3wxRba6nwn0G9UqBk RqOiPDv/cBJ67AGtCtz9BXFopOshFi19XDGbLASx/co6R7UegOLX+KJB5iFrOG2m+4T/iP 9+qFO+L6/KbT9AXgA+bExq4U3ZC92X9g2D2kytkoYY9aApmNF+vvh/krIyecKWKA34/G3J DOPRPgkxsf9CYBxpeXI8dwReCe7BW9T1OqsvItlb22B90wwX7Q9VSMknHqHHGpeg9g7SrH QRXAelxUPzGsPkbGpsQeSxdXmOS0YMnW1/CqreBsHXXefKh7n1t4HqYI+lgWaA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719951046; a=rsa-sha256; cv=none; b=fH1//wAVAvpkfQGuVGaMp+Mgvp7HR9GoaDnMBEiaXi4lQ38YcYuyX/HevrDy+KxyLN1jjG YCTJM7p1N/O+rsjmjjfc8hjjYIIgRhqev726UwZB8chjwPZ1GdS4WOFOBBBlv/uziVVZwt egm/6UH3x9eyl5Lrm63ritBi5/QJuctQnPZFuSkxeBCndvPC/hC4bk3YyN6z+sjjggYixK RMhQB7Oxh+2tdKXtR5xQOAZSZGulZA9p5TVKrPBeR+CuKgTcx2LIFgDaMHWpyx37s3qq71 0aNpGObLg+m2K1RKwBtP2MYIOvBamsJZ28a7HLyYca5WA8jOolm7vQa3Ab2JEA== 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=1719951046; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/b4MA/+l4V2EIy2AlHzW2lYxVnYvvFFu0G84p01Siag=; b=JEXH4OcCuuz29F5QIwkZLpsThLHcRMqzoHBS4hlF5bgr0OXpSI3QgGvjEdlvvGnnFRcJFS ccVUsg/JeWR4jP8BTUawCUacef9InzNKm8YJDyz21VOiBMlzo0rIi4JItvA8pDWs1I4O3N cGcHpUfmaK7g59ZwzWpbtnLodt83pI00FHaY5iLcl7t4JUSAhfSKF/ETiedJ1C3Cg6nxin yOeGy7l1LB0vML5wrq65iNJinJqPf2ZwcSNjuNsnhjAbp8mAQivwdWFVypwKDojfK62EHp RmXF00+DdnW4LmoiCGkUws8vlNhsKzMCKXcCS5I8pNxC9hFM+tbZD93R63CPNg== Received: from [IPV6:fd:1965::2] (unknown [IPv6:2600:1700:ab1b:6800:2e0:edff:fece:8f27]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: leres) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WDDYd4lHPz1FD3; Tue, 2 Jul 2024 20:10:45 +0000 (UTC) (envelope-from leres@freebsd.org) Message-ID: Date: Tue, 2 Jul 2024 13:10:44 -0700 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: FreeBSD 14.x localhost source address To: Ronald Klop Cc: freebsd-stable@freebsd.org, Michael Proto References: <086405e2-8fc2-4463-b8bb-d6c652745ae1@freebsd.org> <7005d0ed-70ea-4c70-ac61-2a12e023cdd7@freebsd.org> <1298289263.3566.1719909620825@localhost> From: Craig Leres Content-Language: en-US In-Reply-To: <1298289263.3566.1719909620825@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 7/2/24 01:40, Ronald Klop wrote: > Could it be that this mail thread also applies to your situation? > https://lists.freebsd.org/archives/freebsd-current/2024-June/006047.html > > > It has a follow-up about a fix in > https://lists.freebsd.org/archives/freebsd-current/2024-June/006075.html > . It's very likely. I booted a 13.3 test system and a maskless lo2 ends up being /8: sea 3 # ifconfig lo2 create 127.0.0.2 sea 4 # ifconfig lo2 lo2: flags=8049 metric 0 mtu 16384 options=680003 inet 127.0.0.2 netmask 0xff000000 inet6 fe80::1%lo2 prefixlen 64 scopeid 0x4 groups: lo nd6 options=21 while 14.1 (incorrectly) results in a /24. Craig From nobody Tue Jul 2 22:11:45 2024 X-Original-To: freebsd-stable@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 4WDHFR5w63z5Pm0K for ; Tue, 02 Jul 2024 22:11:55 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from egress.chen.org.nz (egress.chen.org.nz [170.75.172.82]) by mx1.freebsd.org (Postfix) with ESMTP id 4WDHFQ5Xzlz44H0 for ; Tue, 2 Jul 2024 22:11:54 +0000 (UTC) (envelope-from jonc@chen.org.nz) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of jonc@chen.org.nz designates 170.75.172.82 as permitted sender) smtp.mailfrom=jonc@chen.org.nz Received: from mail.chen.org.nz (unknown [210.54.37.164]) by egress.chen.org.nz (Postfix) with ESMTP id 00FBF111E28 for ; Wed, 03 Jul 2024 10:11:36 +1200 (NZST) Received: from mail.chen.org.nz (localhost [127.0.0.1]) by filter.inside.chen.org.nz (Postfix) with ESMTP id BB28890F63 for ; Wed, 03 Jul 2024 10:11:45 +1200 (NZST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on ametrine.inside.chen.org.nz Received: from rainloop.jail (rainloop.jail [192.168.1.4]) by mail.chen.org.nz (Postfix) with ESMTP id 8AB1B91099 for ; Wed, 03 Jul 2024 10:11:45 +1200 (NZST) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Date: Tue, 02 Jul 2024 22:11:45 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: RainLoop/1.17.0 From: jonc@chen.org.nz Message-ID: <2458ffc88ffac503076c06cccafa0dc0@chen.org.nz> Subject: x11/nvidia-driver fails on 14-STABLE/amd64 To: freebsd-stable@freebsd.org X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.20 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_LONG(-1.00)[-0.998]; R_SPF_ALLOW(-0.20)[+a:egress.chen.org.nz]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_NO_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:174, ipnet:170.75.160.0/20, country:US]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[chen.org.nz]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4WDHFQ5Xzlz44H0 Hi, I updated my STABLE-14/amd64 to 1a0314d6e30554fc2b07caa5121b00956f416cc4 = (ctladm: Fix a race....), and it appears that the latest kernel update br= eaks x11/nvidia-driver. The system panics when X starts up. Just to be su= re I have rebuild and resinstalled x11/nvidia-driver with the updated /us= r/src present. /var/log/messages has the following errors: Jul 3 09:50:29 stormbringer kernel: ACPI Warning: \_SB.PC00.PEG1.PEGP._D= SM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (= 20221020/nsarguments-212) Jul 3 09:50:29 stormbringer kernel: Firmware Error (ACPI): Failure creat= ing named object [\_SB.PC00.PEG1.PEGP._DSM.USRG], AE_ALREADY_EXISTS (2022= 1020/dsfield-352) Jul 3 09:50:29 stormbringer kernel: ACPI Error: AE_ALREADY_EXISTS, Creat= eBufferField failure (20221020/dswload2-639) Jul 3 09:50:29 stormbringer kernel: ACPI Error: Aborting method \_SB.PC0= 0.PEG1.PEGP._DSM due to previous error (AE_ALREADY_EXISTS) (20221020/pspa= rse-689) Jul 3 09:51:52 stormbringer syslogd: kernel boot file is /boot/kernel/ke= rnel Jul 3 09:51:52 stormbringer kernel: NVRM: GPU at PCI:0000:01:00: GPU-db6= a2e9b-ba08-3668-c104-d55596af9efb Jul 3 09:51:52 stormbringer kernel: NVRM: Xid (PCI:0000:01:00): 79, pid= =3D'', name=3D, GPU has fallen off the bus. Jul 3 09:51:52 stormbringer kernel: NVRM: GPU 0000:01:00.0: GPU has fall= en off the bus. Jul 3 09:51:52 stormbringer kernel:=20 Jul=20 3 09:51:52 stormbringer syslogd: last message repeated 1 times Jul 3 09:51:52 stormbringer kernel: Fatal trap 12: page fault while in k= ernel mode Jul 3 09:51:52 stormbringer kernel: cpuid =3D 14; apic id =3D 38 Jul 3 09:51:52 stormbringer kernel: fault virtual address =3D 0x0 Jul 3 09:51:52 stormbringer kernel: fault code =3D supervisor read d= ata, page not present Jul 3 09:51:52 stormbringer kernel: instruction pointer =3D 0x20:0xff= ffffff85bae56c Jul 3 09:51:52 stormbringer kernel: stack pointer =3D 0x28:0xff= fffe01a894e5e0 Jul 3 09:51:52 stormbringer kernel: frame pointer =3D 0x28:0xff= fffe01adc85ce0 Jul 3 09:51:52 stormbringer kernel: code segment =3D base 0x0, lim= it 0xfffff, type 0x1b Jul 3 09:51:52 stormbringer kernel: =3D DPL 0, pres 1, long 1= , def32 0, gran 1 Jul 3 09:51:52 stormbringer kernel: processor eflags =3D interrupt ena= bled, resume, IOPL =3D 0 Jul 3 09:51:52 stormbringer kernel: current process =3D 1954 (Xor= g) Jul 3 09:51:52 stormbringer kernel: rdi: fffffe01a951f000 rsi: fffffe01a= e26f000 rdx: 0000000000000001 Jul 3 09:51:52 stormbringer kernel: rcx: 0000000000000000 r8: 000000000= 00000c0 r9: fffffe01adc858f0 Jul 3 09:51:52 stormbringer kernel: rax: 0000000000000000 rbx: fffffe01a= e26f000 rbp: fffffe01adc85ce0 Jul 3 09:51:52 stormbringer kernel: r10: 000000005237a738 r11: 000000006= 6847626 r12: 0000000000000000 Jul 3 09:51:52 stormbringer kernel: r13: fffffe01a951f000 r14: 000000000= 0000001 r15: fffffe01ade09008 Jul 3 09:51:52 stormbringer kernel: trap number =3D 12 Jul 3 09:51:52 stormbringer kernel: panic: page fault Jul 3 09:51:52 stormbringer kernel: cpuid =3D 14 Jul 3 09:51:52 stormbringer kernel: time =3D 1719957030 Jul 3 09:51:52 stormbringer kernel: KDB: stack backtrace: Jul 3 09:51:52 stormbringer kernel: #0 0xffffffff80b8002d at kdb_backtra= ce+0x5d Jul 3 09:51:52 stormbringer kernel: #1 0xffffffff80b32c51 at vpanic+0x13= 1 Jul 3 09:51:52 stormbringer kernel: #2 0xffffffff80b32b13 at panic+0x43 Jul 3 09:51:52 stormbringer kernel: #3 0xffffffff8100194b at trap_fatal+= 0x40b Jul 3 09:51:52 stormbringer kernel: #4 0xffffffff81001996 at trap_pfault= +0x46 Jul 3 09:51:52 stormbringer kernel: #5 0xffffffff80fd8458 at calltrap+0x= 8 When I reverted to my previous kernel, X started up without any issues. Cheers -- Jonathan Chen From nobody Tue Jul 2 23:24:14 2024 X-Original-To: stable@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 4WDJs84hKmz5Pg2b for ; Tue, 02 Jul 2024 23:24:28 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4WDJs51d7Mz4FvM for ; Tue, 2 Jul 2024 23:24:24 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dec.sakura.ne.jp header.s=s2405 header.b=KviL5kGQ; dmarc=pass (policy=none) header.from=dec.sakura.ne.jp; spf=pass (mx1.freebsd.org: domain of junchoon@dec.sakura.ne.jp designates 153.125.133.21 as permitted sender) smtp.mailfrom=junchoon@dec.sakura.ne.jp Received: from kalamity.joker.local (123-1-21-232.area1b.commufa.jp [123.1.21.232]) (authenticated bits=0) by www121.sakura.ne.jp (8.17.1/8.17.1/[SAKURA-WEB]/20201212) with ESMTPA id 462NOElh034785 for ; Wed, 3 Jul 2024 08:24:14 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dec.sakura.ne.jp; s=s2405; t=1719962654; bh=2HPb1ZVCvUMiD8jfcbcvnJ0ZPZFX3aHYFdP8cKhKqdU=; h=Date:From:To:Subject:In-Reply-To:References; b=KviL5kGQeOaS8/kEKT+Y7q7rpbcbKEzVt+bime7IE0ND26v7DIvmph0X1VBVrVdjs CLztOKro8K4QY7CQz7uXk/rP0TcYbWsnTEeV6zCLsEiOTrg3w4/kv6dboZTTt7TDyq RYF/06CMD5v64Cy7Ue1KEVwdFCXe/k4rKSdhRJRk= Date: Wed, 3 Jul 2024 08:24:14 +0900 From: Tomoaki AOKI To: stable@freebsd.org Subject: Re: x11/nvidia-driver fails on 14-STABLE/amd64 Message-Id: <20240703082414.572553dabee65d0f6dd129a1@dec.sakura.ne.jp> In-Reply-To: <2458ffc88ffac503076c06cccafa0dc0@chen.org.nz> References: <2458ffc88ffac503076c06cccafa0dc0@chen.org.nz> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.40 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[dec.sakura.ne.jp,none]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:153.125.133.16/28]; R_DKIM_ALLOW(-0.20)[dec.sakura.ne.jp:s=s2405]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP]; MIME_TRACE(0.00)[0:+]; HAS_ORG_HEADER(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[stable@freebsd.org]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[stable@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[dec.sakura.ne.jp:+] X-Rspamd-Queue-Id: 4WDJs51d7Mz4FvM On Tue, 02 Jul 2024 22:11:45 +0000 jonc@chen.org.nz wrote: > Hi, > > I updated my STABLE-14/amd64 to 1a0314d6e30554fc2b07caa5121b00956f416cc4 (ctladm: Fix a race....), and it appears that the latest kernel update breaks x11/nvidia-driver. The system panics when X starts up. Just to be sure I have rebuild and resinstalled x11/nvidia-driver with the updated /usr/src present. /var/log/messages has the following errors: > > Jul 3 09:50:29 stormbringer kernel: ACPI Warning: \_SB.PC00.PEG1.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20221020/nsarguments-212) > Jul 3 09:50:29 stormbringer kernel: Firmware Error (ACPI): Failure creating named object [\_SB.PC00.PEG1.PEGP._DSM.USRG], AE_ALREADY_EXISTS (20221020/dsfield-352) > Jul 3 09:50:29 stormbringer kernel: ACPI Error: AE_ALREADY_EXISTS, CreateBufferField failure (20221020/dswload2-639) > Jul 3 09:50:29 stormbringer kernel: ACPI Error: Aborting method \_SB.PC00.PEG1.PEGP._DSM due to previous error (AE_ALREADY_EXISTS) (20221020/psparse-689) > Jul 3 09:51:52 stormbringer syslogd: kernel boot file is /boot/kernel/kernel > Jul 3 09:51:52 stormbringer kernel: NVRM: GPU at PCI:0000:01:00: GPU-db6a2e9b-ba08-3668-c104-d55596af9efb > Jul 3 09:51:52 stormbringer kernel: NVRM: Xid (PCI:0000:01:00): 79, pid='', name=, GPU has fallen off the bus. > Jul 3 09:51:52 stormbringer kernel: NVRM: GPU 0000:01:00.0: GPU has fallen off the bus. > Jul 3 09:51:52 stormbringer kernel: > Jul 3 09:51:52 stormbringer syslogd: last message repeated 1 times > Jul 3 09:51:52 stormbringer kernel: Fatal trap 12: page fault while in kernel mode > Jul 3 09:51:52 stormbringer kernel: cpuid = 14; apic id = 38 > Jul 3 09:51:52 stormbringer kernel: fault virtual address = 0x0 > Jul 3 09:51:52 stormbringer kernel: fault code = supervisor read data, page not present > Jul 3 09:51:52 stormbringer kernel: instruction pointer = 0x20:0xffffffff85bae56c > Jul 3 09:51:52 stormbringer kernel: stack pointer = 0x28:0xfffffe01a894e5e0 > Jul 3 09:51:52 stormbringer kernel: frame pointer = 0x28:0xfffffe01adc85ce0 > Jul 3 09:51:52 stormbringer kernel: code segment = base 0x0, limit 0xfffff, type 0x1b > Jul 3 09:51:52 stormbringer kernel: = DPL 0, pres 1, long 1, def32 0, gran 1 > Jul 3 09:51:52 stormbringer kernel: processor eflags = interrupt enabled, resume, IOPL = 0 > Jul 3 09:51:52 stormbringer kernel: current process = 1954 (Xorg) > Jul 3 09:51:52 stormbringer kernel: rdi: fffffe01a951f000 rsi: fffffe01ae26f000 rdx: 0000000000000001 > Jul 3 09:51:52 stormbringer kernel: rcx: 0000000000000000 r8: 00000000000000c0 r9: fffffe01adc858f0 > Jul 3 09:51:52 stormbringer kernel: rax: 0000000000000000 rbx: fffffe01ae26f000 rbp: fffffe01adc85ce0 > Jul 3 09:51:52 stormbringer kernel: r10: 000000005237a738 r11: 0000000066847626 r12: 0000000000000000 > Jul 3 09:51:52 stormbringer kernel: r13: fffffe01a951f000 r14: 0000000000000001 r15: fffffe01ade09008 > Jul 3 09:51:52 stormbringer kernel: trap number = 12 > Jul 3 09:51:52 stormbringer kernel: panic: page fault > Jul 3 09:51:52 stormbringer kernel: cpuid = 14 > Jul 3 09:51:52 stormbringer kernel: time = 1719957030 > Jul 3 09:51:52 stormbringer kernel: KDB: stack backtrace: > Jul 3 09:51:52 stormbringer kernel: #0 0xffffffff80b8002d at kdb_backtrace+0x5d > Jul 3 09:51:52 stormbringer kernel: #1 0xffffffff80b32c51 at vpanic+0x131 > Jul 3 09:51:52 stormbringer kernel: #2 0xffffffff80b32b13 at panic+0x43 > Jul 3 09:51:52 stormbringer kernel: #3 0xffffffff8100194b at trap_fatal+0x40b > Jul 3 09:51:52 stormbringer kernel: #4 0xffffffff81001996 at trap_pfault+0x46 > Jul 3 09:51:52 stormbringer kernel: #5 0xffffffff80fd8458 at calltrap+0x8 > > When I reverted to my previous kernel, X started up without any issues. > > Cheers > -- > Jonathan Chen Did you tried rebuilding x11/nvidia-driver from ports AFTER INSTALLING NEW KERNEL AND WORLD? If yes, any of commits AFTER commit 620a6a54bb7bb6e1c5607092b6ec49e353e0925f [1] should broke something. (As I'm on the commit and x11/nvidia-driver 555.58 (overrided DISTVERSION and setting NO_CHECKSUM=YES on build) to try this new feature branch of driver) isworking fine. This case, if your old build is older than this and if you want fix for FreeBSD-SA-24:04.openssh, the above-mentioned commit is worth trying. Additional note: If you are using graphics/nvidia-drm-[515|61]-kmod port, you need to apply the patch attached at Bug 279539 [2] to build. And if you want to test 555 series of nvidia-drm*-kmod driver, you need to apply the diff at Differential revision D45400 of Phablicator [3], too. [1] https://cgit.freebsd.org/src/commit/?h=stable/14&id=620a6a54bb7bb6e1c5607092b6ec49e353e0925f [2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279539 [3] https://reviews.freebsd.org/D45400 -- Tomoaki AOKI From nobody Wed Jul 3 11:02:56 2024 X-Original-To: freebsd-stable@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 4WDcM76MPHz5Nxys for ; Wed, 03 Jul 2024 11:02:59 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDcM74jRMz4Z3M for ; Wed, 3 Jul 2024 11:02:59 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-79d5e61704eso324972385a.3 for ; Wed, 03 Jul 2024 04:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720004579; x=1720609379; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from:from:to :cc:subject:date:message-id:reply-to; bh=UeZLJoV12uj1JGm6as6d7u83EAz6KAce6Z+gxGwDLXk=; b=KJe8nCRsk+Wf6jZegBvWmtSR1hU4DxK8+Ze7yzjz/cDtHhnztfp9P7yb0lyKBsl/iw yeJ1csbtfU+sEcQlrJ8xjpAKdefOiBh8LI+UnvNi+PW0NrGy1opJIuHdg5E+VRJGbmzP JwPQUwl1tPCQHFNgbcz0fFJHsWRalh2YkBt5kR682LwUQYd79x3esTpT1S4EaIxnn4sT KWN/x8DwSSS3jxB2DcXf8clNYIKGWwFk52BrVtgZMYBno/AmR5h6oK6KSJOnnT9GJA62 46c7bMFBxWhVRStYbBFY4/gyiuCpLj4feM05TW1nEEy61vfWXRtetkckCPyvaF+H8gmV f2wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720004579; x=1720609379; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UeZLJoV12uj1JGm6as6d7u83EAz6KAce6Z+gxGwDLXk=; b=a+KohsRuwiYCiOnMtFV1u5iR+Bild/FNtofwPGZjm4pwHSez23tOmGZmncJduekA9+ qiI2djzhKiGLsFACvX8pU3E4Ka3zpDn6FFAu4ddHW1wfoMHtvgxuE2Cu6BAwTvdaRw8S a90U+ZWajB4M9brJAMO38fOh9HPmJM51+nhmHCBckVGuRxDDGyazmM8OJb5vT3xpwjwl NpQHTweXiPDnz9/BtsP+1qRzGW5/lXiQwjqcpJcuED/yqIR0ssVsnb/lnUcyKXAKYWN5 6ERq91DVTeItsGmRaOVAs2Fn+7aiohcaynsnYK7ebLSx27f7PySG44zzD2/QDmVUbYYA tleQ== X-Gm-Message-State: AOJu0YzM51F7CpyKe/KyohYVnjBhTOoRGF4SkmHbtEH34OrfaolV02aE bOb777cPw/YaVtZtjDqpIZqpHPRHFlpC61sOEbTERasb1VOcNncPikpkiA== X-Google-Smtp-Source: AGHT+IGhOYE9BL8FiwTdwR3tOHQa7WTTOUR1WT3Gj04Jw+XasP7MONPxjD6hhoZTDC0R8VldyoEzSg== X-Received: by 2002:a05:620a:5792:b0:79d:60c2:59f with SMTP id af79cd13be357-79d7b9cd38dmr1133410185a.32.1720004578710; Wed, 03 Jul 2024 04:02:58 -0700 (PDT) Received: from ?IPV6:2600:1015:a032:296:2e77:508e:7788:27ac? ([2600:1015:a032:296:2e77:508e:7788:27ac]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-446514984b6sm48744721cf.68.2024.07.03.04.02.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jul 2024 04:02:58 -0700 (PDT) From: Steven Friedrich X-Google-Original-From: Steven Friedrich Message-ID: <18cda2f4-0e31-42bf-bae1-a3dccc7ac1ec@gmail.com> Date: Wed, 3 Jul 2024 07:02:56 -0400 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: freebsd hdmi audi To: Dave Cottlehuber Cc: FreeBSD Stable References: <3d40cb00-9fbb-4809-b6d9-fa40944cc62c@app.fastmail.com> Content-Language: en-US In-Reply-To: <3d40cb00-9fbb-4809-b6d9-fa40944cc62c@app.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4WDcM74jRMz4Z3M Which specific CPUs are producing sound on hdmi port?  Are you running an external monitor on the dell laptop? My systems contain; i3-7100 (Kaby Lake), i7-8700 (Coffee Lake), i7-10700 (Comet Lake). I suspect that with each CPU variation, Intel moved control registers/bits around. I'm using i915kms.ko and hdasnd.ko (I believe).  I can spin up a machine and do kldstat... On 7/2/24 07:20, Dave Cottlehuber wrote: > On Tue, 2 Jul 2024, at 03:56, Steven Friedrich wrote: >> Linux routes sound from the audio driver to the video driver causing >> sound to come out of the HDMI cable. FreeBSD can't. This affects ALL i3, >> i5, i7, i9 systems. >> FreeBSD can't even support x11 on my GMKtec K8 with Radeon 780M >> graphics. Linux Mint does. > Hi Steven > > Perhaps you can be more specific here about what's not working. > > Here I've got: > > - dell xps13 i7 [1] & intel nuc i5 > - in 14.1-RELEASE and CURRENT > - capable of playing audio & video via HDMI > - I use the drm-kmod drivers & X11 not wayland > > Can you link: > - what freebsd version this is for > - relevant parts of your dmesg for just 1 system > - if X doesn't start at all, whats in xorg logs? > - what kmods / video drivers you have set up on it > - set `sysctl hw.snd.verbose=2` and then attach `/dev/sndstat` info > > More info is in https://docs.freebsd.org/en/books/handbook/multimedia/ > > I use mpg123 or mpv for quick tests, for audio & video respectively. > > [1]: https://wiki.freebsd.org/Laptops/Dell_XPS13_9360 > > A+ > Dave From nobody Wed Jul 3 17:27:03 2024 X-Original-To: freebsd-stable@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 4WDmtZ252Lz5PpNT for ; Wed, 03 Jul 2024 17:27:18 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-22.consmr.mail.gq1.yahoo.com (sonic301-22.consmr.mail.gq1.yahoo.com [98.137.64.148]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDmtX6C6lz4Ks9 for ; Wed, 3 Jul 2024 17:27:16 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=A18eFz2c; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.148 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1720027635; bh=PDI5rXVtiCdHCoJhssgfS58yOz/SrrJiH0rxHbsSn7Q=; h=From:Subject:Date:Cc:To:References:From:Subject:Reply-To; b=A18eFz2c2vpJka1CJZAvFWwNDHvxQ00XP0rJuotI9zDxaU+UqksXOygMtB2kw6xwanKdsetXYAvEMLIKzSO5oDHJl0w2Vd+nxRRfNh6Flq1FV9vs8q9CZSXgo5vavgN54VJUm1RjhzcucyCz+s8JHjxTy3mnomGPr2EG62uBzk9QclWLKRUs6ZmZkVjrjgDk0UKK8OB/IUjc9KRaZNBbijdkP6CgQxsmVJPYTKYd7YjDMSDHyNsQgvYfuscGZ3PlzsjHd0ZXJbR6msPAzIqNAcTyY13snHKbk7mUq6EI0fMjkASJ6bvMWZy7+BcFhUuOPv5jjs/j2eeNFdNtfe2Yzg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1720027635; bh=7Qa9XOwMxWGhi1B5HzLo0ER3huRieUj1rv+LEjxuaa6=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=mLl9gSVaoi0mJgANGMNLyTn1Kv/62P1GrHVdcWWwEk0N2Jfa/Q0YRI0u79fvPSq2Tk9ez+Tweuk5ptvf9Va6tM/ONDP8VEk3UiDoCKAccPFmqIXFKLxsTAI2GLp285HYoRaHWOh/oobM6Zmjb9VE/5UwEFwJaWAPBJNSuhL7kwOJ+u8ZplnGK7fmKPbRAK/SdGNkOx3WH/H6kjvpVSbntRww9ZLANGvot+4Ie98ivjWo7pfwVAUInCSjzqhhpj8TSX8sWOwBYPdcYWM6D0MWvjuj84UVkDYzFiVQLJmW9Iyayx+JyDRBRzMKOa/xLXMCZUGlgX/fL677qjArH9P69A== X-YMail-OSG: ndTIhawVM1l_4d.73n8_a8bYdeze9mZ36cesmuPHWw1WtRfknhs1QycOPw4oyRn cbF0bJGSjSHkyy2h_pDZa34N10RUc5r.37tZISZV9Gnphppink7tvFBYvY3dkS22F.8hBAFXTVf7 uLgm2CI9S7B9_C.hlTnD9KMvS_XrDIcfW2jhEpIHhGeZUI5BvConZsm6mMvgDk0x8pLkUF_3eIMK UfSZxaoyluFtuwBF0FfDNjqfIVLYxHEcVfAArl0OUfrWl2PwpAqMU8zuN4NJ7uhKTKPIHoe8Gnpl MHsKv_PnBh7b4pJ42lUHXl3UP4ztdqekEd_8NXt0XsWyoBKblgoUklfctSKjZZuY7eiSD0xZaANg 0DO5vAja1iwuCqeyUldYSsDUyYp78FSYu_deNxK1vDUZXqQXDz_8KrUgCrWpyIswjiPMvzch_PHY 7n5J5NsMcZ95F4CaqbMUOKkhIAxTWR.SnclLKt1e2SDeSD6ZUOqMWZePOIYB8KSQJwHE62SjjTsJ krxkc4W7mHqKOs2DfDCVolpzyPVYi3OKyF9bBM5Q1TiT2Nkvnm8P9BZSzE6fF6HKNpjbJz3rlJyL POx30vf3Wbjnv.VlW_e.UYL.ylgVLa52phWRh0Dj1bpeb1OFe.fCKNcYTrF0DfmMfjXy7fF9KYCs Jc4glr7nASyM3C1ZVka.gwjlj7fDg7TJxBDg.0LTIRt5VVTynlkq8AtUnqbRbAXIMoq.1OngOw11 4GBGIMqayUrjL6g.troyN74cMBnZAEeR4iap8UZvykZG.PE6m1qhKCERtz200GAi8_E_It0JOiNh ZFDtTpHQ7ZlFkPQgzYltatzCOjKZdyeQk_922a3NKXLW2R6R305e8SB6z9MKHljRdq9WjkT1hULq xlH2gqE1.Du3Gq7hIxxn_Aer0KkJjkm2be71CG47xu67mWilMMPDUo.eJDwRe3_Ni1Hxoq71ZZ8v jzol83zP86rR5cMmtZ.Ee12TOWH7tewALrTa.9RUTB1kPJKSW7WaenwSNT9TbrDRNdayUmSmI4_b 4rhTu71NSUkX5jVPyA0vuWBfB4aTOQlmjeN_yOHMqBDNjC3on6ahzswMNRuvg39rtk6kHVd9OVUO 6lI2zhjYAQz1.E.mgcEi2zuqb_V1O5HRD811ABn5BCveR5SFKvbROVw0bGcVEhTkF.cP2q7jzFgt LaxhvpokNp5YKtKJDM9KX0.D145rS_Qn7xu2MDlISwvdTe07RbocBZWWmIKQitFbBIblnhtZ_CCe ZFTIqXLy8DbtCZjkJBx6AssMX07t7iowwhz4sBn.CmT_VHZ7mDvMoGWfOk.5I5dcRIwL8nsePZFg V9JGyuMj8f9kmZgLueUybU5NcYtUDzGKwR1OJ5.WXE0nXWMo16Df0DebQ1VzGG8jOj9w3nJ8C5Ha Gtkj.lZ6hZnV4nve4nPT7qflXHObhLflKfWJLq4I90M_HOElXArDjzAzGEyA1jikj2oVLm1kzj8R VMPpicdfWbhzZc5W2vgzYD09Kcq2G9Hv0rwwwhTnD0yRCws7APAvgbl_8Vpa9cclpMyRjjINRod4 kpejuK1CPqeu.rvYodovghBvY11LSLXiXLa0d4YmswI6cS3J5kSvxzaxWsbEYOAcVPIIfTIDFwnX xX2CdX2arxAG08jsh2UsooaxUK1ss1DSl.lYVZgtH9qhZXllQr91vdTvmrjYjeYBzRdVIfkre3kW n5y31mIWxpWrX7d8mdM5eR_vi0KVa0Ul_N0iKsy7vPz46Dq8vlZ5ctn4fSItpFs1VVfJUDTxuSAM CuqNgaU7t3r1B_PlUacwX7i0te7cz9Ge75uM8UW1TmsjW6md8FX6YC0v2NyXWrir_VgZiLnjeS3k 5RhwszS9LsdPFl3h8M_L20uSc5DGIVALjTU4s88HEowGFar5KKql8YPo8jOddQqZv2mXf2Z42bYT 0qIvdykBQpD3RMBbH_WTLGIiP0LJSW3WsB5CJlY.na7FpgnOEzWSp2dyyWSxGM6S3to5MHkVIqxW JF2G7WhoKQFiZTfQWsvwRQiRglTOM.jxp3iS5sWiNesiViZrTtKjiZZ6SnE.b490IQOikJhOaUaQ cMMUBnRHqbtmmNuhJ0l6cjlAMgOsScphmUJPMzyQxi9cOsgN6oD5HSxBdlHj29gVuu9cU2z43ZyC Wd.XCMvF.kYzj.vpr.A5ajyAIdtt9oALs0whxM9ZDCksfOcDd57Q00ra.YNujDR9BTgsYptqbEGt T5ufZicfBaXS4wszFPCmlwKY36TppMjY2PRyqM0O8GTwH5fDD_.S5lOtBE5LyU..eGmPu2_c_fPf Zrvg3.g-- X-Sonic-MF: X-Sonic-ID: 02910de0-252c-47a1-b6c7-5b1fbb1e9364 Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Wed, 3 Jul 2024 17:27:15 +0000 Received: by hermes--production-gq1-5b4c49485c-55gxp (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 6a37b35cf1eab8a55b1d51f7919d7a48; Wed, 03 Jul 2024 17:27:13 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: pkg_https:// failures related to, for example, "SSL certificate problem: certificate is not yet valid" Message-Id: <5667D5C0-44F7-4B40-8F63-50D5973D220D@yahoo.com> Date: Wed, 3 Jul 2024 10:27:03 -0700 Cc: Karl Denninger To: Philip Paeps , FreeBSD-STABLE Mailing List X-Mailer: Apple Mail (2.3774.600.62) References: <5667D5C0-44F7-4B40-8F63-50D5973D220D.ref@yahoo.com> X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.83 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.83)[-0.828]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[yahoo.com:+]; TO_DN_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_THREE(0.00)[3]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.148:from]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.148:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim] X-Rspamd-Queue-Id: 4WDmtX6C6lz4Ks9 =46rom a bugzilla comment frombeing blocked from working on an issue (not my entry): QUOTE ( of https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280038#c37 = ) Well this is a problem with that image and getting enough installed to = be able to do anything like, oh, pkgbase it forward.... root@generic:~ # uname -v FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC freebsd root@generic:/home # pkg install git The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: y Bootstrapping pkg from = pkg+https://pkg.FreeBSD.org/FreeBSD:14:aarch64/quarterly, please wait... Certificate verification failed for /CN=3Dpkg.freebsd.org 0020616CE1680000:error:0A000086:SSL = routines:tls_post_process_server_certificate:certificate verify = failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1890: ..... pkg: Error fetching = https://pkg.FreeBSD.org/FreeBSD:14:aarch64/quarterly/Latest/pkg.txz: = Authentication error A pre-built version of pkg could not be found for your system. Consider changing PACKAGESITE or installing it from ports: = 'ports-mgmt/pkg'. So it would appear that bootstrapping pkg is boned on releng/14.1 for = the Pi at the moment. I shall have to wait until a snapshot shows up I = can grab or this is corrected. END QUOTE Note the "pkg+https://". I had separate problems yesterday that I side stepped by testing use of just "pkg+http://", which worked. See: https://lists.freebsd.org/archives/freebsd-pkgbase/2024-July/000416.html pkg with -d for the https context had its debug output reporting: * SSL certificate problem: certificate is not yet valid It happened to be using 204.15.11.66:443 for the https activity. =3D=3D=3D Mark Millard marklmi at yahoo.com From nobody Wed Jul 3 22:00:29 2024 X-Original-To: freebsd-stable@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 4WDty51hK8z5QNHP for ; Wed, 03 Jul 2024 22:00:45 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDty43zxgz4qky for ; Wed, 3 Jul 2024 22:00:44 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (mx1.freebsd.org: domain of freebsd-stable@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=freebsd-stable@m.gmane-mx.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sP81k-000979-Q0 for freebsd-stable@freebsd.org; Thu, 04 Jul 2024 00:00:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Anton Shepelev Subject: Need help controlling laptom display brightness via sysctl Date: Thu, 4 Jul 2024 01:00:29 +0300 Message-ID: <20240704010029.75608a4e49205eb38a6034be@gmail.com> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) X-Spamd-Bar: + X-Spamd-Result: default: False [1.69 / 15.00]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_HAM_SHORT(-0.99)[-0.986]; NEURAL_SPAM_MEDIUM(0.98)[0.978]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; ONCE_RECEIVED(0.10)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:24940, ipnet:116.202.0.0/16, country:DE]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; FROM_NEQ_ENVFROM(0.00)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4WDty43zxgz4qky Hello, all. I need your help in setting up the brightness control on my HP 15-b0xx laptop via sysctl. Upon perusal of the following materials: https://docs.freebsd.org/en/books/handbook/config/#acpi-config https://forums.freebsd.org/threads/laptop-setting-display-brightness.80524/ I added kld_list="i915kms acpi_hp acpi_video" to rc.conf, activated the `intel' interface modes in sysctl variables, in loader.conf: hw.i915kms.enable_dpcd_backlight=3 compat.linuxkpi.i915_enable_dpcd_backlight=3 (standard interface (=1) does not work either). Made sure that the modules are loaded with kldstat: 2 1 0xffffffff82c18000 1b3920 i915kms.ko 9 1 0xffffffff82e67000 3288 acpi_hp.ko 11 1 0xffffffff82e6f000 4388 acpi_video.ko And listed the relevant sysctl variables: hw.i915kms.enable_dpcd_backlight: 3 hw.i915kms.invert_brightness: 0 hw.acpi.video.lcd0.levels: 80 50 0 1 <...> 100 hw.acpi.video.lcd0.economy: 50 hw.acpi.video.lcd0.fullpower: 80 hw.acpi.video.lcd0.brightness: 50 hw.acpi.video.lcd0.active: 0 compat.linuxkpi.i915_enable_dpcd_backlight: 3 compat.linuxkpi.i915_invert_brightness: 0 First, I noticed that .lcd0.active above is 0, which probably means that sysctl thinks my display inactive. Trying to set it to unity, however, has no effect: hw.acpi.video.lcd0.active: 0 -> 0 with nothing new in dmesg. [Perhaps] consequentyly, sysctl hw.acpi.video.lcd0.brightness=70 is obeyed, but the actuall visible brightness is not affected. On the other hand, backlight 70 has the takes visible effect, but the sysctl values stay the same. This is my pciconf output for the display device: vgapci0@pci0:0:2:0: class=0x030000 rev=0x07 hdr=0x00 vendor=0x8086 device=0x1916 subvendor=0x103c subdevice=0x8328 vendor = 'Intel Corporation' device = 'Skylake GT2 [HD Graphics 520]' class = display subclass = VGA I have found nothing interesting in dmesg outoput, so here it is in full: I have FreeBSD 14.1 (stable). From nobody Wed Jul 3 22:28:02 2024 X-Original-To: freebsd-stable@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 4WDvYg5y39z5QR8J for ; Wed, 03 Jul 2024 22:28:07 +0000 (UTC) (envelope-from christos@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDvYg3M63z4tt0; Wed, 3 Jul 2024 22:28:07 +0000 (UTC) (envelope-from christos@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720045687; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=nOLvjNniGTmPRM32ne8FgPrsZmIqLQUNqonhHs7nLeU=; b=rOksB92VquH9YN2dgebYl1nmMG14Fyeod1RtUxerVc0KM3Xn+AVQqY7xIsC8eCmJvTu7+D //IMuJxtt7D2MyNDN5GmQixFrT9yYfHGqTjljgEp1TdoB2AlaesAgYsP8Vfb2jCN7LNHos IZxdfS1xAIJ5QEl+YCtbuZOkoWTqfiqvznWlzPImOuzgOgxWolbATBJz8gaJGFTB5VMKIg 8GkgRUjXUNu+a8/ojj9UjiRw7JR7LAP9PjdAyVHMOHqss82la/tp36usEKTh+yuqANpASQ /FfCfUy6EnAOMcMbvELtTtbanYzlKiZu7xDQrMxYoFap6hsY8csEc5PKNWNNzw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720045687; a=rsa-sha256; cv=none; b=oj2p11WtJ1sgZCi06VTBiSd4m5mznWgKJAVu/ASDGfjNZ+6y6q2XdzVlyCxTctVNHa5sWu h4CJ7ChJHaHid0vx83CVmIeHqjuuEWBu3S3jsW4S/hA2j6khF27AtdgsSuGsyoOrEvWyJ7 QuOA0pxXDdHUXK/9F033odGBuUb9md1k48aiL3qOCx4I7pSo5F74HqXWAK5BidVDOnv1ir +odITPKZpkk5gdk9XqL56f1c4qcEalnZC9LMn6lAylRnqdLIuHFnCRqjxZlOWgzSUNvo2l Jukr2KOFSoXpI0MAEln8o9Wk3/IEZLuENkxOfayyOpUfQxbkihQeYgmQl9TrXw== 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=1720045687; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=nOLvjNniGTmPRM32ne8FgPrsZmIqLQUNqonhHs7nLeU=; b=A1WRL4RnLLNBnIIkK24af7eSBHOQH19KUwPvXJH9UYimjNnV3ZRAM6rEvqWP6wjFS2VnW5 mqyCwQM9/umDFG/X1rTe3JVhwzFv1QH7xg0UjKSmUusQUJH7I7chrmxWrmZPShEOWlg3VT phz9NoMiZC7x/qhaxhBfpY3EqvJiDX5ucVtw0GjfLPsl5tUK+FduQQAqu9m9zWbegk8FSK 6lKX3SS5Sb4+Z8thallo3XFII5dWSq6D0rMoyGGl9pmB3qcKiPh2brhKt+CAnExXHMcbQz MMUx0TtfGalWwR6E8R6hfgCTMfQ74tT0QHn748fMupZ3KquHqEUwCJrNJkdsaA== Received: from margiolis.net (mail.margiolis.net [95.179.159.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) (Authenticated sender: christos/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WDvYf6p1BzJJ5; Wed, 3 Jul 2024 22:28:06 +0000 (UTC) (envelope-from christos@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=mail; bh=qNZ4oLqz82WZLhs tOeHihW2rLlne4Bbk7M3rsnGOBfY=; h=in-reply-to:references:subject:cc:to: from:date; d=margiolis.net; b=D9FrhEf3Z7O3CLd6BMPn4IFsYdJStqe/UrGeax9q 5vmMzNU/TKECZgsdcfMrNZLxkvVJ2jYWW8LXzZ6UJ78ocoRl3gIpc23e7a33duDQXZ6EeT dW0JAqQF5qJ8a6rM725McJ2WoMr9ZoekvnwyzePk8aiEp2DojMJXGMQFqzpIo= Received: from tpad (ip-45-81-121-44.ask4internet.com [45.81.121.44]) by margiolis.net (OpenSMTPD) with ESMTPSA id deeed907 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 3 Jul 2024 22:28:03 +0000 (UTC) Date: Thu, 4 Jul 2024 00:28:02 +0200 From: Christos Margiolis To: Anton Shepelev Cc: freebsd-stable@freebsd.org Subject: Re: Need help controlling laptom display brightness via sysctl Message-ID: References: <20240704010029.75608a4e49205eb38a6034be@gmail.com> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240704010029.75608a4e49205eb38a6034be@gmail.com> Hello Anton, Anton Shepelev wrote: > [...] > > sysctl hw.acpi.video.lcd0.brightness=70 > > is obeyed, but the actuall visible brightness is not > affected. > > [...] I opened a bug report about the same issue a while ago: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279184 Christos From nobody Wed Jul 3 22:38:52 2024 X-Original-To: freebsd-stable@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 4WDvpH4y35z5QSnP for ; Wed, 03 Jul 2024 22:39:03 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDvpG6T7Jz4wpb for ; Wed, 3 Jul 2024 22:39:02 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (mx1.freebsd.org: domain of freebsd-stable@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=freebsd-stable@m.gmane-mx.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sP8cu-0000Ww-Cv for freebsd-stable@freebsd.org; Thu, 04 Jul 2024 00:39:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Anton Shepelev Subject: Re: Need help controlling laptom display brightness via sysctl Date: Thu, 4 Jul 2024 01:38:52 +0300 Message-ID: <20240704013852.304b47a98db5677fb1464ee2@gmail.com> References: <20240704010029.75608a4e49205eb38a6034be@gmail.com> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) X-Spamd-Bar: / X-Spamd-Result: default: False [-0.49 / 15.00]; NEURAL_HAM_SHORT(-0.86)[-0.857]; NEURAL_HAM_MEDIUM(-0.79)[-0.795]; MV_CASE(0.50)[]; NEURAL_SPAM_LONG(0.46)[0.459]; FORGED_SENDER(0.30)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; R_SPF_ALLOW(-0.20)[+mx]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:24940, ipnet:116.202.0.0/16, country:DE]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; FROM_NEQ_ENVFROM(0.00)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4WDvpG6T7Jz4wpb Christos Margiolis: > I opened a bug report about the same issue a while ago: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279184 Very well. I suggest that you inlclude the all the information that I provided in my original message: 1. The relevant parts of /boot/loader.conf 2. The relevant parts of /etc/sys.rc 3. The relevant lines from `kldstat' 4. Your hardware specifications, including the `pciconf' output about your video card. If you (or whever) has this working, please let us know the value of the `hw.acpi.video.lcd0.active' sysctl variable. From nobody Wed Jul 3 22:53:39 2024 X-Original-To: freebsd-stable@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 4WDw7C36wgz5QTyc for ; Wed, 03 Jul 2024 22:53:43 +0000 (UTC) (envelope-from christos@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDw7B59xqz4yjp; Wed, 3 Jul 2024 22:53:42 +0000 (UTC) (envelope-from christos@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720047222; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jYQ3ZFXXsQFi1lHqUyukKnA+rhIKcaeARO0yITKPU3M=; b=MdhYTIFmIPvKkXCA0dXKP8oqrlHnld36aR/VMwW9235AxTZzNnaj2rhv9xw6sv4vgzOCqT TTnVfcC23xvmaz+4x4aIZad5xS+lX8tOYqXVrJw2lHTqrwHmWlfEBbboihPdx6dQmzEwYN 2C4okX7IIfTyq/renAbjVifLNFllp2KuCw23dBQdZ8WiEtiQ6bBCz3gX+RJnz21ZMlW1Tj eKZKIyuOh1QFZi7BhrGfCSUUCq0YqilsaNKI3aCQXOID+g8k6J5uUb7iZAd7BXs+etnnU1 LoIBRlpvvI0yKs+TqkIf2W/Fmmnq3ZMkQG8Va5RcwuG/0QxIygqDIit51Xat8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720047222; a=rsa-sha256; cv=none; b=oiKnAgEoV9ipqJSLR4AQIVi+13UbJT3uh29bjkHrGuVeodKuFPnM5vahbUBIBjQgwRBG1h rrk058SRdb4M3SpYaNeP2ohfGxRJv+7UKLMaNoXQKWGOZv48vIlqNLL+L9FD6AjEsGd8VX ohgomVDHeWTyjDVu529mFVGpYznW/HD6tPzX1VJwp+RhIR421Rhr99TYqpz0oUBxSpzwu9 ULu/NhH2Tot57EVlemHkG0AZkjfYg+d7xCOYk4FlfnLuyFqrkjSLgOLbk7657aEvHH0gDz FpeUc5KpU02Zb1+ITxn/CBk2RcpVmS8A8EHEOT176FyPHAcJgJ4JPM7XM/C0YQ== 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=1720047222; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=jYQ3ZFXXsQFi1lHqUyukKnA+rhIKcaeARO0yITKPU3M=; b=Rtc8NYVo4lCePI01WLKxTEkA9NL9dvmLeLarM+4A6fNhPUx/Q1Hw0Jl31OrJU22kMneC3/ 6yhRG8v1PVOVClIwMHNGAhYNYIJ5W7LgXjQcfwURwM9ADkc/KWO2lGFgVrPJcUCcUDuK9s 9EVKWmFIwN7ioYgl0HU0OfnA3dQmCHoWuVODUG8s5auox9absOKUsskqhFKcYx036ZDobb qhQJVfh091wPq4bW/zYR8AlL3oozwGRFGi8jT/KrijqT4grFvuPVm4UOWOvFHpoUwp4Na1 FlQoMy9+Nbyhp6BaFtnJXNZ7+Ap4KmwwbNEwdrBB/70vWsUu+p2+UnD24O4wVQ== Received: from margiolis.net (mail.margiolis.net [95.179.159.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) (Authenticated sender: christos/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WDw7B2Z6rzH4b; Wed, 3 Jul 2024 22:53:42 +0000 (UTC) (envelope-from christos@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=mail; bh=Fd5IeJ3cAsxUi33 hbd3aVJnxk8l7Vgbxt7SN3ey8kAE=; h=in-reply-to:references:subject:cc:to: from:date; d=margiolis.net; b=iYJcMEwyTWbt7ROWy4E6752u66VI2PGU5MN8VY8V /sA+v5R61o1twdmmRy5rRkNnI423M8EsqojwWlUGBPCSWa9gna9r73z3uwjedOlEzNxObD XxFpkbxkLycRSHs9Kgm3jfuG/LrKq1HUB4pmtoTapwvt79L4YO22AYSVXUUio= Received: from tpad (ip-45-81-121-44.ask4internet.com [45.81.121.44]) by margiolis.net (OpenSMTPD) with ESMTPSA id 11e95a0b (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 3 Jul 2024 22:53:40 +0000 (UTC) Date: Thu, 4 Jul 2024 00:53:39 +0200 From: Christos Margiolis To: Anton Shepelev Cc: freebsd-stable@freebsd.org Subject: Re: Need help controlling laptom display brightness via sysctl Message-ID: References: <20240704010029.75608a4e49205eb38a6034be@gmail.com> <20240704013852.304b47a98db5677fb1464ee2@gmail.com> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240704013852.304b47a98db5677fb1464ee2@gmail.com> Anton Shepelev wrote: > Christos Margiolis: > > > I opened a bug report about the same issue a while ago: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279184 > > Very well. I suggest that you inlclude the all the > information that I provided in my original message: > > 1. The relevant parts of /boot/loader.conf > 2. The relevant parts of /etc/sys.rc > 3. The relevant lines from `kldstat' > 4. Your hardware specifications, including the `pciconf' > output about your video card. > > If you (or whever) has this working, please let us know the > value of the `hw.acpi.video.lcd0.active' sysctl variable. I haven't solved it yet, but my hw.acpi.video.lcd0.active is 0 as well. Also feel free to add the information in my bug report. :) Christos From nobody Wed Jul 3 23:00:59 2024 X-Original-To: freebsd-stable@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 4WDwHp5r0Gz5QVnX for ; Wed, 03 Jul 2024 23:01:10 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDwHp1yjDz51D7 for ; Wed, 3 Jul 2024 23:01:10 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (mx1.freebsd.org: domain of freebsd-stable@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=freebsd-stable@m.gmane-mx.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sP8yK-0009WT-3z for freebsd-stable@freebsd.org; Thu, 04 Jul 2024 01:01:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Anton Shepelev Subject: Re: Need help controlling laptom display brightness via sysctl Date: Thu, 4 Jul 2024 02:00:59 +0300 Message-ID: <20240704020059.2445da1f6f67ca5d9b24f6d9@gmail.com> References: <20240704010029.75608a4e49205eb38a6034be@gmail.com> <20240704013852.304b47a98db5677fb1464ee2@gmail.com> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) X-Spamd-Bar: + X-Spamd-Result: default: False [1.76 / 15.00]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_MEDIUM(1.00)[0.998]; NEURAL_HAM_SHORT(-0.94)[-0.935]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; R_SPF_ALLOW(-0.20)[+mx]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:24940, ipnet:116.202.0.0/16, country:DE]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; FROM_NEQ_ENVFROM(0.00)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4WDwHp1yjDz51D7 Christos Margiolis to Anton Shepelev: > > If you (or whever) has this working, please let us know > > the value of the `hw.acpi.video.lcd0.active' sysctl > > variable. > > I haven't solved it yet, but my hw.acpi.video.lcd0.active > is 0 as well. If you happen to run 13.2 again, or upgrade to 15 and it starts working, please make a not of it. By way of a workaround, you can use the `backlight' utility. > Also feel free to add the information in my bug report. :) I cannot add anything about your situation with your hardware. From nobody Thu Jul 4 00:10:07 2024 X-Original-To: stable@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 4WDxqd6lYSz5GkvY for ; Thu, 04 Jul 2024 00:10:21 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4WDxqZ3pZkz3xlX for ; Thu, 4 Jul 2024 00:10:17 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dec.sakura.ne.jp header.s=s2405 header.b=lL0vBkvs; dmarc=pass (policy=none) header.from=dec.sakura.ne.jp; spf=pass (mx1.freebsd.org: domain of junchoon@dec.sakura.ne.jp designates 153.125.133.21 as permitted sender) smtp.mailfrom=junchoon@dec.sakura.ne.jp Received: from kalamity.joker.local (123-1-21-232.area1b.commufa.jp [123.1.21.232]) (authenticated bits=0) by www121.sakura.ne.jp (8.17.1/8.17.1/[SAKURA-WEB]/20201212) with ESMTPA id 4640A7gB037067 for ; Thu, 4 Jul 2024 09:10:08 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dec.sakura.ne.jp; s=s2405; t=1720051808; bh=e0/nL6Bpr1YMafI4nszPTkm9VpgGG+yHwyWUsJXlshs=; h=Date:From:To:Subject:In-Reply-To:References; b=lL0vBkvs8MV9gYCUOshPgwFjCiKwzTZbWryryAtwK+g07hS9u2rD+YNWzmDeVkyti 3FbwMVXDjbyS4QjEGJNIh+jDTQ/0/vHK9ljybHZ6I6MwCSXWFhZ8zdDx05fxZ0sMRc CxyF/rjL+eLF0br8G0eo0SO03345wTn3W/s6HaRU= Date: Thu, 4 Jul 2024 09:10:07 +0900 From: Tomoaki AOKI To: stable@freebsd.org Subject: Re: x11/nvidia-driver fails on 14-STABLE/amd64 Message-Id: <20240704091007.5dc5f7a41bf12f8f764a896d@dec.sakura.ne.jp> In-Reply-To: <20240703082414.572553dabee65d0f6dd129a1@dec.sakura.ne.jp> References: <2458ffc88ffac503076c06cccafa0dc0@chen.org.nz> <20240703082414.572553dabee65d0f6dd129a1@dec.sakura.ne.jp> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.40 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[dec.sakura.ne.jp,none]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:153.125.133.16/28]; R_DKIM_ALLOW(-0.20)[dec.sakura.ne.jp:s=s2405]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP]; MIME_TRACE(0.00)[0:+]; HAS_ORG_HEADER(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[stable@freebsd.org]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[stable@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[dec.sakura.ne.jp:+] X-Rspamd-Queue-Id: 4WDxqZ3pZkz3xlX On Wed, 3 Jul 2024 08:24:14 +0900 Tomoaki AOKI wrote: > On Tue, 02 Jul 2024 22:11:45 +0000 > jonc@chen.org.nz wrote: > > > Hi, > > > > I updated my STABLE-14/amd64 to 1a0314d6e30554fc2b07caa5121b00956f416cc4 (ctladm: Fix a race....), and it appears that the latest kernel update breaks x11/nvidia-driver. The system panics when X starts up. Just to be sure I have rebuild and resinstalled x11/nvidia-driver with the updated /usr/src present. /var/log/messages has the following errors: > > > > Jul 3 09:50:29 stormbringer kernel: ACPI Warning: \_SB.PC00.PEG1.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20221020/nsarguments-212) > > Jul 3 09:50:29 stormbringer kernel: Firmware Error (ACPI): Failure creating named object [\_SB.PC00.PEG1.PEGP._DSM.USRG], AE_ALREADY_EXISTS (20221020/dsfield-352) > > Jul 3 09:50:29 stormbringer kernel: ACPI Error: AE_ALREADY_EXISTS, CreateBufferField failure (20221020/dswload2-639) > > Jul 3 09:50:29 stormbringer kernel: ACPI Error: Aborting method \_SB.PC00.PEG1.PEGP._DSM due to previous error (AE_ALREADY_EXISTS) (20221020/psparse-689) > > Jul 3 09:51:52 stormbringer syslogd: kernel boot file is /boot/kernel/kernel > > Jul 3 09:51:52 stormbringer kernel: NVRM: GPU at PCI:0000:01:00: GPU-db6a2e9b-ba08-3668-c104-d55596af9efb > > Jul 3 09:51:52 stormbringer kernel: NVRM: Xid (PCI:0000:01:00): 79, pid='', name=, GPU has fallen off the bus. > > Jul 3 09:51:52 stormbringer kernel: NVRM: GPU 0000:01:00.0: GPU has fallen off the bus. > > Jul 3 09:51:52 stormbringer kernel: > > Jul 3 09:51:52 stormbringer syslogd: last message repeated 1 times > > Jul 3 09:51:52 stormbringer kernel: Fatal trap 12: page fault while in kernel mode > > Jul 3 09:51:52 stormbringer kernel: cpuid = 14; apic id = 38 > > Jul 3 09:51:52 stormbringer kernel: fault virtual address = 0x0 > > Jul 3 09:51:52 stormbringer kernel: fault code = supervisor read data, page not present > > Jul 3 09:51:52 stormbringer kernel: instruction pointer = 0x20:0xffffffff85bae56c > > Jul 3 09:51:52 stormbringer kernel: stack pointer = 0x28:0xfffffe01a894e5e0 > > Jul 3 09:51:52 stormbringer kernel: frame pointer = 0x28:0xfffffe01adc85ce0 > > Jul 3 09:51:52 stormbringer kernel: code segment = base 0x0, limit 0xfffff, type 0x1b > > Jul 3 09:51:52 stormbringer kernel: = DPL 0, pres 1, long 1, def32 0, gran 1 > > Jul 3 09:51:52 stormbringer kernel: processor eflags = interrupt enabled, resume, IOPL = 0 > > Jul 3 09:51:52 stormbringer kernel: current process = 1954 (Xorg) > > Jul 3 09:51:52 stormbringer kernel: rdi: fffffe01a951f000 rsi: fffffe01ae26f000 rdx: 0000000000000001 > > Jul 3 09:51:52 stormbringer kernel: rcx: 0000000000000000 r8: 00000000000000c0 r9: fffffe01adc858f0 > > Jul 3 09:51:52 stormbringer kernel: rax: 0000000000000000 rbx: fffffe01ae26f000 rbp: fffffe01adc85ce0 > > Jul 3 09:51:52 stormbringer kernel: r10: 000000005237a738 r11: 0000000066847626 r12: 0000000000000000 > > Jul 3 09:51:52 stormbringer kernel: r13: fffffe01a951f000 r14: 0000000000000001 r15: fffffe01ade09008 > > Jul 3 09:51:52 stormbringer kernel: trap number = 12 > > Jul 3 09:51:52 stormbringer kernel: panic: page fault > > Jul 3 09:51:52 stormbringer kernel: cpuid = 14 > > Jul 3 09:51:52 stormbringer kernel: time = 1719957030 > > Jul 3 09:51:52 stormbringer kernel: KDB: stack backtrace: > > Jul 3 09:51:52 stormbringer kernel: #0 0xffffffff80b8002d at kdb_backtrace+0x5d > > Jul 3 09:51:52 stormbringer kernel: #1 0xffffffff80b32c51 at vpanic+0x131 > > Jul 3 09:51:52 stormbringer kernel: #2 0xffffffff80b32b13 at panic+0x43 > > Jul 3 09:51:52 stormbringer kernel: #3 0xffffffff8100194b at trap_fatal+0x40b > > Jul 3 09:51:52 stormbringer kernel: #4 0xffffffff81001996 at trap_pfault+0x46 > > Jul 3 09:51:52 stormbringer kernel: #5 0xffffffff80fd8458 at calltrap+0x8 > > > > When I reverted to my previous kernel, X started up without any issues. > > > > Cheers > > -- > > Jonathan Chen > > Did you tried rebuilding x11/nvidia-driver from ports AFTER INSTALLING > NEW KERNEL AND WORLD? > > If yes, any of commits AFTER commit > 620a6a54bb7bb6e1c5607092b6ec49e353e0925f [1] should broke something. > (As I'm on the commit and x11/nvidia-driver 555.58 (overrided > DISTVERSION and setting NO_CHECKSUM=YES on build) to try this new > feature branch of driver) isworking fine. > This case, if your old build is older than this and if you want fix for > FreeBSD-SA-24:04.openssh, the above-mentioned commit is worth trying. > > Additional note: > If you are using graphics/nvidia-drm-[515|61]-kmod port, > you need to apply the patch attached at Bug 279539 [2] to build. > > And if you want to test 555 series of nvidia-drm*-kmod driver, you need > to apply the diff at Differential revision D45400 of Phablicator [3], > too. > > [1] > https://cgit.freebsd.org/src/commit/?h=stable/14&id=620a6a54bb7bb6e1c5607092b6ec49e353e0925f > > [2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279539 > > [3] https://reviews.freebsd.org/D45400 > > -- > Tomoaki AOKI Updated stable/14 to commit 342053a66c161c12f6887efac913c80040959ae8, which is the next commit to the reported one. X starts as usual. So any of commits between 620a6a54bb7bb6e1c5607092b6ec49e353e0925f and 342053a66c161c12f6887efac913c80040959ae8 doesn't seem to matter, at least for 555.58 of new feature branch x11/nvidia-driver. And note that I'm running on nvidia discrete GPU, disabling Intel iGPU in my CPU via firmware configuration. And the same version of the driver is working on main branch of base at commit 59c21ed6e811c753f7806766ba45a5bfa71ae2ed. As main branch is just a test bed environment, it's not yet updated to the commit fixing openssh. My daily driver is stable/14. BTW, how are you start X? And on which commit was your working kernel built from? If you auto start X on boot via something like xdm, it could mask the cause of the panic, at least one reason. If you are loading nvidia[-modeset].ko via /boot/loader.conf, never attempt to do so. Remove or comment out the line from /boot/loader.conf and add the module on kld_list variable in /etc/rc.conf[.local]. If you start X from command line with startx and the cause was as above, you should see the panic on loading the module. If your previous working kernel was old enough to be called "giant step", i.e. from older stable branch like stable/12, things could be much more complexed. -- Tomoaki AOKI From nobody Thu Jul 4 00:47:20 2024 X-Original-To: freebsd-stable@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 4WDyfN6Hsgz5Gqnd for ; Thu, 04 Jul 2024 00:47:24 +0000 (UTC) (envelope-from philip@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDyfN5Wnqz43lh; Thu, 4 Jul 2024 00:47:24 +0000 (UTC) (envelope-from philip@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720054044; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RM728fe72ifX/lEMkBu+G5HCFLRvHc4HlpkshWmyKC0=; b=d207FLYlQ0R4UZ1PoVRy1Si3hgfTr6qedRQSFV8xBAef9IsGTizEicZtX7APZOGM1NiFTt QDkHiQ/baHGCwWM91nLCBKZiGYgDakRNwCUMbusYOblQf9yIWi5Vt9UwCYuH6YXCwbo8u1 QEgphd1igEn8GFumE9lBT73kp3WSwQZflGnjvrW1RAspRo3n6F7IXIk+Z8FRTX8x/8I4WZ Q8kIEImVlr1hxJRGHQE0JqsfctdW0EH2XigtB7K4l/ILaIUBr8Nem0K4ESZN0VQ5BxJhYu uQWVjUvErdLx0fhzZBxWP5vjPIPrAdtn6Byxw2M55Q5M0Vs72uXDQlRinF3/hA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720054044; a=rsa-sha256; cv=none; b=HiGwYGvcpZdLq3auYijul1G6V2Srzg7azgdFjLB/vpx1Rbb/2R74rDayM3NwFCPBYC1Z1s EMTjipNcpQY5asmRg8qT8nuGeoFeI5r1ccFTquWtaavXZGCfLUCOfmlBPzZ8gIhbnKlnXe +9HZXiACYUAsCaVEDDub8b19PDv3EETglz8PayBstJXVZrBTh0CbdJ3XELKGffMx7qfBc5 0O1nCa1Y7bilTtmy0AO54FX7ydQ6blf/g3wpSruopB3pteK5RfzCjqPpZxfIf9CWR19N1H ZjqK8l+iST2ji7tIQn2HpDj461B9qSw3AmSLRrV/UuJT87r9C4+ChSxWPqm6CQ== 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=1720054044; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RM728fe72ifX/lEMkBu+G5HCFLRvHc4HlpkshWmyKC0=; b=IsEevW5kv3Dv4rbimto4SLKA+DrC/YFSRxhGzm+Y4BvUhUkM0yHbnTk8UV6GCj9sYHgAQW /iK23SEhnaXpxtpGDkqg3RSGrViDMxQ4h1vBELSUpjsN6Wxa1SQhcC2J1Q614YVqHpHQ2H 5onjlvrWEMc4v2TZrayRUGgXIDhJ9wBRuc3dCSgAhw6PMJodXDVfB2QwfnKwviytBBD781 lB8wcCeyGErsZRMkXnvhJ/NxE7h3Qhn+V6ozjoBbh/sWFBHOH+QqQcGygBMx8kKA3MlF2/ GAHdzlhnRS91ovFPesP70PDN8DMiL38w8nFv5pL8tEW1D0GcVdWqjeC3lUhRbg== Received: from fauth1-smtp.messagingengine.com (fauth1-smtp.messagingengine.com [103.168.172.200]) (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) (Authenticated sender: philip/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WDyfN4KkSzLgS; Thu, 4 Jul 2024 00:47:24 +0000 (UTC) (envelope-from philip@freebsd.org) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfauth.nyi.internal (Postfix) with ESMTP id B63241200043; Wed, 3 Jul 2024 20:47:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 03 Jul 2024 20:47:23 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudekgdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffoffkjghfgggtsehttdhmtdertddtnecuhfhrohhmpefrhhhilhhi phcurfgrvghpshcuoehphhhilhhiphesfhhrvggvsghsugdrohhrgheqnecuggftrfgrth htvghrnhepvdehheekgffhieetheetudduuefhvdegtedtiefhffelueetgeegtedutddt udefnecuffhomhgrihhnpehfrhgvvggsshgurdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphhhihhlihhpodhmvghsmhhtphgruhht hhhpvghrshhonhgrlhhithihqdduudeiiedviedvgeekqddvfeehudektddtkedqphhhih hlihhppeepfhhrvggvsghsugdrohhrghesthhrohhusghlvgdrihhs X-ME-Proxy: Feedback-ID: ia691475d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 3 Jul 2024 20:47:22 -0400 (EDT) From: Philip Paeps To: Mark Millard Cc: FreeBSD-STABLE Mailing List , Karl Denninger Subject: Re: pkg_https:// failures related to, for example, "SSL certificate problem: certificate is not yet valid" Date: Thu, 04 Jul 2024 08:47:20 +0800 X-Mailer: MailMate (1.14r6038) Message-ID: <0377045B-3DF8-4B25-9075-6F67F9E7194B@freebsd.org> In-Reply-To: <5667D5C0-44F7-4B40-8F63-50D5973D220D@yahoo.com> References: <5667D5C0-44F7-4B40-8F63-50D5973D220D.ref@yahoo.com> <5667D5C0-44F7-4B40-8F63-50D5973D220D@yahoo.com> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; format=flowed On 2024-07-04 01:27:03 (+0800), Mark Millard wrote: > Bootstrapping pkg from > pkg+https://pkg.FreeBSD.org/FreeBSD:14:aarch64/quarterly, please > wait... > Certificate verification failed for /CN=pkg.freebsd.org > 0020616CE1680000:error:0A000086:SSL > routines:tls_post_process_server_certificate:certificate verify > failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1890: As far as I can tell, at the time of this writing, all fifteen pkg.freebsd.org sites have the same certificate, and OpenSSL is happy with it. > Note the "pkg+https://". > > I had separate problems yesterday that I side stepped by > testing use of just "pkg+http://", which worked. See: Use pkg+http. This is the default. Packages are signed. Transport layer security does not provide any additional security. (Anticipating the usual argument: it doesn't provide privacy either - packages are trivially fingerprinted by file size.) > pkg with -d for the https context had its debug output > reporting: > > * SSL certificate problem: certificate is not yet valid Does the system being bootstrapped have a real-time clock? Common causes for this error are clocks set to 1970-01-01 or 2000-01-01. > It happened to be using 204.15.11.66:443 for the https activity. For what it's worth: 204.15.11.66 = pkg0.tuk.freebsd.org. root@pkg0.tuk:~ # openssl x509 -noout -in /etc/clusteradm/acme-certs/pkg.freebsd.org.crt -dates notBefore=Jun 1 20:26:18 2024 GMT notAfter=Aug 30 20:26:17 2024 GMT Philip From nobody Thu Jul 4 01:51:53 2024 X-Original-To: freebsd-stable@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 4WF0554rzsz5MjXk for ; Thu, 04 Jul 2024 01:52:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-22.consmr.mail.gq1.yahoo.com (sonic310-22.consmr.mail.gq1.yahoo.com [98.137.69.148]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WF0552QRTz4ClG for ; Thu, 4 Jul 2024 01:52:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1720057926; bh=Al8eEWO3oaT4v3QeRoftEM6YPaTOEkbUGN0BfO7UwrE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=jCwKaKnKqUUciJPq0xXxOmUIZ3tTXSHohdXQkNRVU3BeCddb5y+EM2u2a2YpsmOWlQvNMSACXMusmaLM9BHKvCDvfkGnTbg5yugtsQHWbPQi6OLBl7xc4N3HVdQdem3jy6rntz8oNz1Ywj82vDWi+k9uiHXpoVZxy2KFjybFotRLRhONSsG3SncQA61E+7+8e2s5aIXfCRVS4mvfvyBXSUEiJfRsdFweJtYARCRMEpSGTt0NhvHBX4r/+tN1n9Q7zChHVBRUHcpTDLnQEpWaA5Cck3MRy0PXc1V0fr1neZkpYXbNlSuhMo2LuTPt6u8RyCYzMhqE0XNrtRzQnV0Gfw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1720057926; bh=AFMadzLTrRLw7w+6WZtPWKWjiWVnel6B9fEa4UkQWll=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=HoKj5RP7YQ2DmwqGs+HirLhY0+mVvwq9OVLAYqDN0TJVr0xQbsdqFEGkIPVl1f1aYacPM0IgYlTUEkVcGeGxMlpjF4QuT4heNREkdw4uCkqS7RBdNI9sF3z7hi3+LntCe5lXANAPJ5o3W2xyICa0fyiuOcNv6riGRAZl+nXlVnbJB5HnzAukZFdzdW1z4qJ+fBoP0e3W3dlUG3FdKh+Z8YdWzOYHNpaNLAR21QTPfPvTODYyHvbThZMryNRSuqdSCZm+QzzrPGeS7MF3puGLVUWBWTD3u3EodV7bO0LQOhmwZ3Cj3x/QI8ovbmQ8JTB5vE0Jyld4X+bUBJf8BXxVAQ== X-YMail-OSG: eTf.MOUVM1mZ6aL6VCgJWCDjOYHgNY2702R7NUU0V1kh56cAGKOS6kijUpntdpN 6wIm6RC_rfAz8tHuqRfvZxiWsqjEfQ2fcQSrjCuT12TAAugoZcvb.LXe.8agUz9AFiZRwcA8zEtA AWF.7xYH8e..VvssuyPoA87gbmpfsoHEuI8af5klss.H598Wo1No2oVc5fm68FY6VjeTkWPvR3Hf ogCI9z05IuOXj69yn8TlIczXn6mbpxg.9SLx5DFwPgnwa_oHc9NetF6LZx1VYBPi0IOwwNbEVR3e IX3jdrdgIuTFFVnQpT6P9M6QclEtcGE8azsv4GeC9rKxkLip6YJ16dupIGVXIJhh4ORoowS8us75 YgWMwLBN2npGhJZuqevuwK34Xjvu8KaY8hS9Shk9CunfOM5Y94cdAkwR6QIpDrOqNb2avxgjKVlA utc0DfkwZ6VXxXfsWC3s.93SAU6vfAhHVZzCFt1tPb0AoOHM_nlWG7G3h4.DWjeteCJBb1TqexWi qpZ5hcWWwV5CUCGosWWqWLoiWnNeLi1PJ1GnOt112i9K2sstsQzLGvIa760CT.3HACzuRZXpjQTc 31bJhixgiM3FCgkDjBHAtAhzqo5ocuXlS9xwiOdtXGxKdv.oUToVXMWc56qHFlUne_NosRQEtlED uXLY6YpeWLWTAhgbhJwyyDjyLfeDLyZiWlKVuwHs9mRs2GED2DZxUyl6aACONzN34YMpy4.e1osL g2OwDij8IK3pxrIBVtoD_ZhJSeEFLqhxlHet_crQ5hpIkZhAix8mQTkKyJABrZqSkhbRGjpdVh.f XkqcNd1R5R78RS0xZn02.y3In_DQJi5z.6N_gCGaIfkI03Zpvph8VPSxKSvHwT0XcgPCRzoTEjem GnyJgYQAeMUL_MReN4T3uScPkokU3IdVjOCeTXhO_F09MXK.IzdlC3WdutFXZFqFxnBplRttmTpW 9GTDc.CuRlqmN6u8JmpBoty_dsPuXDbyG5d00d3bxVHwThBsSeN2wcHGJJcCgc5PzILzNERH4ML0 S7lfJv7evlyzpirqj_5hpALJ.Iudlr6_WqWbVhLyGpLyaCJAW0pfN5e3D8JEpJ_MqBJo1_TX2ZT7 SSxbNGDp5QrLJ3dIUzhYlTW1YmhcGMxmA3mtBiUSh58qTD22zS5QOO0a2YfyhZiK8NvDfsMnQfcL 9jETvG6CbKBNrhsIZpxMd7_VFf.Q49VTaB2h90T5_HKxihOiC7zqECfgmoWurHK9057AdY4Cd1tE 9GWlHob5K64vHcAtxXATXSZLGl8YzSi_f5UKIiszEjbOF77ID0yzt._US8Q.cF5oHWU.MAm1ekMD E_.iJ1oNrHhVAVmqJO6TNKbZcnvHk9dezGgm0hGomWv6SJDrfirijc3PtPTBv8ThT3wW.7oB69RG 3QuNJz06pj7vymg29HPROOwnOT8z0djI0Jy_pWyhNOBZIE7losMaUIWskrjcPylBmk0r8RcEYvBY OWzHzU3y_knS.6m9sOknKQZFpC2MQsYEQOmO_fnoCzRU1oyBMHa1tGf3.hUkeBe87XP_Sc58j7sI LuN58VMXCRpMBgbM33uiZfZiCswoBlf.waUH1Eu0Ft9QQKVbB7WGf.LC0F_vfElhPvEJ80H10vwv ufjGGu5QFl0d.fLhMCQxSDTrY3fgDyf2GNVSxTE7vk4Pem0oBCH9x149GphXS75jBzVih.WUbbad I1.S5rrLxnc8ghMXQw01SFtQTu2ZQuDpmWiPDCLcKi1Impsc2qCFvcv0JpfyaBabNvJ1FbhWcPDh xeuMCj.FwNwvCtCgmu7UJRx4iGrhgzTWjJwetQ2LHvkqFz9.Jc2FBKFE3th745HqY6TH_PZ_5PSl hVmhnKFIYOOPNvSNkileJDfIkqv__9JiCsaL32evEPjpvp3YNbW2y4NZ810Q6UeAqijw4bWjlFnl z5t_oEgcCaJKGfe3dd9DaNvaE7q7D00Uhrcc7gNr8FHYOfQQsbnubqnqx7Kd_HAh0YQ0LJ27k.Oe QBBBJqbV5NJ1d9XFCZp7tVPyjGxtf9jvNsrCl2bBQRR49W2xaadRaDvoTtPraJnLX7g4HUa3POe3 PBmPyr6anpIXvzTk4eMcWduecjaStrRO7crZOKA5VCa.RdvXIHyWUZlkHRd0HM2WKw5AoZAcVMef qwquZMIKH1ZWef_aDeJzrmHoSH.SZxvYdDA8am6Baj_dvxc2VX2btlrUAPxTTROrFqLJL9huRt3K bgRTVozhW_ciyl9Muy9n9W11CRcYnH1GkHXHhCUQL8nuuFcbALDxTANvabtZbj_SCcPbP2.p5lQo - X-Sonic-MF: X-Sonic-ID: d5ffc138-4330-4d20-a612-fc010a7db673 Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Thu, 4 Jul 2024 01:52:06 +0000 Received: by hermes--production-gq1-5b4c49485c-pghqv (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID dc02e9543f42435bb01faf460cfd61f8; Thu, 04 Jul 2024 01:52:04 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: pkg_https:// failures related to, for example, "SSL certificate problem: certificate is not yet valid" From: Mark Millard In-Reply-To: <0377045B-3DF8-4B25-9075-6F67F9E7194B@freebsd.org> Date: Wed, 3 Jul 2024 18:51:53 -0700 Cc: FreeBSD-STABLE Mailing List , Karl Denninger Content-Transfer-Encoding: quoted-printable Message-Id: <769FF550-3F6F-4825-ACF5-6E9043D7F1C7@yahoo.com> References: <5667D5C0-44F7-4B40-8F63-50D5973D220D.ref@yahoo.com> <5667D5C0-44F7-4B40-8F63-50D5973D220D@yahoo.com> <0377045B-3DF8-4B25-9075-6F67F9E7194B@freebsd.org> To: Philip Paeps X-Mailer: Apple Mail (2.3774.600.62) 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:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Queue-Id: 4WF0552QRTz4ClG On Jul 3, 2024, at 17:47, Philip Paeps wrote: > On 2024-07-04 01:27:03 (+0800), Mark Millard wrote: >> Bootstrapping pkg from = pkg+https://pkg.FreeBSD.org/FreeBSD:14:aarch64/quarterly, please wait... >> Certificate verification failed for /CN=3Dpkg.freebsd.org >> 0020616CE1680000:error:0A000086:SSL = routines:tls_post_process_server_certificate:certificate verify = failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1890: >=20 > As far as I can tell, at the time of this writing, all fifteen = pkg.freebsd.org sites have the same certificate, and OpenSSL is happy = with it. >=20 >> Note the "pkg+https://". >>=20 >> I had separate problems yesterday that I side stepped by >> testing use of just "pkg+http://", which worked. See: >=20 > Use pkg+http. This is the default. Hmm: # grep http /usr/src/usr.sbin/pkg/FreeBSD.conf.* /usr/src/usr.sbin/pkg/FreeBSD.conf.latest: url: = "pkg+https://pkg.FreeBSD.org/${ABI}/latest", /usr/src/usr.sbin/pkg/FreeBSD.conf.quarterly: url: = "pkg+https://pkg.FreeBSD.org/${ABI}/quarterly", Releases, snapshots, pkgbase, and artifacts all explicitly end up with https in /etc/pkg/FreeBSD.conf What the pkg program has as a default (if anything) is not in use for such. And I likely made all variants that I added as /usr/local/etc/pkg/repos/*.conf files based on copying /etc/pkg/FreeBSD.conf and then editing the copy, leaving the https in place. Again the .conf files matter, not the program defaults. > Packages are signed. Transport layer security does not provide any = additional security. (Anticipating the usual argument: it doesn't = provide privacy either - packages are trivially fingerprinted by file = size.) I was just following the standard materials FreeBSD provides. I'd not have made the argument that you reference. I just figured FreeBSD was already using what folks more expert than I had classified as the thing to use for the most part. >> pkg with -d for the https context had its debug output >> reporting: >>=20 >> * SSL certificate problem: certificate is not yet valid >=20 > Does the system being bootstrapped have a real-time clock? Common = causes for this error are clocks set to 1970-01-01 or 2000-01-01. /var/log/messages confirms the time issue for my example boots that had the problem: it stayed back at Mar 16, not updating via ntpd as it normally does. (That date is probably from UFS. The system had not been booted since back then.) >> It happened to be using 204.15.11.66:443 for the https activity. >=20 > For what it's worth: 204.15.11.66 =3D pkg0.tuk.freebsd.org. Yep, I'd found that. pkg0.tuk.freebsd.org is the expected place for my context. > root@pkg0.tuk:~ # openssl x509 -noout -in = /etc/clusteradm/acme-certs/pkg.freebsd.org.crt -dates > notBefore=3DJun 1 20:26:18 2024 GMT > notAfter=3DAug 30 20:26:17 2024 GMT >=20 Mar 16 is not in that range, for sure. Relative to the system, the certificate was in the future, matching the wording presented. It does seem that /etc/pkg/FreeBSD.conf should avoid the https notation so that it presents an appropriate default. Thanks much, Mark =3D=3D=3D Mark Millard marklmi at yahoo.com From nobody Thu Jul 4 02:11:11 2024 X-Original-To: freebsd-stable@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 4WF0W81lXvz5MlM9 for ; Thu, 04 Jul 2024 02:11:16 +0000 (UTC) (envelope-from philip@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WF0W81HnNz4FBn; Thu, 4 Jul 2024 02:11:16 +0000 (UTC) (envelope-from philip@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720059076; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=L4jfw15fx6IeJCEs6iswmm2B+QoM86oC1xk5t9KZzSw=; b=c32fiVYMXhqwoem4Te4Hi3Q8fh2QBbodWNupYLIIotOYvGhCj0pBq/E+7nVRmXSmCICqtu KfDSXxvhG2orTws5qH+p5ONv8aF/M3pP2xEVRP/Hc4ZBruBjKLGYppfElZsYJXWXZPuoaW pECtnf55J23BofQ1UgyONBaopHijOXiUzsxVwlbstZnEgsFNF5O86fNHEfXXfRv5RmgR6c qSEEyOCQHYiqH5Tga8rPBX4AmwvAhipfX48m0DBp0PPSz4F8Ir/Wa0EveXYWEUjtl86Qsp fzN8GAr2qjsROrGPL5k8Pd/gWzlRfyb2PoW3gLDeLZ4OFmUQWn+kxx63l6fgIA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720059076; a=rsa-sha256; cv=none; b=VKk/9m0zvlD8hLpVtIJVmH0+r4GNrSGM+tISBop33SpLbews/yby+hjEUWyuVldfY6spQm ySgU3Ibvch9eS7oYCTvtdiCIfWusOhzda/D3NDlOI6I+c4K5KkPJNwuX1G/8CbmAGQP5/f Gn4SfXFG23y7L0qFMe0UK4DXj7SosuDNwlw9tzFMEmORUnpfVxBt+7zO+Sr66zqaYGhPg5 2AnSdafWbAvwuVE1aDLQWbD2KK86CKD5b0ruWaRclebz/AJbwHHleEMB8OfG5p9ylemQR2 NHenkdSnRa1dHQx705XQKJ4ePN363pLp+CtKBbAfv5/8LyaOt7coCyXzUA/kAw== 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=1720059076; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=L4jfw15fx6IeJCEs6iswmm2B+QoM86oC1xk5t9KZzSw=; b=AxSFsRDoOSg5OaHJdlY/qpnH4aIGMdLboi36ityXonNleCfLFJ1QBqv3duAhQRJnChkhIk T06eBBpyVnDnVcLhKlxki5k7dIYAadbv68NidTbdH+J/y+AoR8bsaobu3LyF9w7zUM2ENB Rx3+g8CKxnIUIqIgf9YbTezJats2lo0ZLm6NxXccs5GIrercxhAziXopiQQyHd9lRf2VOL 9iM26uiomqh9oi2IpT7s5a87g8q5ExVlsl73209yB5LF4X5p4bX4en1jQ8TSYtj6KBjdy8 wcGVBszMln1iT1wSG7GFj6CofGf95x350pfa5X6baP5k1jwj3hGYnqOh5nQaFg== Received: from fauth1-smtp.messagingengine.com (fauth1-smtp.messagingengine.com [103.168.172.200]) (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) (Authenticated sender: philip/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WF0W774YjzL70; Thu, 4 Jul 2024 02:11:15 +0000 (UTC) (envelope-from philip@freebsd.org) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfauth.nyi.internal (Postfix) with ESMTP id 2143C120006B; Wed, 3 Jul 2024 22:11:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 03 Jul 2024 22:11:15 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudekgdehgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffoffkjghfgggtsehttdhmtdertddtnecuhfhrohhmpefrhhhilhhi phcurfgrvghpshcuoehphhhilhhiphesfhhrvggvsghsugdrohhrgheqnecuggftrfgrth htvghrnhepvdehheekgffhieetheetudduuefhvdegtedtiefhffelueetgeegtedutddt udefnecuffhomhgrihhnpehfrhgvvggsshgurdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphhhihhlihhpodhmvghsmhhtphgruhht hhhpvghrshhonhgrlhhithihqdduudeiiedviedvgeekqddvfeehudektddtkedqphhhih hlihhppeepfhhrvggvsghsugdrohhrghesthhrohhusghlvgdrihhs X-ME-Proxy: Feedback-ID: ia691475d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 3 Jul 2024 22:11:13 -0400 (EDT) From: Philip Paeps To: Mark Millard Cc: FreeBSD-STABLE Mailing List , Karl Denninger , Baptiste Daroussin Subject: Re: pkg_https:// failures related to, for example, "SSL certificate problem: certificate is not yet valid" Date: Thu, 04 Jul 2024 10:11:11 +0800 X-Mailer: MailMate (1.14r6038) Message-ID: <2AFD1E26-C71D-41D0-BA46-E64DFCE5C8EC@freebsd.org> In-Reply-To: <769FF550-3F6F-4825-ACF5-6E9043D7F1C7@yahoo.com> References: <5667D5C0-44F7-4B40-8F63-50D5973D220D.ref@yahoo.com> <5667D5C0-44F7-4B40-8F63-50D5973D220D@yahoo.com> <0377045B-3DF8-4B25-9075-6F67F9E7194B@freebsd.org> <769FF550-3F6F-4825-ACF5-6E9043D7F1C7@yahoo.com> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; format=flowed On 2024-07-04 09:51:53 (+0800), Mark Millard wrote: > On Jul 3, 2024, at 17:47, Philip Paeps wrote: >> On 2024-07-04 01:27:03 (+0800), Mark Millard wrote: >>> Bootstrapping pkg from >>> pkg+https://pkg.FreeBSD.org/FreeBSD:14:aarch64/quarterly, please >>> wait... >>> Certificate verification failed for /CN=pkg.freebsd.org >>> 0020616CE1680000:error:0A000086:SSL >>> routines:tls_post_process_server_certificate:certificate verify >>> failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1890: >> >> As far as I can tell, at the time of this writing, all fifteen >> pkg.freebsd.org sites have the same certificate, and OpenSSL is happy >> with it. >> >>> Note the "pkg+https://". >>> >>> I had separate problems yesterday that I side stepped by >>> testing use of just "pkg+http://", which worked. See: >> >> Use pkg+http. This is the default. > > Hmm: > > # grep http /usr/src/usr.sbin/pkg/FreeBSD.conf.* > /usr/src/usr.sbin/pkg/FreeBSD.conf.latest: url: > "pkg+https://pkg.FreeBSD.org/${ABI}/latest", > /usr/src/usr.sbin/pkg/FreeBSD.conf.quarterly: url: > "pkg+https://pkg.FreeBSD.org/${ABI}/quarterly", > > Releases, snapshots, pkgbase, and artifacts all explicitly > end up with https in /etc/pkg/FreeBSD.conf Sorry. The default does seem to have changed to HTTPS since I last looked. The commit log suggests it was done only because it is now possible. I don't think it's a good idea. It only adds work (and work is heat) for no benefit. >>> pkg with -d for the https context had its debug output >>> reporting: >>> >>> * SSL certificate problem: certificate is not yet valid >> >> Does the system being bootstrapped have a real-time clock? Common >> causes for this error are clocks set to 1970-01-01 or 2000-01-01. > > /var/log/messages confirms the time issue for my example > boots that had the problem: it stayed back at Mar 16, not > updating via ntpd as it normally does. (That date is > probably from UFS. The system had not been booted since > back then.) That's what I suspected. And this is another reason why HTTPS is a terrible default for pkg. I don't think we should require a system to keep (reasonably) accurate time in order to be able to download packages. > It does seem that /etc/pkg/FreeBSD.conf should avoid > the https notation so that it presents an appropriate > default. I agree. Adding bapt@ to Cc:. I think this needs to be reverted. It should probably also be an errata candidate so folks running releases can update packages even when their clocks get out of sync. In addition to needlessly generating heat, pkg+https reduces the overall security of the system by making it more difficult for some installations to receive updates. For the avoidance of doubt: I completely support HTTPS as a default for web traffic. Privacy is important. But pkg downloads are not web traffic. Philip From nobody Thu Jul 4 07:49:17 2024 X-Original-To: freebsd-stable@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 4WF81M4KG0z5PK9T for ; Thu, 04 Jul 2024 07:49:27 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from egress.chen.org.nz (egress.chen.org.nz [170.75.172.82]) by mx1.freebsd.org (Postfix) with ESMTP id 4WF81M1GLvz4r2r for ; Thu, 4 Jul 2024 07:49:27 +0000 (UTC) (envelope-from jonc@chen.org.nz) Authentication-Results: mx1.freebsd.org; none Received: from mail.chen.org.nz (unknown [210.54.37.164]) by egress.chen.org.nz (Postfix) with ESMTP id 94646111E28; Thu, 04 Jul 2024 19:49:08 +1200 (NZST) Received: from mail.chen.org.nz (localhost [127.0.0.1]) by filter.inside.chen.org.nz (Postfix) with ESMTP id 08A07912B5; Thu, 04 Jul 2024 19:49:18 +1200 (NZST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on ametrine.inside.chen.org.nz Received: from [192.168.1.10] (jade.inside.chen.org.nz [192.168.1.10]) by mail.chen.org.nz (Postfix) with ESMTPS id EF964912B4; Thu, 04 Jul 2024 19:49:17 +1200 (NZST) Message-ID: <5811fe64-43ab-4922-934c-e2f78c4ffc36@chen.org.nz> Date: Thu, 4 Jul 2024 19:49:17 +1200 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: x11/nvidia-driver fails on 14-STABLE/amd64 To: Tomoaki AOKI , freebsd-stable@freebsd.org References: <2458ffc88ffac503076c06cccafa0dc0@chen.org.nz> <20240703082414.572553dabee65d0f6dd129a1@dec.sakura.ne.jp> <20240704091007.5dc5f7a41bf12f8f764a896d@dec.sakura.ne.jp> Content-Language: en-US From: Jonathan Chen In-Reply-To: <20240704091007.5dc5f7a41bf12f8f764a896d@dec.sakura.ne.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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:174, ipnet:170.75.160.0/20, country:US] X-Rspamd-Queue-Id: 4WF81M1GLvz4r2r On 4/07/24 12:10, Tomoaki AOKI wrote: [...] > > If you start X from command line with startx and the cause was as above, > you should see the panic on loading the module. For simplicity, I'm just using startx. However, the panic is a bit more subtle than a panic from a simple kldload. I'm currently working thru' with git bisect to determine the commit causing the issue. Cheers. -- Jonathan Chen From nobody Thu Jul 4 15:49:43 2024 X-Original-To: freebsd-stable@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 4WFLgZ2S1Fz5Nk48 for ; Thu, 04 Jul 2024 15:49:46 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WFLgZ1nTDz4jvr; Thu, 4 Jul 2024 15:49:46 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720108186; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KUTTejSePwTZOwbDAUykQXeAgSFnS5QvrSmnpQO6SX4=; b=Npz86wl5v/QrP5c12jHXP3Rd37wExXBYH+YeEiucN4A9uq3A0h80Rv4I0A51zd0RK+Bc7I HnwW4f5ThqKlWFAvbcEVLliJx8yOkotaakSGZQVbERc/aXItAMv18xNtxLelHjm6gVzB51 DvBVrQeMmZFWR9f5Og+Z1eJi8LaoUnUkvG7YK9PFGY79ybdwHlc6Ox+rFFUA4eQdAXLDn5 nErtAO6F4WRdLh+CnS3ERHzDFBNF2lJpWF6MA3KcvQIsxLsIDUora3iM7rGcyyeNM6Np/u fKjVfXVgE4WOI++aEnAPwaPtE9am7Jf2kVswi+lKg0f7neio3RSbbPE9IfO4pQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720108186; a=rsa-sha256; cv=none; b=loVG11PaIwPtpFAXCi3763SXWPchM5pPEquffaNBvDeDKMr6DHgvV7PW3W+g4HMUU60LM/ sqsiwTiwiIS8NV+vc5ZEGCFb1UMtHHmYuQm4XkGS9cgrDvMKAhD7xNvp1InM0WLLcjRDSg Kx8FZmI/p/dtdbocuPtiFX5t4gHFv9y46H1DH8FrSNHSmlzhu/k2VrAH3UW2u+iBnvci5v YnDDJFejbg4GQGj38CMU5EFQn0ecSwk+45MHBNGB780459Vju6npBVD6Hw2VpzQxT+yKU/ /nSwusmnfw5CNgQbauc87ez0id/Qt4Dms9IK4xwLFTyWfq/AUiFlhq+IfAURkw== 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=1720108186; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KUTTejSePwTZOwbDAUykQXeAgSFnS5QvrSmnpQO6SX4=; b=KLvckIz0FaSP2uB4uxEynZFDrUFdq7o66lJ0Y8MCd4W8+LhgWBkSlmWTrE1SmX0onwPCad UAsPqZah/UMppH/S97OceEYOGZs1gPgcNE+ofl7p6BzK6hZ5xHYUv4PGsnryLhMUxlwKIh 0c6qSDxLdrQVMyi9T73bev5GcNG7/i1wQUMVgGSMXUJOv3+ic5yJ8rLn9wd65rGaqBHVyu 99bbPDDccM/ArwmLD6USDiyoUsZQK0ihaRcxPDmm0YRKJg+oEcYUOz92Rjx5tn8l778Qbb cfLq25p3A+G9m6Vj+6cv2szenGdobyCi7Em5J1YHEYvSNIvcmzxJdsl40+8VDQ== Received: from ltc.des.dev (unknown [91.174.26.112]) (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) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WFLgZ0gN5zdM7; Thu, 4 Jul 2024 15:49:46 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id 1C0F1123AE5; Thu, 04 Jul 2024 17:49:43 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Steven Friedrich Cc: Dave Cottlehuber , FreeBSD Stable Subject: Re: freebsd hdmi audi In-Reply-To: (Steven Friedrich's message of "Tue, 2 Jul 2024 09:16:29 -0400") References: <3d40cb00-9fbb-4809-b6d9-fa40944cc62c@app.fastmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Thu, 04 Jul 2024 17:49:43 +0200 Message-ID: <86frsp17jc.fsf@ltc.des.dev> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Steven Friedrich writes: > Installed devices: > pcm0: on hdaa0 (1p:1v/1r:1v) > [...] > pcm1: on hdaa0 (1p:1v/1r:1v) > [...] > pcm2: on hdaa1 (1p:1v/0r:0v) default > [...] add hw.snd.default_unit=3D2 to /etc/sysctl.conf and reboot. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org From nobody Thu Jul 4 16:51:25 2024 X-Original-To: freebsd-stable@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 4WFN2p2mt3z5NsvY for ; Thu, 04 Jul 2024 16:51:30 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WFN2n6XvHz4rn5; Thu, 4 Jul 2024 16:51:29 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-79c05313eb5so57038885a.1; Thu, 04 Jul 2024 09:51:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720111887; x=1720716687; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from:from:to :cc:subject:date:message-id:reply-to; bh=VzjxzgWxEDLBN71bshaZ8ka7CTejXhP0VlvtbjeFrXY=; b=Pcdu++GCiagGioqKI8ylYjzEAgtnttbxv/1VaPikmOVMGRzh/0GitA6m4K27ahODvz 36U77Fz+AQwrAZnbGkhsR52/3ixxoc5uPZZed1zH7dDxvxWUbD+BogpSInU7JS1+eGiW GJPSPTh37LGTkgti2gCSUKEOGTt5iGULF6E2hdZvFjsbc8N5m7W9AG6PkJnnPo7VrY/V kw/gra9E7SRRRQIXLvu/hmr5yfEZe7LwJhJKsAiTchbhXNRwpJVtEV96quHpSEnX4oXb ieaY80q6EgnzH2igXBqvhuRZPSGCDt1verXOZ9Y2KNpcetynELb99YU4GQCI2SLmlKmz qiGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720111887; x=1720716687; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VzjxzgWxEDLBN71bshaZ8ka7CTejXhP0VlvtbjeFrXY=; b=Ip3xyiJMLmfUO4v9EJ+0G42tlRj9wiMprE7V5EB9s5uyqIySGRC7gcC9KrJ2sjLNsq Ehuso3LWtdrm4ZD0f+p6+guTJY68+KcvHrdgNOq1VrfdBM4O6q9VKf1ROcWq2ZCzgpaO zKeM1NM1//V8BMCog4U+S2eTBTTKUgxqltZmZzOa43GFKD26r8o9BBfj/PE/uHbxlklV qkmlolEbBWTQ05ryW1LljTvesxFEHvb85qhbyw+aEH+XZHEM1BRxs9KZydhTYfPiwKEH ZDsXHXTkxzXvKjAKAFgDWj42ELyTHfwLOyjqYNC3PCYMLE4iL9pKJidpBQf9iMvTjYum PXpQ== X-Forwarded-Encrypted: i=1; AJvYcCUdlR/uZwfR8NzmDxevdzR47tIogehoY1nNUmKMVP6uDyua7RCMvCYWaJ5VRgxJyeqQ2c/P70oVjsOX7eTb6pC1gpqpj9DRnXzgoQ== X-Gm-Message-State: AOJu0Yw4DNE+BfF8Ayc1E2Rc2WBMk1t3L8SUE26aM+RLifGbFH+thp3R Z0x6VpDcH5ojbORm3QdXZRd6+CikrZ3SXhI9TjI+/sSssZA7g+SErz2oEQ== X-Google-Smtp-Source: AGHT+IHiOEFl+/cpLNJl0hJI8/tbrx3mzV24pb8a/DYiMmFtYKrV6FfbvywwRfDeGTDzm+pMvrjbbA== X-Received: by 2002:a05:620a:b0e:b0:79d:72fc:7f2e with SMTP id af79cd13be357-79eee2e4f66mr212963885a.78.1720111887625; Thu, 04 Jul 2024 09:51:27 -0700 (PDT) Received: from ?IPV6:2600:1015:a032:296:5cc1:62c7:acd0:18eb? ([2600:1015:a032:296:5cc1:62c7:acd0:18eb]) by smtp.gmail.com with ESMTPSA id af79cd13be357-79d6925ecb3sm693101685a.10.2024.07.04.09.51.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Jul 2024 09:51:27 -0700 (PDT) From: Steven Friedrich X-Google-Original-From: Steven Friedrich Message-ID: Date: Thu, 4 Jul 2024 12:51:25 -0400 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: freebsd hdmi audi To: =?UTF-8?Q?Dag-Erling_Sm=C3=B8rgrav?= Cc: Dave Cottlehuber , FreeBSD Stable References: <3d40cb00-9fbb-4809-b6d9-fa40944cc62c@app.fastmail.com> <86frsp17jc.fsf@ltc.des.dev> Content-Language: en-US In-Reply-To: <86frsp17jc.fsf@ltc.des.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4WFN2n6XvHz4rn5 I already have that sir: cat /etc/sysctl.conf.local net.local.stream.recvspace=65536 net.local.stream.sendspace=65536 # net.inet.ip.fw.verbose_limit=5 hw.snd.default_unit=2 hw.snd.verbose=2 Also, I have written a testSound shell script: cat testSound #!/bin/sh echo "Begin `uname -s` `basename -s .sh $0` on `uname -n`" echo "************************************************************" cat /dev/sndstat default_unit=`sysctl hw.snd.default_unit|awk '{print $2}'` echo -e "\nDefault Sound device=$default_unit\n" echo /dev/dsp$default_unit mixer -f /dev/mixer0 vol=100 rec=0 mixer -f /dev/mixer1 vol=100 mic=0 rec=0 mixer -f /dev/mixer2 vol=100 # beep -g 100 -D 2000 -d /dev/dsp$default_unit # beep -g 100 -D 2000 -d /dev/dsp0 # beep -g 100 -D 2000 -d /dev/dsp1 # beep -g 100 -D 2000 -d /dev/dsp2 for dsp in /dev/dsp* do #echo -n "$dsp  " cat /dev/sndstat|grep -m 1 pcm`echo -n $dsp|cut -c 9-`; beep -g 100 -D 2000 -d $dsp done echo "End   `uname -s` `basename -s .sh $0` on `uname -n`" echo "************************************************************" I get sound out of the rear 1/8" and front 1/8" jacks, but not hdmi.  I can also boot cinnamoin mint or kde neon and I get audio out of hdmi on those OSes. My speaker system is plugged into the back of my monitor and only freebsd fails to provide sound out of it. I've been trying to get freebsd to fix this for years.  I now use linux for desktop use because of this.  I prefer freebsd, and am quite proficient at the shell, but I need a GUI for a system to be truly usable. On 7/4/24 11:49, Dag-Erling Smørgrav wrote: > Steven Friedrich writes: >> Installed devices: >> pcm0: on hdaa0 (1p:1v/1r:1v) >> [...] >> pcm1: on hdaa0 (1p:1v/1r:1v) >> [...] >> pcm2: on hdaa1 (1p:1v/0r:0v) default >> [...] > add > > hw.snd.default_unit=2 > > to /etc/sysctl.conf and reboot. > > DES From nobody Thu Jul 4 16:54:31 2024 X-Original-To: freebsd-stable@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 4WFN6N6qh4z5Nt2p for ; Thu, 04 Jul 2024 16:54:36 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WFN6N50rqz4sqF; Thu, 4 Jul 2024 16:54:36 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-7f3ca6869d1so34744839f.0; Thu, 04 Jul 2024 09:54:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720112074; x=1720716874; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from:from:to :cc:subject:date:message-id:reply-to; bh=vtx/poR4RCAzFvA7ijt+jHIEntGhlfTBQCL/YXTkKqs=; b=EFbKdnATWSC8kiJ6VV6pKS5ztNM5XXwmk0nS7eZ/Mz+62V6/lEu8aEm8w/R3f/cOfP 17BlH7fg1F1vRNgTp8QvpQk6N/12WI8eGxy7j3ieQq3gVg18Ru4sLLUu1cGAHX1Yb6Kx HWEaSPTcFZFghHgMeFb6zw5blclCaERo1LHZeh7k6Feo/Db+o7kSb995UPZ3fXrdY27h zKfSeD79oi6lGeEb3uRC30hpieq65rsM6mZDSSOTHZSrJQdvp9Hb4Hog6nbz575gNIRY cmZj6Nril0b5xHNNa7v+w6t7hxRL3J/TjF7tZGLsmT5ZPbMQ65xu9H7tmSxUQSbcj15w GC4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720112074; x=1720716874; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vtx/poR4RCAzFvA7ijt+jHIEntGhlfTBQCL/YXTkKqs=; b=EOMBRe8s2hy/NTFJsgZQVB0Gic3Z4L3DyF1CL1+ytSkG183CHRTOpxN7WIDXkLQKDK Yq0YesIlcsTuDCxXz0Sdw/2iMweESzhjW1ZBdzwdhEyCGFnGQpKKDmrGS9pUF9hw7u5R +CcKN0Ova9Ge+c7kVgo4m7f4OjzX1TOrCMs8tis/fHhy6kdrJB9Y9aKT5w/5lpEpvE3+ eEXi89yGiy6tpkHf0n4cj0PeVpRbqJCCabF5M57feI20lUKUEDQwLJA1407TRKVBivzz xPF5B4GSPr0IDXayoxcVJWjQc52ls35ebvWvXZEly2VL9ur3MOFopqfSEd96hBOsir1M BI/g== X-Forwarded-Encrypted: i=1; AJvYcCUnFOfY0gkw7kP9A9AUrISPXafGKJOzwz36Ec8h/sn4JZGBY0jg0IyhHYG6nNtZyTYuldtvOwM4j3k8kYTlfXhso0Lc33drBMkpLw== X-Gm-Message-State: AOJu0Yxbk2lX3mykFKFJ2Yg9PCqFKMTJvufyX0A4JkPnVE/exOubecSD m6u1B+/SyV4iBk40QyFobMv5m1waU7hlyoPyq536RgalTohYbQ+GqBIB/g== X-Google-Smtp-Source: AGHT+IEdbLcCEZCBRNjzgnW58tqhGuauAhVEoDLySyOl79g4OA56LbZMWiL4ojRw1/E1tyTfCArG+w== X-Received: by 2002:a5d:88d0:0:b0:7f6:1cb2:8027 with SMTP id ca18e2360f4ac-7f66e02aa5bmr256019539f.17.1720112073960; Thu, 04 Jul 2024 09:54:33 -0700 (PDT) Received: from ?IPV6:2600:1015:a032:296:5cc1:62c7:acd0:18eb? ([2600:1015:a032:296:5cc1:62c7:acd0:18eb]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4bb742bd3desm4020571173.152.2024.07.04.09.54.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Jul 2024 09:54:33 -0700 (PDT) From: Steven Friedrich X-Google-Original-From: Steven Friedrich Message-ID: Date: Thu, 4 Jul 2024 12:54:31 -0400 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: freebsd hdmi audi To: =?UTF-8?Q?Dag-Erling_Sm=C3=B8rgrav?= Cc: Dave Cottlehuber , FreeBSD Stable References: <3d40cb00-9fbb-4809-b6d9-fa40944cc62c@app.fastmail.com> <86frsp17jc.fsf@ltc.des.dev> Content-Language: en-US In-Reply-To: <86frsp17jc.fsf@ltc.des.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4WFN6N50rqz4sqF Here's a run of my testSound shell script: testSound Begin FreeBSD testSound on Envy ************************************************************ FreeBSD Audio Driver Installed devices: pcm0: on hdaa0 (1p:1v/1r:1v)         snddev flags=0x2e2         [pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000004         interrupts 0, underruns 0, feed 0, ready 0 [b:2048/1024/2|bs:2048/1024/2]         channel flags=0x2100         {userland} -> feeder_mixer(0x00200010) -> {hardware}         pcm0:play:dsp0.p0[pcm0:virtual_play:dsp0.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000         interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]         channel flags=0x10000000         {userland} -> feeder_root(0x00000000) -> {hardware}         [pcm0:record:dsp0.r0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000005         interrupts 0, overruns 0, feed 0, hfree 512, sfree 512 [b:512/256/2|bs:512/256/2]         channel flags=0x2100         {hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland}         pcm0:record:dsp0.r0[pcm0:virtual_record:dsp0.vr0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000         interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0]         channel flags=0x10000000         {hardware} -> feeder_root(0x00000000) -> {userland} pcm1: on hdaa0 (1p:1v/1r:1v)         snddev flags=0x2e2         [pcm1:play:dsp1.p0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000004         interrupts 0, underruns 0, feed 0, ready 0 [b:2048/1024/2|bs:2048/1024/2]         channel flags=0x2100         {userland} -> feeder_mixer(0x00200010) -> {hardware}         pcm1:play:dsp1.p0[pcm1:virtual_play:dsp1.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000         interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]         channel flags=0x10000000         {userland} -> feeder_root(0x00000000) -> {hardware}         [pcm1:record:dsp1.r0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000005         interrupts 0, overruns 0, feed 0, hfree 512, sfree 512 [b:512/256/2|bs:512/256/2]         channel flags=0x2100         {hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland}         pcm1:record:dsp1.r0[pcm1:virtual_record:dsp1.vr0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000         interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0]         channel flags=0x10000000         {hardware} -> feeder_root(0x00000000) -> {userland} pcm2: on hdaa1 (1p:1v/0r:0v) default         snddev flags=0x2e7         [pcm2:play:dsp2.p0]: spd 48000, fmt 0x00200010, flags 0x00006100, 0x00000004         interrupts 0, underruns 0, feed 0, ready 0 [b:2048/1024/2|bs:2048/1024/2]         channel flags=0x6100         {userland} -> feeder_mixer(0x00200010) -> {hardware}         pcm2:play:dsp2.p0[pcm2:virtual_play:dsp2.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000         interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]         channel flags=0x10000000         {userland} -> feeder_root(0x00000000) -> {hardware} No devices installed from userspace. Default Sound device=2 /dev/dsp2 vol.volume: 1.00:1.00 -> 1.00:1.00 rec.volume: 0.00:0.00 -> 0.00:0.00 pcm0:mixer: on hdaa0 (play/rec)     vol       = 1.00:1.00     pbk     pcm       = 1.00:1.00     pbk     speaker   = 0.58:0.58     rec     line      = 0.01:0.01     rec src     mix       = 0.74:0.74     rec     rec       = 0.00:0.00     pbk     igain     = 0.00:0.00     pbk     ogain     = 1.00:1.00     pbk vol.volume: 1.00:1.00 -> 1.00:1.00 mic.volume: 0.00:0.00 -> 0.00:0.00 rec.volume: 0.00:0.00 -> 0.00:0.00 pcm1:mixer: on hdaa0 (play/rec)     vol       = 1.00:1.00     pbk     pcm       = 1.00:1.00     pbk     mic       = 0.00:0.00     rec src     rec       = 0.00:0.00     pbk     igain     = 0.00:0.00     pbk     ogain     = 1.00:1.00     pbk vol.volume: 1.00:1.00 -> 1.00:1.00 pcm2:mixer: on hdaa1 (play) (default)     vol       = 1.00:1.00     pbk     pcm       = 1.00:1.00     pbk pcm0: on hdaa0 (1p:1v/1r:1v) pcm1: on hdaa0 (1p:1v/1r:1v) pcm2: on hdaa1 (1p:1v/0r:0v) default End   FreeBSD testSound on Envy ************************************************************ On 7/4/24 11:49, Dag-Erling Smørgrav wrote: > Steven Friedrich writes: >> Installed devices: >> pcm0: on hdaa0 (1p:1v/1r:1v) >> [...] >> pcm1: on hdaa0 (1p:1v/1r:1v) >> [...] >> pcm2: on hdaa1 (1p:1v/0r:0v) default >> [...] > add > > hw.snd.default_unit=2 > > to /etc/sysctl.conf and reboot. > > DES From nobody Thu Jul 4 21:58:34 2024 X-Original-To: freebsd-stable@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 4WFVsL44mSz5PtRP for ; Thu, 04 Jul 2024 21:58:46 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WFVsK2ypmz4T9Q for ; Thu, 4 Jul 2024 21:58:45 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (mx1.freebsd.org: domain of freebsd-stable@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=freebsd-stable@m.gmane-mx.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sPUTT-0004oa-1C for freebsd-stable@freebsd.org; Thu, 04 Jul 2024 23:58:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Anton Shepelev Subject: Re: Need help controlling laptom display brightness via sysctl Date: Fri, 5 Jul 2024 00:58:34 +0300 Message-ID: <20240705005834.4c7983ea29da3af8f8e36718@gmail.com> References: <20240704010029.75608a4e49205eb38a6034be@gmail.com> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) X-Spamd-Bar: + X-Spamd-Result: default: False [1.71 / 15.00]; NEURAL_SPAM_LONG(0.99)[0.993]; NEURAL_SPAM_MEDIUM(0.80)[0.798]; NEURAL_HAM_SHORT(-0.78)[-0.776]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; R_SPF_ALLOW(-0.20)[+mx]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:24940, ipnet:116.202.0.0/16, country:DE]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; FROM_NEQ_ENVFROM(0.00)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4WFVsK2ypmz4T9Q I wrote: > I need your help in setting up the brightness control on > HP 15-b0xx laptop via sysctl. I was infored that this ability has been discountinued in favour of the backlight utility, so I gave up and wrote the following devd rule: notify 10 { match "system" "ACPI" ; match "subsystem" "Video" ; match "type" "brightness" ; action "/usr/bin/backlight $notify"; }; This changes brightness by tiny 1/100 steps, but this is by desing of the HP engineers... References: 1. https://man.freebsd.org/cgi/man.cgi?query=devd.conf 2. https://www.davidschlachter.com/misc/freebsd-acpi_video-thinkpad-display-brightness From nobody Thu Jul 4 22:19:28 2024 X-Original-To: freebsd-stable@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 4WFWKT3snLz5Px6c for ; Thu, 04 Jul 2024 22:19:41 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WFWKS5MTDz4WNp for ; Thu, 4 Jul 2024 22:19:40 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (mx1.freebsd.org: domain of freebsd-stable@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=freebsd-stable@m.gmane-mx.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sPUnd-0000c1-EE for freebsd-stable@freebsd.org; Fri, 05 Jul 2024 00:19:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Anton Shepelev Subject: Enabling volume Fn-contols on the HP 15-0bxx laptop Date: Fri, 5 Jul 2024 01:19:28 +0300 Message-ID: <20240705011928.21c1ff49730abac941092d4f@gmail.com> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) X-Spamd-Bar: / X-Spamd-Result: default: False [-0.47 / 15.00]; NEURAL_HAM_MEDIUM(-0.81)[-0.809]; NEURAL_HAM_SHORT(-0.81)[-0.806]; MV_CASE(0.50)[]; NEURAL_SPAM_LONG(0.44)[0.442]; FORGED_SENDER(0.30)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; R_SPF_ALLOW(-0.20)[+mx]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:24940, ipnet:116.202.0.0/16, country:DE]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; FROM_NEQ_ENVFROM(0.00)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4WFWKS5MTDz4WNp Now that I have enabled[1] the Fn-brighness controls on my HP 15-0bxx, the next step is to enable the Fn-volume controls. Unlike brightness, I do not see anything in /var/run/devd.pipe when pressing pressing those keys, and there no is acpi_sound driver, and acpi_hp provides no sound events or controls. Can you help? ____________________ 1. https://lists.freebsd.org/archives/freebsd-stable/2024-July/002262.html From nobody Thu Jul 4 22:59:44 2024 X-Original-To: freebsd-stable@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 4WFXCp29qdz5Q2l2 for ; Thu, 04 Jul 2024 22:59:50 +0000 (UTC) (envelope-from christos@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WFXCp1gmCz4cP2; Thu, 4 Jul 2024 22:59:50 +0000 (UTC) (envelope-from christos@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720133990; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lBkVjym1aIVED9YPyzXLFs44oh1nAkr5gIxKbK2GmIE=; b=ieovMLCODX/0U1SKyMVKWNsk6ZxPtbrh0H+4doNyHYrnHneL1Uz5wluPcDU1/RMctA2C7G ntTM3d5M4eArdxUAP9Mh/m1oHUp8F+U8dJYjuUyCryrsW0LKkwKv+Nx8w/WuMDNg24eqKT 256GVyIywo0EesMMqYcUDjxcpHogkE/9gedWU9+bVzDnl91Bjiu/k1fH8pIkVhNp6X7hAm wxwNsrKGj1XJzsaLwhpkg1Art1j7e6sFiX15GZStLv38AVd8S3ZYd5ha3DNGy0igoByu7A 6PkN/PIv2BTKS5IMkKiXrdDkcMHrQvv8DheIJ+WuRZeY92xPnQ7y8dlcGvGRVg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720133990; a=rsa-sha256; cv=none; b=PoHrOkzhu4lr0I7uAwxE6PPuYdd6SktyXgelanVRfkJsnYRcafzO8Ef26BNN1raa/A5g0G VTyRc4glkix3iVPyP9y8F+MgTp9rBA7OJ08q7wGxoWsqhu8WI8yEWcIU1VvdHVPXDSqc+Q LtDbTRAwVizwB6OAYQzZc5sC18sq1vpMIHoOK0VSVOduMKENqkE21vGM9VvapI6dI2BcRE 6Now/KiYw4Z5gAtbJGjX2iLiqu0Tn4d2oNKRsrCwOVVnOM+oda9tgk/LDsRGSYWoQSGZdc zFAWxrh/W9tRzvjXJLi79eXPTqQKFmXp9OzfMVT6qmu8jii3y5+6OYSFYBTaMw== 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=1720133990; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=lBkVjym1aIVED9YPyzXLFs44oh1nAkr5gIxKbK2GmIE=; b=TxTXloFtcYmFwMYRiYQPz6DZkD3GpwkZqZcEwGcFrfdoo9wtr0tl41Gmbkq64Dd+KoH/M/ MeTjDwXyzW8vHc9ACQISJGDmZfjk0U3Q3hzf7a+w3pdqx17k+GsSzjKOldD0YAGdKUf7s+ uns8nlCEd5snbsCNeh8KrpiTYhl98LJ01DLLmg7IfTLXEs1Plpwl7++PNZwrtt8xBsYNVQ ZoXxD6Dj3ir0JBGtpcU5NNW47j2TQz+sQDzESTvgYn3oJQP7AOfu+WyGz0rJMBHXSjGyfU I8R3To5B1V1RrLciIenmQHpjweJzDABgsOb++Fcmu6MXyQ2I2wVmnBHenTk9Hw== Received: from margiolis.net (mail.margiolis.net [95.179.159.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) (Authenticated sender: christos/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WFXCn62dMz12q1; Thu, 4 Jul 2024 22:59:49 +0000 (UTC) (envelope-from christos@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=mail; bh=P6KfnJUcJEY3603 NM0ZbS7yCKBd1roBBUWvw7rHarqE=; h=in-reply-to:references:subject:cc:to: from:date; d=margiolis.net; b=D0XXTm+b+pWuvIAL+AibMNEqNeXjq6y9ba8v+7ak z+naSkNQ94KkIWIZ+CLwzL/lBmI7v46IUrgrX5+YigN2btv1D97IeUbjO/8Wj0VGshdUA0 tVFEVREGQe3Ic96FaCsd6BN2IBmNCOt+9JS7LVop3npq2p8Y75R7bFVEIQWtY= Received: from tpad (ip-45-81-121-44.ask4internet.com [45.81.121.44]) by margiolis.net (OpenSMTPD) with ESMTPSA id 49d47266 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 4 Jul 2024 22:59:45 +0000 (UTC) Date: Fri, 5 Jul 2024 00:59:44 +0200 From: Christos Margiolis To: Anton Shepelev Cc: freebsd-stable@freebsd.org Subject: Re: Need help controlling laptom display brightness via sysctl Message-ID: <4gdo43zawpgltmnc5antaa427pww6vehrvhueg7ib3w6o3surc@o3nradlaanma> References: <20240704010029.75608a4e49205eb38a6034be@gmail.com> <20240705005834.4c7983ea29da3af8f8e36718@gmail.com> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240705005834.4c7983ea29da3af8f8e36718@gmail.com> Hello Anton, Anton Shepelev wrote: > I wrote: > > > I need your help in setting up the brightness control on > > HP 15-b0xx laptop via sysctl. > > I was infored that this ability has been discountinued in > favour of the backlight utility, so I gave up and wrote the > following devd rule: > > [...] In case you find this helpful, I wrote this very simple wrapper script today: #!/bin/sh bright=$(backlight -q -f /dev/backlight/backlight0) test $# -eq 0 && echo ${bright} && exit test ${bright} -le 10 -a "$(echo ${1} | grep "^[+|-]")" == "-" && exit backlight -f /dev/backlight/backlight0 "${1}" Then I modified my DWM config to bind Mod+F5 to "bind -" (decrease by 10%) and Mod+F6 to "bind +" (increase by 10%). The script also makes sure that if we want to decrease the brightness, we do not go below 10. If no arguments are passed it prints out the current brightness level. Christos From nobody Thu Jul 4 23:02:34 2024 X-Original-To: freebsd-stable@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 4WFXHK4KXNz5Q2nJ for ; Thu, 04 Jul 2024 23:02:53 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WFXHJ2mp3z4f4V for ; Thu, 4 Jul 2024 23:02:52 +0000 (UTC) (envelope-from kob6558@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=Ud1DxJLh; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::b33 as permitted sender) smtp.mailfrom=kob6558@gmail.com Received: by mail-yb1-xb33.google.com with SMTP id 3f1490d57ef6-e03a63ec15eso991548276.1 for ; Thu, 04 Jul 2024 16:02:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720134171; x=1720738971; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=l4lrSNbXUmq7g2UBOwiE0u8qQMf1pdzm/ZCgnYeLlwQ=; b=Ud1DxJLhxxXonFlabLELD/TPHcrH+DCENe52EGvy8++5bLyiTRgKsDZt0lpT9WXEXz QVuCbAsB/LRzAzujkd43t6J44ek1ldJu0oa3WcMwDleXZQvEWgDMI2GlNgsEUloNZQtP lMgB1ZHy7U/J2hwGRuete/4VBFKxIS9hOPf0cVgZziFVhzcENJ/YNvNSBEHpne64Ph2J 5TCQyl8ajZBxwLDJVkZqj9Xwy0+cL6jwO/kk9sPHMr81YNl1D7MVW6CTccI2GVLBHaUx AakkfhR07wC75wYrGfG5zz85cL71sqEmDR0grenPu9V6XuNC7c0pHuMBtWFIg89k3uC6 R6AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720134171; x=1720738971; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=l4lrSNbXUmq7g2UBOwiE0u8qQMf1pdzm/ZCgnYeLlwQ=; b=v7Ace2nyHeRh/x7k3GI6+DHKFUXPxPDjw46jN/jl0VaDWAOMgjxdPvWSqhavr4ndyF rasiK3CPWyybF5Rf2ahcPRJS6LZtqaq7TSc5sPXpkBTYP7LRYbZB7gUEUOGlqNOVUcZR vbpfXRZLTbotFtwk/q1iiwnUSy39VctDBbXn1FD7z6CvAKoe6lkTlJcttrclKjlg03gy G4wGiO4kwXdTBkK0GV7NstHuIgUDfRD27647BOePEyzouvxyNvtnv1fRWyt5PE+eIS75 6NPncqDORdKTL4eXvPQ5C7gC/V0md0E6AmD7ya4mPMnXF57ufvD6/wRpQln22Cr4Cof0 fu9g== X-Gm-Message-State: AOJu0YzRycVZ8FhGApAuHmcj0YAnAfzTM2eAuc42xl0Yd/L4NL1pLVEK WJMlhOuaY1WPuhkD/XeYWx3MEM1v6QN8HAuy5WoP4mLC/sTkQ5AdMuQDXgbHmJivyEGEhRLyNGN 551gYV6uNAsiMAnYUn+6h3JSMMTO9mFdOCo8= X-Google-Smtp-Source: AGHT+IEtRNkL4FTudjV8DS7z7cY3lPhuEHeLQz4krxnETZp34oRDnR7k20dzrgYZNOaV7MqFxO18lH9Iea0BvmwzCsc= X-Received: by 2002:a05:690c:4986:b0:62f:2589:1231 with SMTP id 00721157ae682-652d7d5292bmr35240667b3.42.1720134171229; Thu, 04 Jul 2024 16:02:51 -0700 (PDT) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 References: <20240704010029.75608a4e49205eb38a6034be@gmail.com> <20240705005834.4c7983ea29da3af8f8e36718@gmail.com> In-Reply-To: <20240705005834.4c7983ea29da3af8f8e36718@gmail.com> From: Kevin Oberman Date: Thu, 4 Jul 2024 16:02:34 -0700 Message-ID: Subject: Re: Need help controlling laptom display brightness via sysctl To: Anton Shepelev Cc: freebsd-stable@freebsd.org Content-Type: multipart/alternative; boundary="0000000000003e0549061c73f235" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.67 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.968]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_TO(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::b33:from]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; TAGGED_RCPT(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4WFXHJ2mp3z4f4V --0000000000003e0549061c73f235 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jul 4, 2024 at 2:59=E2=80=AFPM Anton Shepelev = wrote: > I wrote: > > > I need your help in setting up the brightness control on > > HP 15-b0xx laptop via sysctl. > > I was infored that this ability has been discountinued in > favour of the backlight utility, so I gave up and wrote the > following devd rule: > > notify 10 > { match "system" "ACPI" ; > match "subsystem" "Video" ; > match "type" "brightness" ; > action "/usr/bin/backlight $notify"; }; > > This changes brightness by tiny 1/100 steps, but this is > by desing of the HP engineers... > > References: > 1. https://man.freebsd.org/cgi/man.cgi?query=3Ddevd.conf > 2. > https://www.davidschlachter.com/misc/freebsd-acpi_video-thinkpad-display-= brightness > > This is what I used. I have it in /etc/devd/thinkpad.conf. You might use HP.conf: notify 100 { match "system" "ACPI"; match "subsystem" "ACAD"; match "notify" "0x00"; action "/usr/bin/backlight 40; service power_profile $notify"; }; notify 100 { match "system" "ACPI"; match "subsystem" "ACAD"; match "notify" "0x01"; action "/usr/bin/backlight 100; service power_profile $notify"; }; notify 100 { match "system" "ACPI"; match "subsystem" "IBM"; match "notify" "0x10"; action "/usr/bin/backlight +"; }; notify 100 { match "system" "ACPI"; match "subsystem" "IBM"; match "notify" "0x11"; action "/usr/bin/backlight -"; }; 10% changes are more reasonable than 1%. The top two "notify"s set the screen at 100% on AC and 40% on battery. --=20 Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 --0000000000003e0549061c73f235 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Jul 4, 2024 at 2:59=E2= =80=AFPM Anton Shepelev <anton.tx= t@gmail.com> wrote:
I wrote:

> I need your help in setting up the brightness control on
> HP 15-b0xx laptop via sysctl.

I was infored that this ability has been discountinued in
favour of the backlight utility, so I gave up and wrote the
following devd rule:

notify 10
{=C2=A0 =C2=A0 =C2=A0 =C2=A0match=C2=A0 "system"=C2=A0 =C2=A0 &qu= ot;ACPI"=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 match=C2=A0 "subsystem" "Video&q= uot;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 match=C2=A0 "type"=C2=A0 =C2=A0 =C2= =A0 "brightness"=C2=A0 =C2=A0 ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 action "/usr/bin/backlight $notify";= =C2=A0 };

This changes brightness by tiny 1/100 steps, but this is
by desing of the HP engineers...

References:
1. https://man.freebsd.org/cgi/man.cgi?query=3D= devd.conf
2. https://www.da= vidschlachter.com/misc/freebsd-acpi_video-thinkpad-display-brightness
This is what I used. I have it in /etc/dev= d/thinkpad.conf. You might use HP.conf:
notify 100 {=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0match "system" =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"ACPI";
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0match "subsystem" =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "ACAD";
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0match "notify" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0"0x00";
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0action "/usr/bin/backlight 40; service power_profile $notify&qu= ot;;
=C2=A0};

notify 100 {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0m= atch "system" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0"ACPI";
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0match &= quot;subsystem" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "= ;ACAD";
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0match "notify" = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"0x01&qu= ot;;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0action "/usr/bin/backlight 1= 00; service power_profile $notify";
};

notify 100 {
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0match "system" =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"ACPI";
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0match "subsystem" =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 "IBM";
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0match "notify" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0"0x10";
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0action "/usr/bin/backlight +";
};

notify 100 {=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0match "system" =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"ACPI";
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0match "subsystem" =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "IBM";
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0match "notify" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0"0x11";
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0action "/usr/bin/backlight -";
};

10% changes are more reasonable than 1%. The top two &qu= ot;notify"s set the screen at 100% on AC and 40% on battery.
=
--
<= div>
Kevin Oberman, Part time kid her= der and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerp= rint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
--0000000000003e0549061c73f235-- From nobody Thu Jul 4 23:02:51 2024 X-Original-To: freebsd-stable@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 4WFXHL5q2Sz5Q2tH for ; Thu, 04 Jul 2024 23:02:54 +0000 (UTC) (envelope-from christos@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WFXHL58FZz4dhP; Thu, 4 Jul 2024 23:02:54 +0000 (UTC) (envelope-from christos@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720134174; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RmsXFn4gAehWkBNEynl1K+J/p8nUtD0wCN9LQyeouPU=; b=JgJru0uAIA/A+y5RLW8XtTBp1ipeT4uyhHpAgNSqhsu9OXJB+WY4gyc/HAtD7a03EMOJrp UAYWGx5o/rTRiiAeowyCxX9DTqKfpT9CRjow1e2O8a2SbqUoCKyzY2wQTVg2Sfyha1GH2z K/Gh0Q0YE9nO79RMyLsOyIbE8m9YvNkb2H5GlKQ+0x/rGJCnk623df2sv7PDQa2F8IjgVB 7aL+ArGCtrw/5kYPkGI+9DzKMMEf0corak+FO4y7YwInCiqDmPkLt29kCiiUm0ICrINPtC hQOCuiCnIsqV956A4yD9Jsr6m1r/1o4NbUeGGiaumlg+4z0ukevabX4Iras/Gw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720134174; a=rsa-sha256; cv=none; b=P3BXMHba5b8L/DKW6jBSrRIpw/l3h+Eru26Ty/vJCJJjxBskiU3dhfQwIJxrf/Kyya/+hh rTWDmjyAvN7wRUttycSNXPNkaucf2Zb/dXXs1q2gb7nJDSRAwpDOCqApa60SNO9nCNKyQM wX0v+mlZKT9tzrFeyBVGiVc8/WXUS07FP0hRmPweT0npfj7LSXGaULVty0N00V4mubaFcT dy6vRm9FYZSOuuxWB9bcUxET/dNoZOLCEJccPMbcUPeu1TwSpbzGB8hv6HljSORfScE3QE 0vZUXOuG0UDkJFrZA/H6F+t5dRd3JVqSes/L+qGQNfTiUgFk3O3wkzomBx9Dgg== 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=1720134174; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=RmsXFn4gAehWkBNEynl1K+J/p8nUtD0wCN9LQyeouPU=; b=qFjkf8gly1ESr81iREOhe6lZADcn+ptLZ+wzbSjT9EwGFcKOdABfINiJGtCTTP630Kjjmz MN9FUagdUMOe+aQTa19rqdOwuh/48UToNP8F437HoW1y9YPjwMLqFMjH32ptmkMbS+ZEH5 bAMEjrtiFLoKa9G7Nbih5ByC18vn5I/biL0qN27NHslW0YGnQp9044wn2pPx0+mmfuqfZR d+OVCQz4wAbziOU2BZLTooacUO2//HIfqi9QjuU3nOFkKZROvqvqJCqaF211sFA7k1ylp/ EXA9WxSkreJhTmNPMbUbG0oEmGc8Cnj3QXJsmgFZxyCjdgp5L5l6ARh8u21mPA== Received: from margiolis.net (mail.margiolis.net [95.179.159.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) (Authenticated sender: christos/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WFXHL27Pwz12Gh; Thu, 4 Jul 2024 23:02:54 +0000 (UTC) (envelope-from christos@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=mail; bh=RmsXFn4gAehWkBN Eynl1K+J/p8nUtD0wCN9LQyeouPU=; h=in-reply-to:references:subject:cc:to: from:date; d=margiolis.net; b=AE4LbO1qWgSfRho3ySWu2MhDmF1PMwTIfKLetu5B 73zoAEciByo4FsVflu8nP4r7C3fDLNMnqjmaUmDub14mv/hKxqPMzyx9MHiKymkfqu3jUP zNxE92hyNtaF/PpFPgwUxJgXsAnPZUanFOrwXrzxWmBPX6gsxjstdjIWh7WOA= Received: from tpad (ip-45-81-121-44.ask4internet.com [45.81.121.44]) by margiolis.net (OpenSMTPD) with ESMTPSA id 47003ff6 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 4 Jul 2024 23:02:52 +0000 (UTC) Date: Fri, 5 Jul 2024 01:02:51 +0200 From: Christos Margiolis To: Anton Shepelev Cc: freebsd-stable@freebsd.org Subject: Re: Need help controlling laptom display brightness via sysctl Message-ID: References: <20240704010029.75608a4e49205eb38a6034be@gmail.com> <20240705005834.4c7983ea29da3af8f8e36718@gmail.com> <4gdo43zawpgltmnc5antaa427pww6vehrvhueg7ib3w6o3surc@o3nradlaanma> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4gdo43zawpgltmnc5antaa427pww6vehrvhueg7ib3w6o3surc@o3nradlaanma> Christos Margiolis wrote: > [...] "bind +" [...] "bind -" [...] I meant to write "bright". Christos From nobody Thu Jul 4 23:18:10 2024 X-Original-To: freebsd-stable@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 4WFXd80xrZz5Q4y4 for ; Thu, 04 Jul 2024 23:18:20 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WFXd65FWSz4jyp for ; Thu, 4 Jul 2024 23:18:18 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (mx1.freebsd.org: domain of freebsd-stable@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=freebsd-stable@m.gmane-mx.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sPViS-0001n7-GH for freebsd-stable@freebsd.org; Fri, 05 Jul 2024 01:18:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Anton Shepelev Subject: Re: Need help controlling laptom display brightness via sysctl Date: Fri, 5 Jul 2024 02:18:10 +0300 Message-ID: <20240705021810.f58cad5f961b7e5b7968e2db@gmail.com> References: <20240704010029.75608a4e49205eb38a6034be@gmail.com> <20240705005834.4c7983ea29da3af8f8e36718@gmail.com> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) X-Spamd-Bar: + X-Spamd-Result: default: False [1.72 / 15.00]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_MEDIUM(1.00)[0.999]; NEURAL_HAM_SHORT(-0.98)[-0.979]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; R_SPF_ALLOW(-0.20)[+mx]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:24940, ipnet:116.202.0.0/16, country:DE]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; FROM_NEQ_ENVFROM(0.00)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4WFXd65FWSz4jyp Kevin Oberman: > This is what I used. I have it in /etc/devd/thinkpad.conf. > > notify 100 { > match "system" "ACPI"; > match "subsystem" "IBM"; > match "notify" "0x10"; > action "/usr/bin/backlight +"; > }; > > notify 100 { > match "system" "ACPI"; > match "subsystem" "IBM"; > match "notify" "0x11"; > action "/usr/bin/backlight -"; > }; > > 10% changes are more reasonable than 1%. The top two > "notify"s set the screen at 100% on AC and 40% on battery. I fear you missed my point that HP seems to have a different approach to these ACPI events. In ThinkPad, the up- and down-brighness events have fixed notify codes: 0x10 and 0x11. In HP, on the other hand, the notify codes represent the target brightness level on a 0..100 scale, so that consequtive presses of Fn+F3 yield an arithmetical progression of notify codes, e.g. 51,52,53 &c, which is why the simplest solution is to subsitute the notify value into the invocation of `backlight'. Translating those codes into exponential changes would require first of all to recall the previous value in order to determine whether the current event is an increase or a decrease. See what I mean? From nobody Fri Jul 5 01:40:54 2024 X-Original-To: freebsd-stable@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 4WFbnm25Nmz5Pwcd for ; Fri, 05 Jul 2024 01:41:00 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from egress.chen.org.nz (egress.chen.org.nz [170.75.172.82]) by mx1.freebsd.org (Postfix) with ESMTP id 4WFbnl3CNgz40HZ for ; Fri, 5 Jul 2024 01:40:59 +0000 (UTC) (envelope-from jonc@chen.org.nz) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of jonc@chen.org.nz designates 170.75.172.82 as permitted sender) smtp.mailfrom=jonc@chen.org.nz Received: from mail.chen.org.nz (unknown [210.54.37.164]) by egress.chen.org.nz (Postfix) with ESMTP id 0ACCA111E28; Fri, 05 Jul 2024 13:40:46 +1200 (NZST) Received: from mail.chen.org.nz (localhost [127.0.0.1]) by filter.inside.chen.org.nz (Postfix) with ESMTP id 7CF7F913C6; Fri, 05 Jul 2024 13:40:55 +1200 (NZST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on ametrine.inside.chen.org.nz Received: from rainloop.jail (rainloop.jail [192.168.1.4]) by mail.chen.org.nz (Postfix) with ESMTP id 65DCA9140A; Fri, 05 Jul 2024 13:40:55 +1200 (NZST) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Date: Fri, 05 Jul 2024 01:40:54 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: RainLoop/1.17.0 From: jonc@chen.org.nz Message-ID: <7c7cd0411f6c7102e5f054c6e36eaab9@chen.org.nz> Subject: Re: x11/nvidia-driver fails on 14-STABLE/amd64 To: "Tomoaki AOKI" , freebsd-stable@freebsd.org In-Reply-To: <5811fe64-43ab-4922-934c-e2f78c4ffc36@chen.org.nz> References: <5811fe64-43ab-4922-934c-e2f78c4ffc36@chen.org.nz> <2458ffc88ffac503076c06cccafa0dc0@chen.org.nz> <20240703082414.572553dabee65d0f6dd129a1@dec.sakura.ne.jp> <20240704091007.5dc5f7a41bf12f8f764a896d@dec.sakura.ne.jp> X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.13 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.93)[-0.929]; R_SPF_ALLOW(-0.20)[+a:egress.chen.org.nz]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; FROM_NO_DN(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; ASN(0.00)[asn:174, ipnet:170.75.160.0/20, country:US]; RCPT_COUNT_TWO(0.00)[2]; R_DKIM_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DMARC_NA(0.00)[chen.org.nz]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[] X-Rspamd-Queue-Id: 4WFbnl3CNgz40HZ July 4, 2024 7:49 PM, "Jonathan Chen" wrote: > On 4/07/24 12:10, Tomoaki AOKI wrote: > [...] >=20 >>=20If you start X from command line with startx and the cause was as ab= ove, >> you should see the panic on loading the module. >=20 >=20For simplicity, I'm just using startx. However, the panic is a bit mo= re subtle than a panic from a > simple kldload. I'm currently working thru' with git bisect to determin= e the commit causing the > issue. I tracked the problematic commit to: c5e0b035d9eb14e73fc17899cd007a31e0d1edc8 libutil: move ftime to libuti= l It appears that building a kernel with a world prior to that commit will = result in a usable kernel+userland, but which crashes (a newly rebuilt) n= vidia-driver. I'm pretty sure that I used "make buildworld buildkernel in= stallkernel installworld" to put everything in; but everything resolved a= fter forcing another kernel rebuild using the toolset after that particul= ar commit. ports-mgmt/synth also wasn't happy, but I managed to resolve that by rebu= ilding lang/gcc12, lang/gnat12 and then ports-mgmt/synth. Cheers. -- Jonathan Chen From nobody Fri Jul 5 17:04:47 2024 X-Original-To: freebsd-stable@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 4WG0Ht6rYlz5PxDY for ; Fri, 05 Jul 2024 17:04:58 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:7400:8808:123::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4WG0Hs699rz4SYR; Fri, 5 Jul 2024 17:04:57 +0000 (UTC) (envelope-from jamie@catflap.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=catflap.org; spf=pass (mx1.freebsd.org: domain of jamie@catflap.org designates 2001:19f0:7400:8808:123::1 as permitted sender) smtp.mailfrom=jamie@catflap.org X-Catflap-Envelope-From: X-Catflap-Envelope-To: bapt@FreeBSD.org Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [209.250.224.51]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id 465H4ldT069137; Fri, 5 Jul 2024 18:04:47 +0100 (BST) (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id 465H4lPN069136; Fri, 5 Jul 2024 18:04:47 +0100 (BST) (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <202407051704.465H4lPN069136@donotpassgo.dyslexicfish.net> Date: Fri, 05 Jul 2024 18:04:47 +0100 Organization: Dyslexic Fish To: philip@FreeBSD.org, marklmi@yahoo.com Cc: karl@denninger.net, freebsd-stable@FreeBSD.org, bapt@FreeBSD.org Subject: Re: pkg_https:// failures related to, for example, "SSL certificate problem: certificate is not yet valid" References: <5667D5C0-44F7-4B40-8F63-50D5973D220D.ref@yahoo.com> <5667D5C0-44F7-4B40-8F63-50D5973D220D@yahoo.com> <0377045B-3DF8-4B25-9075-6F67F9E7194B@freebsd.org> <769FF550-3F6F-4825-ACF5-6E9043D7F1C7@yahoo.com> <2AFD1E26-C71D-41D0-BA46-E64DFCE5C8EC@freebsd.org> In-Reply-To: <2AFD1E26-C71D-41D0-BA46-E64DFCE5C8EC@freebsd.org> User-Agent: Heirloom mailx 12.4 7/29/08 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [209.250.224.51]); Fri, 05 Jul 2024 18:04:47 +0100 (BST) X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.61 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.996]; NEURAL_HAM_SHORT(-0.98)[-0.977]; NEURAL_HAM_MEDIUM(-0.94)[-0.939]; DMARC_POLICY_ALLOW(-0.50)[catflap.org,none]; R_SPF_ALLOW(-0.20)[+mx:dyslexicfish.net]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[jamie]; ASN(0.00)[asn:20473, ipnet:2001:19f0:7400::/38, country:US]; MIME_TRACE(0.00)[0:+]; HAS_ORG_HEADER(0.00)[]; FREEMAIL_TO(0.00)[FreeBSD.org,yahoo.com]; MLMMJ_DEST(0.00)[freebsd-stable@FreeBSD.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_NONE(0.00)[]; RCPT_COUNT_FIVE(0.00)[5] X-Rspamd-Queue-Id: 4WG0Hs699rz4SYR Philip Paeps wrote: > > It does seem that /etc/pkg/FreeBSD.conf should avoid > > the https notation so that it presents an appropriate > > default. > > I agree. Adding bapt@ to Cc:. I think this needs to be reverted. It > should probably also be an errata candidate so folks running releases > can update packages even when their clocks get out of sync. I can confirm. A fresh standard install I did a few months ago (14.0-release probably) failed to install packages due to https errors. I knew packages were signed, so didn't investigate the cause of the failure, just changed pkg+https to pkg+http and all worked ok. pkg+https was definitely the installed default. Cheers, Jamie From nobody Fri Jul 5 22:08:30 2024 X-Original-To: freebsd-stable@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 4WG7286yC9z5QdVT for ; Fri, 05 Jul 2024 22:08:32 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WG7286SkMz42nF; Fri, 5 Jul 2024 22:08:32 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720217312; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yyitXdDCGXab9LqC8/10o8EK9sVXr6dpt5AZOzH+k8Y=; b=IokKQNYZ/sHwk3j1IozYCwv25mUMWqah4yh4TIUK1w82Z1eEJiK3ftr7gAR05RWJmYa8EW TvRcEp7pJ7axShNJDlnPcCR4SwRBomtU/M5Y7LbF/JRESQcHe/8Alm7yD90vHyr2paQECC hmT01g5wp9sqj7T5k3+gP/+ECB+ZaZdReLKxGcKkW0XyNRVTTnCCv25EuhpbVvi7JdDqWA F9HffCsBWUwMCcn6zJ7Vdx2iJk7yRQjNgNCPaS91TYbPgEtIHliObk+B1qVfAMgPoKFfb1 jxvfxfNe60cjIZYPtAoVEEhoaUdFH5j89+PJPizZF6ubL51NTuR+k0t6RXwR+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720217312; a=rsa-sha256; cv=none; b=xCjQCg1kE2RvlQ1SW6VbN0iEx/vTqF8OUwvCQpB68XkWVH4sAH73qofLuSNInGuodRhKbF YEEhXH+SVIASXmtNMGM28jmMBwFY5LRRDEWcrPRFcR8xwFLsYtfYAV+tRdszBDUkDYYmfb H7m5l7trNbflqHIGzFfmXMXz98b/R/pV0xTDwl2jc3WAAEZkcIfv4zXj5cSQDgEwDmekoi dc2LjYhkQPQnHcmnjoi1yS3htzHpEJAM5KgRTUYsP1SNM/OKi3zcLvGqAcDlHP2OlWeDPT jg031aHJskK/qdJgV+u8Mbdq+Ho7cYKlcJNB/SP/RMxz6syhxQMDUjczqJ4qoA== 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=1720217312; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yyitXdDCGXab9LqC8/10o8EK9sVXr6dpt5AZOzH+k8Y=; b=Pffa/7Lixv1GXt8dMqUsNZBHQCq8X6c7t1DxzmTmMMefX8ul1evS/e8MwBfkt46ap6lR1u gF8S7jwFcByqZ7A3hIh3pgOUurXqBgirnUIqbFi1C8keRGNnqWp4NmM2F7A6vKmoPBFTrK 1Vq+R4r9Mw3+34RarEPBmNT1mMz0w8Dl0hiUpH0uumH3aiIkNLSVCMLHngYZ8ZMPbMZ00N pj+sGBD5AiKmglwVFVUZkIMimnoN0KpOewhONL/DhGoWnNsxPfaV3zvhd2D1nZM134upiF f8Lfi7Y5n/B65ymzh4C0eqniX1PGOQrIq+ErPmG/yBohQ/EmP0aGbL+B83oUaQ== Received: from ltc.des.dev (unknown [91.174.26.112]) (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) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WG7285MrDzGPt; Fri, 5 Jul 2024 22:08:32 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id A6083106AD; Sat, 06 Jul 2024 00:08:30 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Steven Friedrich Cc: Dave Cottlehuber , FreeBSD Stable Subject: Re: freebsd hdmi audi In-Reply-To: (Steven Friedrich's message of "Thu, 4 Jul 2024 12:51:25 -0400") References: <3d40cb00-9fbb-4809-b6d9-fa40944cc62c@app.fastmail.com> <86frsp17jc.fsf@ltc.des.dev> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Sat, 06 Jul 2024 00:08:30 +0200 Message-ID: <86frsn8pb5.fsf@ltc.des.dev> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Steven Friedrich writes: > I already have that sir: In that case, I have nothing else to offer than =E2=80=9Cit works for me=E2= =80=9D. > I've been trying to get freebsd to fix this for years. That is a very odd statement. Perhaps you should think it over. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org From nobody Sat Jul 6 00:22:06 2024 X-Original-To: freebsd-stable@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 4WGB0M6Nhpz5Nx4P for ; Sat, 06 Jul 2024 00:22:11 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WGB0M4fxpz4KKF; Sat, 6 Jul 2024 00:22:11 +0000 (UTC) (envelope-from freebsdlouisville@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-7f65a32a58fso75859339f.1; Fri, 05 Jul 2024 17:22:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720225330; x=1720830130; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from:from:to :cc:subject:date:message-id:reply-to; bh=I+0gBzHv9n8WBOiuuMoEDbgQN+ix+MRAH+n5iJk2LjI=; b=YCquoRx7xhX2xKvyfO9kQjugOP4UPqTMi0T8thYL/S6rgaIuNXb6Jx4B80Axa4tw01 /B5oGr5vqq/tVUL74iWUgV9ME1X070trYG4FkoJcdd99e7bvL6VJlEbvDaGX4rHlGJiP +IA/paB8f1K7mGGeGDWik+OXUOqA9Ce9W6AUH+13SwJZmWm/dNTeWSvscM1q1I+mQWy6 7k9uTiF6n3+mNE+H7nk/C3TrJtyyx+/iTcpCUpG+MOzGjDnyrOiZSeWsDJHXRW6ZjxUD 45ngeSetXYfNdMoSxD2TVw4PtTRev2cELxQIukDymNL3c1kIGZHNj5b4jTbN2lvnR7kG 7YHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720225330; x=1720830130; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=I+0gBzHv9n8WBOiuuMoEDbgQN+ix+MRAH+n5iJk2LjI=; b=AsTXplHYTBLkHH1J2E19VlkjoFtLZvKc3dk6Kj9xsBG1WNeKFFNNVaa5Z6cKzz/8Bw IU1m6FFT3exDAwLWum5A8pGRlTdyQa+wGSrYUawzr5jRXJCywWuOIKE9PP1pQWE9TkZ8 M/s7PfzQgzitZJsXWvSUFOuLi0bOeEkoCH30uLYNj6qocMwDgdNAIfqOJ0sNJ02vaLu+ MdOmK0Wu2lY5nxpgvTGeps0m0EFNRIOdvMS3RNr+HOxw1qbpFPQRRPHBwsdRWiyfCD+R jd9NeD8uo2ocDJNt9ZwRXGj8JV3YkuO5/qlZik/DrlRccplWmCHC+fCf91rwEEvmE4r8 N01Q== X-Forwarded-Encrypted: i=1; AJvYcCUQ6tlONH3kT4ttnR4aDqv+UeAtfbNWxdFEy8u42lmPdDhLAGCDMdYV5dVUo1jK+lemd184ZDbG2Fl5E6G9nL8wRs8iheFiVCP98w== X-Gm-Message-State: AOJu0YzIfYD6TwXufrYvxhHsf9J2ZrOWc2WUChOuuAPsF+eNqOV5Sufe xs8nRwabG8JpI/7zT114FNIDMe0uwxbiWpAmnTI3Uh5muk4ieERZE4WBuLm9 X-Google-Smtp-Source: AGHT+IGL+gc51WCrVTFxpCvUmfiJ+5eIiQ5R5s6p5IUozOCEuntr/TfaakzAgWrcm6b9AL4rQT8ehA== X-Received: by 2002:a5d:9f46:0:b0:7f6:2819:b0a7 with SMTP id ca18e2360f4ac-7f66e0239c8mr591738539f.20.1720225329930; Fri, 05 Jul 2024 17:22:09 -0700 (PDT) Received: from ?IPV6:2600:1015:a032:296:389f:d979:f1a1:fb7f? ([2600:1015:a032:296:389f:d979:f1a1:fb7f]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-7f61ce880fdsm454877639f.6.2024.07.05.17.22.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Jul 2024 17:22:09 -0700 (PDT) From: Steven Friedrich X-Google-Original-From: Steven Friedrich Message-ID: <8d3efa2f-a073-4c02-ae32-3c8d824dc9b7@gmail.com> Date: Fri, 5 Jul 2024 20:22:06 -0400 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: freebsd hdmi audi To: =?UTF-8?Q?Dag-Erling_Sm=C3=B8rgrav?= Cc: Dave Cottlehuber , FreeBSD Stable References: <3d40cb00-9fbb-4809-b6d9-fa40944cc62c@app.fastmail.com> <86frsp17jc.fsf@ltc.des.dev> <86frsn8pb5.fsf@ltc.des.dev> Content-Language: en-US In-Reply-To: <86frsn8pb5.fsf@ltc.des.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4WGB0M4fxpz4KKF FreeBSD is missing some magic that Linux has.  Perhaps FreeBSD could find the magic bits.  Or perhaps I should just enjoy Linux, and forget about 30+years of unix experience... On 7/5/24 18:08, Dag-Erling Smørgrav wrote: > Steven Friedrich writes: >> I already have that sir: > In that case, I have nothing else to offer than “it works for me”. > >> I've been trying to get freebsd to fix this for years. > That is a very odd statement. Perhaps you should think it over. > > DES From nobody Sat Jul 6 08:36:52 2024 X-Original-To: freebsd-stable@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 4WGNzm44q4z5Pt85 for ; Sat, 06 Jul 2024 08:37:24 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WGNzl0yBWz45QQ for ; Sat, 6 Jul 2024 08:37:22 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.huji.ac.il header.s=57791128 header.b=CxEzJenz; dkim=none ("invalid DKIM record") header.d=cse.huji.ac.il header.s=57791128 header.b=kuqf3z1O; dmarc=pass (policy=none) header.from=huji.ac.il; spf=none (mx1.freebsd.org: domain of danny@cs.huji.ac.il has no SPF policy when checking 132.65.116.210) smtp.mailfrom=danny@cs.huji.ac.il DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=To:Date:Message-Id:Subject:Mime-Version:Content-Transfer-Encoding:Content-Type:From; bh=jap3EndPCXxlguBWZfcbviCFV7W8PM4Mgo4wMenLSY4=; b=CxEzJenzCSNM7t5SjAEAuGEcFeBWN9YVZtGASiRcaIozU/trpvxOocXt+K3Vtc7fI8kjpbVpV1dv4dW9/cgtdKf6XvQpGY7mqxqYOxNg1ZzgKvAvol/IccL3BWF5lWgUPzLHhCs9qaa9ltCo0EJgwaMVHeFw9dggoFmFXS6yknuXo+idd0fibfcUDkrUsfaUJO+8xPFJpEqrlGZ4cyi7HGuX1Loxqafn2w3RLUcJR9ZWP8p8w80yU8Eb0RQMkBdljMzFJw8gF77mWE7Dy3RRjyePPGPYEI/zkbTmHcqHPO+gSuNKSffVh+rQk7IHS6WoXn07/T2Wm27ex4ksXh817Q==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cse.huji.ac.il; s=57791128; h=To:Date:Message-Id:Subject:Mime-Version:Content-Transfer-Encoding:Content-Type:From; bh=jap3EndPCXxlguBWZfcbviCFV7W8PM4Mgo4wMenLSY4=; b=kuqf3z1OWqiu/NwY0Q1P5gm6tIwAII84FVFnPbw2KPirjaeDGYE6E4AiGuB2gUQY1wGqsImUoDFmvfNaT3IHnno/Kgr8eeJWi7Lzwzz9fHpGKLWmDVCHgjM53VE/82u9ToroliTOkyUIvq/RvjaptfzA8M531N5kzrwQYnnr3EsvVS+IeADZVEj8IPmsjOpZFnUa9g5q9uSfsNEHT04crvwshIYO267pap9mDD0jb743EQ2zQQAlBtwpBe8MoKS34KGY8etYBfolNdGwpZrKbVtqiuzsw5b5r7KfEBBkWLU2ZBZ9roofb82kaMrcfGrIgiG8fvNJzKYTYBKS+9CzTA==; Received: from imac.bk.cs.huji.ac.il ([132.65.179.42] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1sQ0uu-0002Qk-Iz for freebsd-stable@freebsd.org; Sat, 06 Jul 2024 11:37:12 +0300 From: Daniel Braniss Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: stable-14.1 ALT_BREAK_TO_DEBUGGER not working Message-Id: <9C61674F-C35D-4635-A32E-CDB0E392CAEA@cs.huji.ac.il> Date: Sat, 6 Jul 2024 11:36:52 +0300 To: FreeBSD-STABLE Mailing List X-Mailer: Apple Mail (2.3774.600.62) X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.64 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.94)[-0.942]; DMARC_POLICY_ALLOW(-0.50)[huji.ac.il,none]; R_DKIM_ALLOW(-0.20)[cs.huji.ac.il:s=57791128]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[cs.huji.ac.il:+,cse.huji.ac.il:~]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_NA(0.00)[no SPF record]; TO_DN_ALL(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DKIM_MIXED(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; FREEFALL_USER(0.00)[danny]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:378, ipnet:132.64.0.0/15, country:IL]; R_DKIM_PERMFAIL(0.00)[cse.huji.ac.il:s=57791128] X-Rspamd-Queue-Id: 4WGNzl0yBWz45QQ Hi Im trying out 14.1 and using bbhyve efi console, under 13.2 the seq. CR ~ ^B works, entering the debugger, but not under a fresh 14.2 Any idea why? Thanks, Danny From nobody Sun Jul 7 19:27:54 2024 X-Original-To: freebsd-stable@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 4WHHN1426yz5QM7F for ; Sun, 07 Jul 2024 19:28:01 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WHHN05vqLz46wf for ; Sun, 7 Jul 2024 19:28:00 +0000 (UTC) (envelope-from freebsd-stable@m.gmane-mx.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (mx1.freebsd.org: domain of freebsd-stable@m.gmane-mx.org designates 116.202.254.214 as permitted sender) smtp.mailfrom=freebsd-stable@m.gmane-mx.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sQXYF-000A1X-EI for freebsd-stable@freebsd.org; Sun, 07 Jul 2024 21:27:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Anton Shepelev Subject: Re: Need help controlling laptom display brightness via sysctl Date: Sun, 7 Jul 2024 22:27:54 +0300 Message-ID: <20240707222754.2a531eb3344cb4644c571c66@gmail.com> References: <20240704010029.75608a4e49205eb38a6034be@gmail.com> <20240705005834.4c7983ea29da3af8f8e36718@gmail.com> List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) X-Spamd-Bar: + X-Spamd-Result: default: False [1.76 / 15.00]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_MEDIUM(1.00)[0.999]; NEURAL_HAM_SHORT(-0.94)[-0.943]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; R_SPF_ALLOW(-0.20)[+mx]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCPT_COUNT_ONE(0.00)[1]; TAGGED_FROM(0.00)[]; MISSING_XM_UA(0.00)[]; TO_DN_NONE(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; FROM_NEQ_ENVFROM(0.00)[antontxt@gmail.com,freebsd-stable@m.gmane-mx.org]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:24940, ipnet:116.202.0.0/16, country:DE]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4WHHN05vqLz46wf I wrote to Kevin Oberman: > I fear you missed my point that HP seems to have a > different approach to these ACPI events. In ThinkPad, the > up- and down-brighness events have fixed notify codes: > 0x10 and 0x11. In HP, on the other hand, the notify codes > represent the target brightness level on a 0..100 scale, > so that consequtive presses of Fn+F3 yield an arithmetical > progression of notify codes, e.g. 51,52,53 &c, which is > why the simplest solution is to subsitute the notify value > into the invocation of `backlight'. > > Translating those codes into exponential changes would > require first of all to recall the previous value in order > to determine whether the current event is an increase or a > decrease. Indeed, and here is my final devd action stript: REF=50 # an (arbitrary) reference value NEW=$1 # the new brightness value as recevied from ACPI # Ignore the ref. value to avoid an infinite loop: if [ $NEW -eq $REF ]; then exit 0; fi # Determine whether to increase or decrease the brightness: if [ $NEW -lt $REF ]; then OP=decr else OP=incr; fi # Change brightness: backlight $OP # Restore the reference value: sysctl hw.acpi.video.lcd0.brightness=$REF # (in this system it has no effect on the actual brightness)