keyboard handling (was Re: OLPC where to go development advice.)
david at lang.hm
david at lang.hm
Mon Feb 2 20:17:33 EST 2009
at the OS level the brightness and volume keys are just the standard
F9-F12 keys
if you look at the 'keyboard shortcuts' page on the wiki they are even
documented that way (or at least I think they were at one point)
it's Sugar that decides to monkey with the brightness and volume when
those keys are pressed.
the other distros setup the mapping using the specific tools for that
desktop. but they all boil down to setting up something to look for those
keys and then running the appropriate script.
David Lang
On Mon, 2 Feb 2009, Carol Farlow Lerche wrote:
> It seems that the implementations for volume and brightness keys are handled
> separately from the remainder of the keyboard in most laptops. I have
> recently been installing Linux in various older laptops, some with gnome,
> some with xfce, and have found the laptop "special keys" scripts in
> /etc/acpi. Is this a debian/ubuntu-ism?
>
> On Mon, Feb 2, 2009 at 3:47 PM, <pgf at laptop.org> wrote:
>
>> s wrote:
>> > Summary: I updated
>> > <http://wiki.laptop.org/go/Enabling_XO_features_on_other_distributions>
>> > <http://wiki.laptop.org/go/Keyboard_shortcuts>
>> > and several other pages, but mysteries remain.
>> >
>> > pgf at laptop.org usefully responded:
>> >
>> >>> I have zero clue where to find the keymapping
>> >>> file or configuration utility.
>> >>
>> >> i just booted ubuntu to see how they do it -- turns out it's easy.
>> >> they use a program called "xbindkeys" to bind all of the "special" XO
>> >> keys. the configuration for that is in /home/olpc/.xbindkeysrc --
>> you'll
>> >> see an entry in there that invokes /usr/bin/rotate_screen.py.
>> >
>> > I added this to
>> > <http://wiki.laptop.org/go/Enabling_XO_features_on_other_distributions>
>> > Folks, this is the page where distros note their tweaks for the benefit
>> > of humanity.
>> >
>> > I think Sugar doesn't use that technique. ...
>>
>> but i've been wondering if perhaps it should.
>>
>> given that sugar is now multi-platform, does it make sense for
>> sugar itself to be managing the special XO keyboard keys? seems like
>> pulling that support out would let it be reused by non-sugar
>> distros more readily.
>>
>> what happens when you press F9 through F12 when running SoaS?
>> (i think those are the volume and brightness keys on the XO.)
>>
>> paul
>> =---------------------
>> paul fox, pgf at laptop.org
>> _______________________________________________
>> Devel mailing list
>> Devel at lists.laptop.org
>> http://lists.laptop.org/listinfo/devel
>>
>
>
>
>
-------------- next part --------------
_______________________________________________
Devel mailing list
Devel at lists.laptop.org
http://lists.laptop.org/listinfo/devel
More information about the Devel
mailing list