From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 22 22:15:09 2011 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6D7410656A3 for ; Thu, 22 Sep 2011 22:15:09 +0000 (UTC) (envelope-from freebsd-ppc@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 63F278FC12 for ; Thu, 22 Sep 2011 22:15:09 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R6rJN-0002Zo-Pf for freebsd-ppc@freebsd.org; Fri, 23 Sep 2011 00:00:05 +0200 Received: from odyssee.gentiane.org ([80.65.224.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Sep 2011 00:00:05 +0200 Received: from miod by odyssee.gentiane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Sep 2011 00:00:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-ppc@freebsd.org From: Miod Vallat Date: Thu, 22 Sep 2011 21:17:50 +0000 (UTC) Organization: Prumpleffer Gmbh Lines: 11 Message-ID: References: <91CC14C1-14F2-41B3-81F1-D90B42F038CA@alumni.cwru.edu> <4E7AAA9D.9010503@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: odyssee.gentiane.org User-Agent: slrn/0.9.9p1 (OpenBSD) Subject: Re: ofw syscons brightness patch X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2011 22:15:09 -0000 > + /* Scale by 17, so it's a range of 0-12. Also, from OpenBSD's source, > + * 0x34 is the minimum brightness allowed before the backlight shuts off. I wrote that code long ago. It was tested on an early iBook G3, and found out to not work (i.e. the OFW method does nothing or does not exist) on most of the TiBook and recent iBook of the 2002-2005 years. I have no idea if more recent models behave any better, but in any case do not expect this to work on all systems. Miod