From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 30 08:44:23 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 58436106564A for ; Fri, 30 Jan 2009 08:44:23 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id E69F08FC19 for ; Fri, 30 Jan 2009 08:44:22 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 613BF1CCA7; Fri, 30 Jan 2009 09:44:21 +0100 (CET) Date: Fri, 30 Jan 2009 09:44:21 +0100 From: Ed Schouten To: Alexander Leidinger Message-ID: <20090130084421.GO17198@hoeg.nl> References: <20090130085227.957230z897u8viww@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Ian02MSQ7xDzAZO2" Content-Disposition: inline In-Reply-To: <20090130085227.957230z897u8viww@webmail.leidinger.net> User-Agent: Mutt/1.5.18 (2008-05-17) 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: Fri, 30 Jan 2009 08:44:23 -0000 --Ian02MSQ7xDzAZO2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Alexander Leidinger wrote: >> The ideal solution would be to integrate it into vidcontrol, calling >> some kind of ioctl on the TTY/consolectl, but syscons is too brainless >> to know anything about hardware specific features. > > Here we are back to what was proposed instead of sysctl. I have to admin= =20 > that I'm confused now about what you propose as a good solution. Well, I wouldn't like it if we create character devices, just to let it implement a single ioctl() ("/dev/backlight", for example). There is only 1 parameter that's adjustable, namely the backlight intensity. A sysctl is a good place to store such things. In my opinion we should only use character devices for devices that have the semantics of a file descriptor, namely to read/write data to it, perform select(), etc. Saying sysctl is bad, because it doesn't allow any permissions should be considered to be a defect of sysctl, not an advantage of devfs. The reason why I prefer consolectl, is because it already exists and allows related graphics parameters to be configured. --=20 Ed Schouten WWW: http://80386.nl/ --Ian02MSQ7xDzAZO2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkmCveUACgkQ52SDGA2eCwWIlwCfRZ7vNV3EuDaoTaUKmcOeihVb hAQAnjO4ARli5O0PHEr5cGncLf+ok9My =g6Sf -----END PGP SIGNATURE----- --Ian02MSQ7xDzAZO2--