Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753428Ab3HAJGS (ORCPT ); Thu, 1 Aug 2013 05:06:18 -0400 Received: from mga02.intel.com ([134.134.136.20]:9220 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751604Ab3HAJGP (ORCPT ); Thu, 1 Aug 2013 05:06:15 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.89,793,1367996400"; d="scan'208";a="355393190" Message-ID: <51FA2537.5040208@intel.com> Date: Thu, 01 Aug 2013 17:07:03 +0800 From: Aaron Lu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Borislav Petkov CC: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, lkml , "Rafael J. Wysocki" Subject: Re: i915 backlight References: <20130731162252.GC4724@pd.tnic> <20130731163623.GD4724@pd.tnic> <51F9B63F.7060509@intel.com> <20130801081215.GB3448@nazgul.tnic> In-Reply-To: <20130801081215.GB3448@nazgul.tnic> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2785 Lines: 90 On 08/01/2013 04:12 PM, Borislav Petkov wrote: > On Thu, Aug 01, 2013 at 09:13:35AM +0800, Aaron Lu wrote: >> Can you please run acpi_listen and then press the Fn-Fx key, see if the >> events are correctly sent out? > > Like this? > > # acpi_listen > video/brightnessdown BRTDN 00000087 00000000 > video/brightnessup BRTUP 00000086 00000000 > video/brightnessdown BRTDN 00000087 00000000 > video/brightnessup BRTUP 00000086 00000000 > video/brightnessdown BRTDN 00000087 00000000 > video/brightnessup BRTUP 00000086 00000000 > video/brightnessdown BRTDN 00000087 00000000 > video/brightnessup BRTUP 00000086 00000000 > video/brightnessdown BRTDN 00000087 00000000 > ^C Yes, so the event is correctly sent out. > >> From the bug page: >> https://bugzilla.kernel.org/show_bug.cgi?id=51231#c80 >> I got the impression that both the acpi_video interface and the vendor >> interface thinkpad_screen are broken. So adding this cmdline here works >> suggests that either thinkpad_screen works or thinkpad vendor driver >> doesn't get loaded or doesn't create that interface for some reason. >> >> Alternatively, if the intel_backlight interface works(highly possible), >> you can use xorg.conf to specify the that backlight interface for X. >> >> Section "Device" >> Option "Backlight" "intel_backlight" >> Identifier "Card0" >> Driver "intel" >> BusID "PCI:0:2:0" >> EndSection > > Yeah, that didn't work *but* manually writing to both: > > /sys/class/backlight/acpi_video0/brightness > > and > > /sys/class/backlight/intel_backlight/brightness > > works. Err...we have the event sent out on hotkey press and the interface also works, but still, using hotkey to adjust brightness level is broken... I just found an old acer laptop that has similar issue(or even worse: on X starts, an almost black screen is shown and hotkey adjust doesn't work), I'll look into this. > > The ranges are different, though: > > intel_backlight/actual_brightness:1000 > intel_backlight/bl_power:0 > intel_backlight/brightness:1000 > intel_backlight/max_brightness:4437 > intel_backlight/type:raw > > acpi_video0/actual_brightness:41 > acpi_video0/bl_power:0 > acpi_video0/brightness:41 > acpi_video0/max_brightness:100 > acpi_video0/type:firmware Yes, different interface has different brightness ranges and a value in one range may turn out to be the same actual brightness level of another value in another range. > > I guess I need to write me a dirty script for now ... :-) :-) > > Thanks guys. > Thanks, Aaron -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/