Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Users

Mapping the N900 keyboard?

 

 

Maemo users RSS feed   Index | Next | Previous | View Threaded


qole.tablet at gmail

Oct 22, 2009, 4:50 PM

Post #1 of 6 (1123 views)
Permalink
Mapping the N900 keyboard?

I'll try on the users list first, and then I'll try the development list.

How does one map custom keys on the N900?

None of the changes I make to /usr/share/X11/xkb/symbols/nokia_vndr/rx-51
have any effect (yes I reboot after changing the file).

Can someone in Nokia comment on this?

--
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."


jrocha at igalia

Oct 23, 2009, 12:57 AM

Post #2 of 6 (1079 views)
Permalink
Re: Mapping the N900 keyboard? [In reply to]

Hi Qole,

It depends on the changes you make. If you create a new keyboard, then
you should set it by running:

# setxkbmap KB_NAME

Could you tell me an example of the changes you're trying to make?


Cheers,

--
Joaquim Rocha
Igalia · Free Software Engineering

Qole wrote:
> I'll try on the users list first, and then I'll try the development list.
>
> How does one map custom keys on the N900?
>
> None of the changes I make to /usr/share/X11/xkb/symbols/nokia_vndr/rx-51
> have any effect (yes I reboot after changing the file).
>
> Can someone in Nokia comment on this?
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> maemo-users mailing list
> maemo-users [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-users

_______________________________________________
maemo-users mailing list
maemo-users [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-users


qole.tablet at gmail

Oct 23, 2009, 11:12 AM

Post #3 of 6 (1077 views)
Permalink
Re: Mapping the N900 keyboard? [In reply to]

Sorry, I was unclear about the place to post this. Technically, this is a user problem (a power user wants to remap some keys, nothing to do with developing a package), which is why I tried -users first.

----- Original message -----
>
>
> ext Qole wrote:
> > I'll try on the users list first, and then I'll try the development list.
>
> Why trying to get an answer from Nokia developers for a developer
> question in maemo-users? Kimmo & co are all in maemo-developers. Sorry,
> I can't help you myself.
>
> Quim


marius at pov

Oct 25, 2009, 5:23 AM

Post #4 of 6 (1046 views)
Permalink
Re: Mapping the N900 keyboard? [In reply to]

On Thu, Oct 22, 2009 at 04:50:23PM -0700, Qole wrote:
> I'll try on the users list first, and then I'll try the development list.
>
> How does one map custom keys on the N900?

I've had partial success by doing this:

$ xkbcomp :0 default.xkb
$ vi default.xkb

comment out the two rules that cause syntax errors:

// interpret AccessX_Enable+AnyOfOrNone(all) {
// action= LockControls(controls=);
// };

// interpret MouseKeys_Accel_Enable+AnyOfOrNone(all) {
// action= LockControls(controls=);
// };

Now you can restore the settings back by running

$ xkbcmp default.xkb :0

if you screw up and end up with a nonfunctional keyboard.

Next

$ cp default.xkb mg.xkb
$ vi mg.xkb

key <RGHT> {
type= "FOUR_LEVEL",
symbols[Group1]= [ Right, Right, Tab, Tab ]
};

$ xkbcomp mg.xkb :0

and now Fn+Right arrow is a Tab key.

Sadly I don't know enough about xkbcomp to see if it's possible to make
it load incomplete maps on top of the current configuration, just to
update a few symbols without replicating the full configuration.

> None of the changes I make to /usr/share/X11/xkb/symbols/nokia_vndr/rx-51
> have any effect (yes I reboot after changing the file).

Maybe the files in /var/cache/xkb contain precompiled versions of those?

I'm not adventurous enough to go and start editing files in /usr/.
Although creating a new symbols file in there and loading it on top of
the defaults with setxkbmap ought to maybe work...

Marius Gedminas
--
When all else fails, read the instructions.
Attachments: signature.asc (0.18 KB)


marius at pov

Oct 26, 2009, 1:53 AM

Post #5 of 6 (1047 views)
Permalink
Re: Mapping the N900 keyboard? [In reply to]

On Sun, Oct 25, 2009 at 02:23:51PM +0200, Marius Gedminas wrote:
> On Thu, Oct 22, 2009 at 04:50:23PM -0700, Qole wrote:
> > I'll try on the users list first, and then I'll try the development list.
> >
> > How does one map custom keys on the N900?
>
> I've had partial success by doing this:
>
> $ xkbcomp :0 default.xkb
> $ cp default.xkb mg.xkb
> $ vi mg.xkb
> $ xkbcomp mg.xkb :0
>
> and now Fn+Right arrow is a Tab key.

A few minutes later I discovered that a process called
maemo-xinput-sounds was consuming 100% of CPU. I gave it five minutes,
then killed it manually.

Coincidence?

Marius Gedminas
--
TCP_SeqNum - The 32-bit Sequence Number, encoded as an ASCII string
representing the hex value of the Sequence number. This field
MUST be sent as lower case because it is not urgent.
-- RFC 3093
Attachments: signature.asc (0.18 KB)


qole.tablet at gmail

Oct 28, 2009, 3:14 PM

Post #6 of 6 (1008 views)
Permalink
Re: Mapping the N900 keyboard? [In reply to]

On Sun, Oct 25, 2009 at 5:23 AM, Marius Gedminas <marius [at] pov> wrote:

> On Thu, Oct 22, 2009 at 04:50:23PM -0700, Qole wrote:
> > I'll try on the users list first, and then I'll try the development list.
> >
> > How does one map custom keys on the N900?
>
> I've had partial success by doing this:
>
> $ xkbcomp :0 default.xkb
> $ vi default.xkb
>
> comment out the two rules that cause syntax errors:
>
> // interpret AccessX_Enable+AnyOfOrNone(all) {
> // action= LockControls(controls=);
> // };
>
> // interpret MouseKeys_Accel_Enable+AnyOfOrNone(all) {
> // action= LockControls(controls=);
> // };
>
> Now you can restore the settings back by running
>
> $ xkbcmp default.xkb :0
>
> if you screw up and end up with a nonfunctional keyboard.
>
> Next
>
> $ cp default.xkb mg.xkb
> $ vi mg.xkb
>
> key <RGHT> {
> type= "FOUR_LEVEL",
> symbols[Group1]= [ Right, Right, Tab, Tab ]
> };
>
> $ xkbcomp mg.xkb :0
>
> and now Fn+Right arrow is a Tab key.
>
> Sadly I don't know enough about xkbcomp to see if it's possible to make
> it load incomplete maps on top of the current configuration, just to
> update a few symbols without replicating the full configuration.
>
> > None of the changes I make to /usr/share/X11/xkb/symbols/nokia_vndr/rx-51
> > have any effect (yes I reboot after changing the file).
>
> Maybe the files in /var/cache/xkb contain precompiled versions of those?
>
> I'm not adventurous enough to go and start editing files in /usr/.
> Although creating a new symbols file in there and loading it on top of
> the defaults with setxkbmap ought to maybe work...
>


Thank you for your help. That works to get me started.

Now to return your favour:

Replace
type= "FOUR_LEVEL",
symbols[Group1]= [ Right, Right, Tab, Tab ]
with
type= "PC_FN_LEVEL2",
symbols[Group1]= [ Right, Tab ]

and you will retain the ability to highlight text with shift-right arrow.


--
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."

Maemo users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.