From owner-freebsd-current@FreeBSD.ORG Sun Feb 1 14:47:56 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 969F2A82; Sun, 1 Feb 2015 14:47:56 +0000 (UTC) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::22d]) (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 54A9ED1E; Sun, 1 Feb 2015 14:47:56 +0000 (UTC) Received: by mail-ig0-f173.google.com with SMTP id a13so12943979igq.0; Sun, 01 Feb 2015 06:47:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=E7Hm/P0MbbxIhVFNk939yyRW5oiixwf8CiryAh/OEAw=; b=KCeCTv8LuZ8PG3e6PeOqHn1BvdpTonCkDoTxFvoXYvyPsXC47+kqRdpj2i560rHNUS rENu8d9P6n3uX1rhbJcpS1MP2DvUeZiRof/ojMlnqPq4w3xPTLreJ1OOdpPyY/X8Ck/M OMJPp9vwfq9KtZl1KSPXcnOi9rMBSJAdVPploWmvYXE5s/5zPxumlCDyEAIzWAeU0SnW qPTs4zuzth8nCVltuZkiwMudxyKnxJSxYo8NDWFTKIPP+K1U122EZVasHOu32m0mIcLC c2VWMWwQagKqX6fihIbBSWNqNb3xPyIO4UH0XkCxqtJaM4MW+TcyxmWyGeN2ZyfZt5rX F2IA== X-Received: by 10.50.142.38 with SMTP id rt6mr7097212igb.39.1422802075840; Sun, 01 Feb 2015 06:47:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.236.106 with HTTP; Sun, 1 Feb 2015 06:47:35 -0800 (PST) In-Reply-To: <54CD555E.9060101@shurik.kiev.ua> References: <54C883E7.4000300@interlinked.me> <54CC57CE.2080001@interlinked.me> <54CC7288.3040409@interlinked.me> <54CC8FF7.4020507@interlinked.me> <54CD555E.9060101@shurik.kiev.ua> From: Miguel Clara Date: Sun, 1 Feb 2015 14:47:35 +0000 Message-ID: Subject: Re: Questions on adding backlight support for the i915 driver To: Alexandr Krivulya Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: Adrian Chadd , freebsd-current , Konstantin Belousov , Justin Hibbits , Elizabeth Myers X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2015 14:47:56 -0000 On Sat, Jan 31, 2015 at 10:21 PM, Alexandr Krivulya wrote: > 31.01.2015 10:30, Miguel Clara =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > On Sat, Jan 31, 2015 at 8:19 AM, Elizabeth Myers < > elizabeth@interlinked.me> > > wrote: > > > >> On 01/31/15 02:15, Miguel Clara wrote: > >>> Working fine on a HP running current as I've noted in the other threa= d > >>> as for the keys. > >>> This one (and most HP Pavillion models) use the Fn+F(2/3) but the key= s, > >>> and my Acer (and I think not all are like this) use "Fn+<-/->" > >> If your keys work (as in, they do things in FreeBSD), does sysctl and > >> the keys work together just fine with no weird effects? > >> > >> The only weird problem I could possibly think of that could come up is > >> that the keys do a simple add/subtract to the PCM values, and so the > >> brightness ends up wrong. See if that happens. > >> > >> > > Well, in the HP the keys don't do nothing it seems not even "xev" repor= ts > > anything when I use them, but they could be wrongly mapped maybe... > > > > On the acer I do see keycodes from xev, but Im using lumina and If I tr= y > to > > map them to anything it doesn't work... I'll see what happens after > reboot > > though. > > > > > All works fine (sysctl and Fn-keys) on my Thinkpad E530 with IvyBridge! > I my case it seems the issue wih the keys is that FreeBSD doesn't really "know about them". In the Acer laptop, it compiled and installed fine, and after reboot the sysctl works awesome, but I add to map the keycodes in fluxbox: None 239 :Exec intel_backlight decr None 123 :Exec intel_backlight incr I use the intel_backlight program still cause its easier to send the "decr" and "incr".