Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756178AbZFHPYS (ORCPT ); Mon, 8 Jun 2009 11:24:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754423AbZFHPYD (ORCPT ); Mon, 8 Jun 2009 11:24:03 -0400 Received: from mail-fx0-f213.google.com ([209.85.220.213]:48517 "EHLO mail-fx0-f213.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753388AbZFHPYB (ORCPT ); Mon, 8 Jun 2009 11:24:01 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=WfaVbDX+OobdlPQWZ/ncpEHc958x/awGeivzf5Tj1i782fjNE6mYIwBxXT/JnZopW3 Q8xsP5fKw1vNCTRboN62nI1X4pOYCe0YPf8RfuqohF2ZKeSRwXvd6oP1gttOvoclnJhh Mp7NP8Ayt4h8BP4jXm/pbALVs1RgSnxhbpHFU= MIME-Version: 1.0 Reply-To: alan-jenkins@tuffmail.co.uk In-Reply-To: <20090404041813.GA30746@srcf.ucam.org> References: <504BBE2828%linux@youmustbejoking.demon.co.uk> <20090404041813.GA30746@srcf.ucam.org> Date: Mon, 8 Jun 2009 16:24:01 +0100 Message-ID: <9b2b86520906080824i134ee546v33990176b0d3e618@mail.gmail.com> Subject: Re: [PATCH 2.6.29] eeepc-laptop: report brightness control events via the input layer From: Alan Jenkins To: Darren Salt , Corentin Chary Cc: linux-kernel@vger.kernel.org, acpi4asus-user@lists.sourceforge.net, Matthew Garrett Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2816 Lines: 62 On 4/4/09, Matthew Garrett wrote: > On Fri, Apr 03, 2009 at 06:57:50PM +0100, Darren Salt wrote: >> This maps the brightness control events to one of two keys, either >> KEY_BRIGHTNESSDOWN or KEY_BRIGHTNESSUP, as needed. >> >> Some mapping has to be done due to the fact that the BIOS reports them as >> + ; the selection is done according >> to >> the sign of the change in brightness (if this is 0, no keypress is >> reported). >> >> (Ref. >> http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/2009-April/002001.html) >> >> Signed-off-by: Darren Salt > > The reason I didn't do this is that the Eee changes the input brightness > in hardware, which means reporting it via the input layer as well can > cause a single keypress to raise the brightness by two steps - one in > hardware and one triggered by userland's response to the key press. I'd > be a little bit wary of this causing problems. > > On the other hand, the default behaviour of the acpi video driver is to > change the brightness itself and then also to send the even to > userspace, so I guess if it was going to break things it probably would > have done already... Actually, I think userspace has learnt to hack around it but it doesn't work perfectly. I would like to request that this change be reverted, or otherwise improved. Before this patch (2.6.29.4), gnome-power-manager doesn't interfere with the brightness keys, and they work smoothly. After this patch (2.6.30-rc7), g-p-m produces a "nice" popup in the middle of my tiny netbook screen. Unfortunately it can't be disabled, but that's not your fault :-). The brightness controls generally work ok. It doesn't jump two steps in response to one brightness keypress. But: 1) If I'm thrashing the SSD. I get jerky after-effects, where g-p-m seems to take too long to "catch up" with the brightness change. 2) If I go all the way down from full (holding down the "brightness down" key), and then back up a few steps. I get a noticable flash where the brightness looks to go up two steps, then down one. It's probably most noticable here because the step change between the lowest and the second lowest brightness is much more visible than any of the other steps. Both seem realistic use cases on this hardware. It's obviously a cheap SSD which is prone to latency during large writes. And when I move between rooms, I often adjust the brightness this way, to find the minimum brightness which is comfortable. Thanks Alan -- 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/