You are not logged in.

#1 2006-01-14 16:28:00

antiloaded
Member
From: Copenhagen
Registered: 2006-01-13
Posts: 45

Need to add Danish layout for my keyboard...

Hi,

When I add it in Gnome, it comes up with an error and no changes.

Do I need to edit it in my /etc/rc.conf? And in that case where can I see what to write in it?

Sincerely, Jorgen

Offline

#2 2006-01-14 19:16:17

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: Need to add Danish layout for my keyboard...

Hi .. Also danish

If you in rc.conf set your time to local time and set the keyboard layout underneath to dk  - it should work as a danish layout. But I´m not sure about gnome! I Use kde ! never tried gnome!

Men bare bliv ved med at prøve


Just getting better .... All the time

Offline

#3 2006-01-17 21:11:35

antiloaded
Member
From: Copenhagen
Registered: 2006-01-13
Posts: 45

Re: Need to add Danish layout for my keyboard...

Thanks for helping out. It's working now. (tak wink )

Sincerely, Jørgen

Offline

#4 2006-01-17 22:28:22

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: Need to add Danish layout for my keyboard...

Sejt, ny dansker på holdet. wink


Arch - It's something refreshing

Offline

#5 2006-01-18 13:04:30

antiloaded
Member
From: Copenhagen
Registered: 2006-01-13
Posts: 45

Re: Need to add Danish layout for my keyboard...

Oh i forgot to post my solution to this problem:

Here it is:

A clean reinstall using 'km' command to pick Danish keyboard. (earlier i picked default US keyboard layout).

After the install I added/modified the info in my /etc/X11/xorg.conf.

KEYMAP=dk
in /etc/rc.conf , and make sure your /etc/X11/xorg.conf contains the lines
Option "XkbRules" "xorg"
Option "XkbModel" "pc102"
Option "XkbLayout" "dk"

Thats it.
Now I got no errors when Gnome starts, and my keyboard works just as it should be!
Great.

Offline

#6 2009-01-15 16:59:39

Del Pede
Member
Registered: 2007-11-13
Posts: 27

Re: Need to add Danish layout for my keyboard...

I am having a bit of a related issue to this. Gnome, or something else, keeps breaking my keyboard layout, so i loose some danish special characters like ae, oe and aa, and other speciel characters are misplaced. It seems it falls back to a US standard keyboard layout, which i would rather be with out.

rc.conf has the  following

LOCALE="da_DK.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="yes"
TIMEZONE="Europe/Copenhagen"
KEYMAP="dk.map.gz"
CONSOLEFONT="Agafari-12"
CONSOLEMAP=utf8
USECOLOR="yes"

in xorg.conf

   Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc105"
    Option "XkbLayout"  "dk"

I have tried with dk and da in xorg.conf, still the layout changes after a short while in gnome. adding and deleting US and DA layouts in system > preference > keyboard helps for a while, but it is begining to be a bit of a fluke, if it actually works.

I have exhausted my own ideas, as to why this happends. I have a danish version of gnome installed, so i do not really know what makes the keyboard layout break

Any help would be appreciated
Del Pede

Offline

#7 2009-01-15 20:23:51

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: Need to add Danish layout for my keyboard...

Del Pede: Are you using hal to auto add devices? Your problem may be related to hotplugging.

See thiis wiki entry: http://wiki.archlinux.org/index.php/Xor … otplugging

And welcome om bord.

Offline

#8 2009-01-15 20:24:25

EVRAMP
Member
From: Czech Republic
Registered: 2008-10-03
Posts: 173
Website

Re: Need to add Danish layout for my keyboard...

Hello Del Pede,
your solution is not working because of quite recent change in xorg-server.
Xorg-server takes info about your input device from HAL since version 1.5.
So you need to specify keyboard layouts in /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi

Find this line

<merge key="input.xkb.layout" type="string">us</merge>

and replace us with dk.

This will work, but after updating HAL in the future, this file gets ovewritten. If you want to keep this setting, copy that file into /etc/hal/fdi/policy/

cp /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi /etc/hal/fdi/policy/10-keymap.fdi

Offline

#9 2009-01-15 21:12:20

Del Pede
Member
Registered: 2007-11-13
Posts: 27

Re: Need to add Danish layout for my keyboard...

awesome. Thanks alot x 2. lol
It's been driving me nuts

Offline

Board footer

Powered by FluxBB