From owner-freebsd-ppc@freebsd.org Wed May 4 02:46:23 2016 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B6FFB2CF95 for ; Wed, 4 May 2016 02:46:23 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4671C1278 for ; Wed, 4 May 2016 02:46:23 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-io0-x231.google.com with SMTP id 190so41748867iow.1 for ; Tue, 03 May 2016 19:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2rUmizf+ALMYzZpMDZ0LOaucgACtLqeo7HTbywepKZE=; b=sX84Mj0YyFzUqi/2dXTSRnlUg03CRcE9XBBxx12mwGIdCyCKORVaK4mZdkj6AVkYmj v0uJpWUbeJE55mZri+NdRE2fH5ObSDx1y7C8o3xSWYyTBLge7/0ll4ijNTWg8TFOzRC0 /eEjVd7IRKUoxSRq5Gm/Qb8SkU6yiRk7Ykh/s9BNFlE8WBdAmaf8vJgeYNx6Pxa8hq4H 0mWE61Sv35j+oyQTIqrN9V/SG1jQG3WIoQ5eA6oH5x7AiizLTu7VYbv48hIz2HtCfYwA oDiEfMdFVTHxvRsoSZ7u+zmsOwqnNUecHJu6i+O8ZSQvTNUrJZhkUuGgKrP3vx41j7hy bVlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2rUmizf+ALMYzZpMDZ0LOaucgACtLqeo7HTbywepKZE=; b=b8dfn8zhFgAXWgIAm+o8upf16IYk9RFYAC4Oyh4SH4Su/NKXetC1BLD8qT3QaGaSEK WgkBzOwUKZE290VYfR+rhzXzQqNNVQm79lzM5Yl8bPQ7ccIg+1FmMcqgcwfvLJOCe//L 4HWjklctTaDfP97MkCbpj8DhHpPDKIthJAVTxBJJl0WRYwrxOwZrFM2ajHMrgfTUtJob ZuFwxYNyulaujHpfpowGNisuDVrVhNTXeAFxWZP9c589NctZB/X/iSoBiQZjK6RMdvDC aY2glKOjx6L1jvvv6d7l5xnWHNWFWJkQ0tPswajEQ5C1SFx71gyxgGO3YV/7yDc0C/kc E8AA== X-Gm-Message-State: AOPr4FVYJQy+H77Fu6Ix+ThGKiX/GZnfqwALQkMuL658A3x7bazF1f2xz/6khWueSLN0Mg== X-Received: by 10.107.7.72 with SMTP id 69mr7148108ioh.64.1462329982566; Tue, 03 May 2016 19:46:22 -0700 (PDT) Received: from zhabar.knownspace (c-98-240-160-157.hsd1.mn.comcast.net. [98.240.160.157]) by smtp.gmail.com with ESMTPSA id b9sm852356igv.6.2016.05.03.19.46.21 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 May 2016 19:46:22 -0700 (PDT) Date: Tue, 3 May 2016 21:46:20 -0500 From: Justin Hibbits To: Daniel Sharoh Cc: freebsd-ppc@freebsd.org Subject: Re: Backlight control on iMAC G5 8,1 Message-ID: <20160503214620.13191b12@zhabar.knownspace> In-Reply-To: References: X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; powerpc64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2016 02:46:23 -0000 On Tue, 3 May 2016 23:17:07 +0200 Daniel Sharoh wrote: > Hi everyone, > > Sorry if this is the wrong place for my question. Maybe I should ask > on IRC instead? > > I'm new to freeBSD and BSD in general, but am a long time linux user. > I have an iMac G5 that I've installed freeBSD 10.2 on, and it's > generally working well. This system uses the ATI Radeon 9600 graphics > card, and I am using the ati-ums driver with X because the the > regular ati driver won't build on my system (it says intel only when > I try to build it). One major problem I have with my system is that I > cannot control the backlight level. > > For example 'sysctl dev.backlight.0.level=0' has no effect. > 'xset dpms force off' blanks the screen but leaves the backlight on > > When I query sysctl dev.backlight I get > > dev.backlight.0.level: 2956 > dev.backlight.0.%parent: vgapci0 > dev.backlight.0.%pnpinfo: > dev.backlight.0.%location: > dev.backlight.0.%driver: backlight > dev.backlight.0.%desc: PowerBook backlight for nVidia graphics > dev.backlight.%parent: > > Which seems suspicious because I don't have an nVidia graphics card. > > I see atibl.c in /usr/src/sys/powerpc/powermac/, but that module isn't > available in /boot/kernel/ or /usr/src/sys/modules > > Does anyone have any idea what I could do? I haven't been able to > find any information, probably because I'm new to BSD and ask the > wrong questions. > > Another unrelated problem is that I don't have any control over the > hardware volume using 'mixer.' Programs like mplayer can use software > control, as in this post > https://lists.freebsd.org/pipermail/freebsd-ppc/2014-January/006796.html, > but it would be nice to have hardware control. Is this currently > achievable on the iMac 8,2? > > Thanks! > Dan > > Hi Dan, The atibl driver is built into the kernel, I never made it compileable as a module, nor nvbl. There is a bug in stable/10, which I've fixed in head, regarding the backlight drivers. In stable/10, the drivers only check the device type, which I learned later is insufficient, so the drivers now, in head, check the PCI device ID as well, so the driver should work properly for you in head. Regarding the mixer, that driver has not been written yet. Unfortunately most of us who work on powerpc don't have much time lately, or the hardware to test with. I don't know if there's a bug filed for it, but if not, could you file a bug, and also post the output of 'ofwdump -ap' into the bug? - Justin