From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 21 17:37:31 2014 Return-Path: Delivered-To: freebsd-hackers@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 F34623A0 for ; Tue, 21 Oct 2014 17:37:30 +0000 (UTC) Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [IPv6:2a00:1450:400c:c05::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 89EBBD08 for ; Tue, 21 Oct 2014 17:37:30 +0000 (UTC) Received: by mail-wi0-f172.google.com with SMTP id bs8so1749225wib.17 for ; Tue, 21 Oct 2014 10:37:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Ti+Wn4mS+ODI6arXbnK0b/ggimt9d6sMaAcIhKPf2lA=; b=ojXg41xmwB4o3+me8afPjbbdNhv0jZjHHFO2cuHhu96bzCKXB7oNG/xPaqp4m3E+4C MIFHWYLpnlgUfPq1pPzGqUWIWB3Evd9iiTtPnwu0c1tzcGnXcCkBEkSi7FZQtc+gsM0+ 83tnx/t9B3DfONSbso7uj+z1MLv7TBiju1HYQ0a2ueW2P0foQr1UJiFJIkeabvx+vf04 sZCF9dhtvGWnhUN2cC7M4pia+5Ktnh4lywBpw/Xoq3Iw9EDH1Cax5mJzU4TFy65Z7y2+ otX9QeytRBkwyrih5W2h1b/u1PTnu4edkZqX7HvRyxf2HQMf8qVxfEu9lRSPIluUUQMv O2ww== MIME-Version: 1.0 X-Received: by 10.180.11.200 with SMTP id s8mr25567735wib.20.1413913045121; Tue, 21 Oct 2014 10:37:25 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.216.106.136 with HTTP; Tue, 21 Oct 2014 10:37:25 -0700 (PDT) In-Reply-To: References: <20141019102848.GR72082@e-new.0x20.net> <86d29ot9dg.fsf@aguiar.info> Date: Tue, 21 Oct 2014 10:37:25 -0700 X-Google-Sender-Auth: Ljva1x3goR72Q-SFOqqgSn70d6Q Message-ID: Subject: Re: help with backlight control and memory From: Adrian Chadd To: Wojciech Puchar Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-hackers@freebsd.org" , Renato Aguiar , Lars Engels X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2014 17:37:31 -0000 Hi, Please file a PR then. I'm not sure who can help with it at the moment. It's likely going to require us writing some other modules that control brightness via other methods (eg directly to the GPU hardware for some chips) and then expose that via the same sysctl API. Then it has to be glued up with the button press events.. -a On 21 October 2014 05:33, Wojciech Puchar wrote: > OK so for now i will just keep it as is. it's not really a big deal > > > On Sun, 19 Oct 2014, Adrian Chadd wrote: > >> Is this running the latest -HEAD? >> >> Yes, some extra code was glued into the i915kms / drm2 code from Linux >> that correctly selected the right video output device for the >> brightness controls. (the opcontrol patch that I committed a couple >> months back.) >> >> The buttons don't work on my X series laptop, but the sysctl does. the >> buttons work for others on other X series laptops. It's likely some >> more ACPI and i915kms things need porting. >> >> >> >> -a >> >> >> On 19 October 2014 07:34, Renato Aguiar wrote: >>> >>> Hi Lars, >>> >>> On my X230 I only can change brightness calling acpi directly using >>> acpi_call. Did you make some additional configuration to be able to use >>> sysctl to control brightness? >>> >>> Thanks, >>> >>> Lars Engels writes: >>> >>>> On Sat, Oct 18, 2014 at 11:03:38PM +0200, Wojciech Puchar wrote: >>>>> >>>>> tried. jsut after kernel is loaded backlight control keys stops >>>>> working. >>>>> tried loading every acpi_* kernel module that is available, with no >>>>> results >>>> >>>> >>>> On my X230 running HEAD brightness keys only work when acpi_video.ko is >>>> _not_ loaded. When it is loaded, I can control brightness with sysctl, >>>> though. >>> >>> >>> -- >>> Renato Aguiar >> >> >> >