From owner-freebsd-ppc@FreeBSD.ORG Fri Sep 23 01:26:12 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 7898F106566C for ; Fri, 23 Sep 2011 01:26:12 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2CD3C8FC15 for ; Fri, 23 Sep 2011 01:26:11 +0000 (UTC) Received: by ywp17 with SMTP id 17so3029738ywp.13 for ; Thu, 22 Sep 2011 18:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; bh=uQSnsdOimOmsr8W/Sl7wim68jUBA8+FP6WRunow/wx4=; b=IXc8rfbaph4mLx22y9Wfm+7HZMGpaf8aX1gZI7rIiVqj/z9im6TbOS9447QJyERT+B vXZI/zyxl8XRJnJaouHd9T/iKJdtTlO6VwCE07dSpTsYJ0tvr3YADKx+lGQNTbtTL8zN r3Hj+mhv/p2PAWT9hOedsKVjzx5DFpZVHib0U= Received: by 10.101.148.13 with SMTP id a13mr2759585ano.44.1316741171440; Thu, 22 Sep 2011 18:26:11 -0700 (PDT) Received: from triad.knownspace (216-15-41-8.c3-0.gth-ubr1.lnh-gth.md.cable.rcn.com. [216.15.41.8]) by mx.google.com with ESMTPS id a35sm19093439ana.10.2011.09.22.18.26.10 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Sep 2011 18:26:10 -0700 (PDT) Message-Id: <60817CE0-A4FE-44A1-A463-99BCD87AF99F@gmail.com> From: Justin Hibbits To: Miod Vallat In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Thu, 22 Sep 2011 21:26:08 -0400 References: <91CC14C1-14F2-41B3-81F1-D90B42F038CA@alumni.cwru.edu> <4E7AAA9D.9010503@freebsd.org> X-Mailer: Apple Mail (2.936) Cc: freebsd-ppc@freebsd.org 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: Fri, 23 Sep 2011 01:26:12 -0000 On Sep 22, 2011, at 5:17 PM, Miod Vallat wrote: >> + /* 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 It works quite well on my 1GHz TiBook, which was the purpose of writing this in the first place. I would like others to test it on other hardware. - Justin