Disabling shoulder buttons when the lid is closed

Albert llabret at gmail.com
Fri May 1 20:29:51 CEST 2009


On Fri, May 1, 2009 at 3:36 AM, Malcolm <malcolm.parsons at gmail.com> wrote:
> 2009/4/30 Albert <llabret at gmail.com>:
>> Attached is a diff of a modified button.c, which disables the shoulder
>> buttons (plus a few) when the lid is closed.
>
> The shoulder buttons might be useful with the lid closed?

Well, seeing as they're generally mapped to shift and ctrl, I've
actually found it to be more of a nuisance that they're enabled when
the lid is closed. Particularly because I keep hitting one of the
shoulder buttons while it's in my pocket, which keeps the display from
sleeping, and drains the battery more quickly than necessary.

>
>> While it seems to work fine, I'm pretty sure it isn't implemented
>> correctly. So, if anyone can let me know the correct way, it would be
>> greatly appreciated.
>
> I think the driver should describe what the key is.
>
> Userspace can use the loadkeys program to decide what action the key performs.

I see, I didn't know there was such a program. Google seems to point
to this being what I really wanted, but didn't know to look for. It
doesn't seem to get built though.

>
> --
> Malcolm Parsons
> --
> dslinux-devel mailing list
> dslinux-devel at dslinux.in-berlin.de
> http://mailman.dslinux.in-berlin.de/mailman/listinfo/dslinux-devel-dslinux.in-berlin.de
>


More information about the dslinux-devel mailing list