Norwegian keyboard on the N950

The N950 is delivered with a keyboard without Norwegian keys, so I decided to map holding the function/arrow key and pressing comma (,), period (.) or asterix (*) to ø, æ and å, respectively.

I you are Norwegian and just want this to work straight away, you can do the following on your device:

ssh root@localhost
wget http://dragly.org/wp-content/uploads/2011/08/rm-680
cp /usr/share/X11/xkb/symbols/nokia_vndr/rm-680 /usr/share/X11/xkb/symbols/nokia_vndr/rm-680-backup
cp rm-680 /usr/share/X11/xkb/symbols/nokia_vndr/
setxkbmap -model nokiarm680 -layout us

And that should do the trick. The keys are mapped as follows:

FN + .             æ
FN + ,             ø
FN + *             å
FN + SHIFT + .     Æ
FN + SHIFT + ,     Ø
FN + SHIFT + *     Å

If you’re speaking a different language and just want to edit the keymap manually, you can open up the rm-680 keymap file

nano /usr/share/X11/xkb/symbols/nokia_vndr/rm-680

and find the US section close to the top:

// setxkbmap -model nokiarm680 -layout us
partial alphanumeric_keys
xkb_symbols "us" {
    include "nokia_vndr/rm-680(english-base)"

    name[Group1] = "English US";
}

Then add the following for Norwegian characters:

// setxkbmap -model nokiarm680 -layout us
partial alphanumeric_keys
xkb_symbols "us" {
    include "nokia_vndr/rm-680(english-base)"

    name[Group1] = "English US";

    // dragly keys
    key <AB08>	{ [	comma,		semicolon,	oslash,	Oslash	] };
    key <AB09>	{ [	period,		colon,		ae,		AE		] };
    key <AC11>	{ [	apostrophe,	asterisk,	aring,	Aring	] };
};

Now, this still affects the comma, period and asterix, but you can change them to whatever you like. If you have a look through the rm-680 file, you might also find other mappings that you would like to change. Do as you like, and when you’re done, just save the file by pressing CTRL+x, Y and ENTER. Afterwards, just refresh the keymap by issuing the command

setxkbmap -model nokiarm680 -layout us

You can of course create a new keymap instead of editing the US one, but that would require you to run setxkbmap every time you reboot to load the keymap again.

Good luck!

One thought on “Norwegian keyboard on the N950

  1. Thank you for your tip!

    Attached is also the modification to map the german ö, ä, ü to the FN + Left, Down and Up keys:
    Open the mentioned file /usr/share/X11/xkb/symbols/nokia_vndr/rm-680 and search for the line
    xkb_symbols “common-keys” {

    Below it, replace the lines
    key { type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ Up, Page_Up ] };
    key { type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ Left, Home ] };
    key { type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ Down, Page_Down ] };
    key { type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ Right, End ] };

    with
    key { type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ Up, udiaeresis ] };
    key { type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ Left, odiaeresis ] };
    key { type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ Down, adiaeresis ] };
    key { type[Group1] = "PC_FN_LEVEL2", symbols[Group1] = [ Right, End ] };

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>