From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 28 14:30:01 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FFB21065676 for ; Wed, 28 Jan 2009 14:30:01 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 193D38FC1B for ; Wed, 28 Jan 2009 14:30:00 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by ey-out-2122.google.com with SMTP id d26so17399eyd.7 for ; Wed, 28 Jan 2009 06:30:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=LEZ5ycBfGQNV0E0Fmzqmu50gbV1DqfkpH0JkCOVT3ts=; b=gwWbSX7iYsUp/TnegCk8HHnl07OpxsHZWdXb1unj4a3HaCLxzSEJyzMfcKGLbmorZk i6MaC6fLxWLLSxWaJcbXiraTV+CtM5tfDboloKF8qbrozwxU/5wAeSuKnByj6vvfKl9p eI/cxHPeR2jy3aacBRXwsh3H4J54QAvNiIzNU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=iqyxwcm9BVdKo2JqKDKBmJrGQD9VijCPMXGrDTIzHP5/LUrYHfMDvHuL8PZS9KDqJ8 n3nQkLRujhQ5p9M9HxQrOyinMIQ7oc/atCioiezB+ISBh0CCZuvbaaooiag/ZNI2Lhxb Jwk3Y8tanLNb/tsSSElnP8gwwg+b7rvDFhwbM= Received: by 10.86.59.18 with SMTP id h18mr877551fga.57.1233152999773; Wed, 28 Jan 2009 06:29:59 -0800 (PST) Received: from ?172.17.12.153? ([193.136.24.128]) by mx.google.com with ESMTPS id d4sm2660155fga.51.2009.01.28.06.29.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 28 Jan 2009 06:29:59 -0800 (PST) Sender: Rui Paulo Message-Id: <71915973-47E0-4F38-AC20-221817A19C11@freebsd.org> From: Rui Paulo To: Ed Schouten In-Reply-To: <20090128134309.GN17198@hoeg.nl> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Wed, 28 Jan 2009 14:29:57 +0000 References: <20090127124137.46fcfac5@baby-jane.lamaiziere.net> <20090127150040.GA4333@haruhi> <20090128134309.GN17198@hoeg.nl> X-Mailer: Apple Mail (2.930.3) Cc: FreeBSD Hackers , Daniel Lannstrom Subject: Re: Mackbook pro nvidia based video backlight X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2009 14:30:02 -0000 On 28 Jan 2009, at 13:43, Ed Schouten wrote: > * Daniel Lannstrom wrote: >>> I'm asking which method will be the best to interface the driver >>> with >>> userland applications? >> >> You might want to make it a character device driver. And write a >> small >> userland control program. Sysctl isn't really made for this kind of >> functionality. > > No. sysctl is good for doing stuff like this. An even better approach > would be to integrate it to the X11 driver, but I guess it will be > cold > day in hell when this happens. Not really. The xorg intel driver is already able to deal with this. I don't know about NVIDIA. -- Rui Paulo