From owner-freebsd-current@FreeBSD.ORG Thu Jul 3 10:32:52 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6361F37B401 for ; Thu, 3 Jul 2003 10:32:52 -0700 (PDT) Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id A17D743FFD for ; Thu, 3 Jul 2003 10:32:51 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 22819 invoked from network); 3 Jul 2003 17:32:49 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 3 Jul 2003 17:32:49 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.9/8.12.9) with ESMTP id h63HWhGI081316; Thu, 3 Jul 2003 13:32:45 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030703102627.D92002@root.org> Date: Thu, 03 Jul 2003 13:32:57 -0400 (EDT) From: John Baldwin To: Nate Lawson cc: acpi-jp@jp.freebsd.org cc: current@freebsd.org cc: "M. Warner Losh" Subject: Re: Updated ec-burst.diff patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2003 17:32:52 -0000 On 03-Jul-2003 Nate Lawson wrote: > On Thu, 3 Jul 2003, M. Warner Losh wrote: >> In message: <20030701164231.M88547@root.org> >> Nate Lawson writes: >> : On Wed, 2 Jul 2003, Florian Smeets wrote: >> : > I set hw.acpi.ec.burst_mode=0 in loader.conf but when i was trying to >> : > chek if it was set to 0 with sysctl hw.acpi.ec.burst_mode i got : >> : > >> : > flo@lappi [~] 15 #sysctl hw.acpi.ec.burst_mode >> : > sysctl: unknown oid 'hw.acpi.ec.burst_mode' >> : >> : It's a tunable, not a sysctl. So you can only set it in loader.conf. Are >> : there any messages when you boot with that in your loader.conf? Would you >> : please post a separate dmesg for that case? >> >> I personally think that all tunable should be read-only (or rw if >> possible) sysctls... > > I'm still not sure why we have both mechanisms. Perhaps a useful approach > would be to sweep the tree for tunables and change them to sysctls with > appropriate permissions (read-only if in doubt). Then remove the tunable > mechanism. Care to put together a patch? Cause you can't set sysctl's from the loader, only tunables? Are you going to duplicate the entire kernel environment from 'kenv' in sysctl? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/