[maemo-developers] Mapping the N900 keyboard?

From: Qole qole.tablet at gmail.com
Date: Fri Nov 20 01:36:35 EET 2009
So no, that command, "dsmetool -k /usr/bin/hildon-desktop" is not an option,
since it kills the desktop. I can't kill the desktop. It has its uses ;-)

What is this XSetInputFocus and how do I set it from the command line?

2009/11/19 Qole <qole.tablet at gmail.com>

>
>
> 2009/11/15 Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>
>
> On Mon, 2009-11-16 at 08:39 +0100, ext Faheem Pervez wrote:
>> > On 11/16/09, Kimmo Hämäläinen <kimmo.hamalainen at nokia.com> wrote:
>> > > On Mon, 2009-11-16 at 02:03 +0100, ext Qole wrote:
>> > >> I am still hoping for some more help with remapping the N900 keyboard
>> > >> (see quoted message below).
>> > >>
>> > >> I have come across a problem I believe is related, and it is much
>> more
>> > >> urgent for me to identify and fix the problem.
>> > >>
>> > >> When I start a nested Xephyr X Server on the N900, the desktop
>> > >> environment that I run in that X Server (LXDE, on DISPLAY :1) does
>> not
>> > >> seem to have access to the keyboard. No keyboard presses are passed
>> to
>> > >> DISPLAY :1 at all. When I press the key combination to get to the
>> > >> Dashboard (CTRL-Backspace), I am taken to the Dashboard, which
>> > >> suggests that maybe Hildon desktop is not "letting go" of the
>> > >> keyboard.
>> > >
>> > > hildon-desktop does not ever grab the keyboard. It only grabs some
>> > > specific key combinations, such as that ctrl+backspace.
>> > >
>> > >> I have tried using xkbcomp as described below to copy the keyboard
>> > >> mapping to display :1, but it doesn't help.
>> > >
>> > > Does 'xev' report any key events?
>> > >
>> >
>> > xev won't work on the N900 by default for exactly the same reason
>> > qole's LXDE stuff isn't working:
>> > https://bugs.maemo.org/show_bug.cgi?id=5987
>>
>> Seems to work after:
>> 1) dsmetool -k /usr/bin/hildon-desktop
>> 2) xev &
>> 3) tap on the xev window
>>
>> Or you could device a diabolical utility program that calls
>> XSetInputFocus for the xev window...
>>
>>
> Could this dsmetool technique (which I don't pretend to understand at all)
> be used to help give my Xephyr window the required focus to receive keyboard
> input, too? Because the Xephyr window gets focus in every other way, that
> is, I can use an on-screen virtual keyboard within the secondary X Server to
> type, but not the physical N900 keyboard...
>
> I'm going to try it out, regardless.
>
>
> --
> enthusiast, n. "One whose mind is wholly possessed and heated by what
> engages it; one who is influenced by a peculiar fervor of mind; an ardent
> and imaginative person."
>



-- 
enthusiast, n. "One whose mind is wholly possessed and heated by what
engages it; one who is influenced by a peculiar fervor of mind; an ardent
and imaginative person."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20091119/65edf00c/attachment.htm 
More information about the maemo-developers mailing list