From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 28 16:10:21 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 00469106566B for ; Wed, 28 Jan 2009 16:10:20 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 9E8B48FC14 for ; Wed, 28 Jan 2009 16:10:20 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.166.22] ([68.0.14.34]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n0SFnmhc053918 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 28 Jan 2009 10:49:49 -0500 (EST) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Rui Paulo In-Reply-To: <224440FC-D2A2-4EE6-A4DB-CCB43F1DCDB4@gmail.com> References: <20090127124137.46fcfac5@baby-jane.lamaiziere.net> <20090127150040.GA4333@haruhi> <20090128134309.GN17198@hoeg.nl> <224440FC-D2A2-4EE6-A4DB-CCB43F1DCDB4@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-caXOGD8fIXNAmBOJ4GTQ" Organization: FreeBSD Date: Wed, 28 Jan 2009 10:50:25 -0500 Message-Id: <1233157825.1733.5.camel@wombat.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00, RCVD_IN_SORBS_DUL,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: Ed Schouten , Daniel Lannstrom , FreeBSD Hackers 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 16:10:21 -0000 --=-caXOGD8fIXNAmBOJ4GTQ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2009-01-28 at 14:29 +0000, Rui Paulo wrote: > On 28 Jan 2009, at 13:43, Ed Schouten wrote: >=20 > > * Daniel Lannstrom wrote: > >>> I'm asking which method will be the best to interface the driver =20 > >>> with > >>> userland applications? > >> > >> You might want to make it a character device driver. And write a =20 > >> 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 =20 > > cold > > day in hell when this happens. >=20 > Not really. The xorg intel driver is already able to deal with this. > I don't know about NVIDIA. The intel ddx driver doesn't really deal with it. On linux the drm has code that interfaces with acpi to deal with backlight management. For us, afaik we handle it in acpi_video. I've not tried to port that part of the drm code. I'm not certain where the best place for this function to live is really, but for Nvidia's proprietary driver, the only option is a seperate kernel driver. robert. > -- > Rui Paulo >=20 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " --=-caXOGD8fIXNAmBOJ4GTQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEABECAAYFAkmAfsEACgkQM4TrQ4qfROP20gCeKAGnKxjKPg/wUhoTeABrV2Me kYUAoIUPBxPic2uQNdisnqdNXS39iU3U =DiOv -----END PGP SIGNATURE----- --=-caXOGD8fIXNAmBOJ4GTQ--