You are not logged in.

#1 2010-12-09 16:33:32

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

[SOLVED] Keyboard layout in xorg 1.9

I'm trying to add a Romanian layout and I don't know how.

Most of the topics I've seen are OLD. They may or may not've worked with previous xorg versions, I don't know. They certainly didn't for me.

Please help.


Here's my xorg.conf:

# Section "ServerFlags"
# Option "ignoreABI" "True"
# EndSection

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option "XkbLayout" "gb,ro"
    Option "XkbOptions" "grp:caps_toggle,grp_led:scroll"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       30.0 - 110.0
    VertRefresh     50.0 - 150.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nouveau"
    VendorName     "nVidia Geforce 7025"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "DynamicTwinView" "false"
    Option         "AddARGBGLXVisuals" "True"
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection

Adding this didn't help:

Option "XkbLayout" "gb,ro"
Option "XkbOptions" "grp:caps_toggle,grp_led:scroll"

Last edited by DSpider (2012-02-17 08:37:46)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#2 2010-12-09 17:35:32

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [SOLVED] Keyboard layout in xorg 1.9

Open /etc/X11/xorg.conf.d/10-evdev.conf

One of the sections that file will be for keyboards. Add your options into that section.

Last edited by Gusar (2010-12-09 17:47:25)

Offline

#3 2010-12-09 18:06:15

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Keyboard layout in xorg 1.9

Believe me I tried that... 3 hours ago. Apparently many people had this issues after switching to xorg 1.9. I'm out of ideas.

Please help.


Somehow I managed to clean up my conf files (at least I think they're clean) and start from scratch:

xorg.conf
10-evdev.conf

Last edited by DSpider (2010-12-09 18:08:25)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#4 2010-12-09 18:32:33

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Keyboard layout in xorg 1.9

The Wiki wrote:

Setting Keyboard Layout With Hot-Plugging
To permanently change your keyboard layout, add the following to xorg.conf:
Section "InputClass"
    Identifier             "Keyboard Defaults"
    MatchIsKeyboard       "yes"
    Option               "XkbLayout" "dvorak"
EndSection
Note that this is in an InputClass Section and not the InputDevice section for the keyboard.

Take special notice of the last line.

Last edited by Mr.Elendig (2010-12-09 18:33:02)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2010-12-09 22:04:31

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Keyboard layout in xorg 1.9

The kind people from the IRC channel suggested I add this bit at the very end of the "/etc/X11/xorg.conf" file (instead of "/etc/X11/xorg.conf.d/10-evdev.conf" - tho it would've probably worked that way too):

Section "InputClass"
    Identifier             "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option                 "XkbLayout"   "us, ro"
    Option                 "XkbVariant"  "std"
    Option                 "XkbOptions"  "grp:caps_toggle, grp_led:scroll"
EndSection

Apparently it works. I just have to hold AltGr and press s, q , a, i, t, etc to type ș â ă î ț etc. But how do I set it to ; { } ] ' ", etc, like the default behaviour in Windows... ? I would like them to correspond to this layout.

Because this is not the "standard" ("std") version...


I may have to edit the "/usr/share/X11/xkb/symbols/ro" file to map them.

Unless there's a better way ?

Last edited by DSpider (2010-12-11 13:19:16)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#6 2010-12-11 21:51:41

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Keyboard layout in xorg 1.9

sudo nano /etc/X11/xorg.conf.d/10-keyboard.conf

Section "InputClass"
    Identifier             "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option                 "XkbLayout"   "us, ro(std)"
    Option                 "XkbOptions"  "grp:alt_shift_toggle, grp_led:scroll"
EndSection

Done.


One little issue remains, regarding fbxkb (keyboard layout indicator) and tint2: https://bbs.archlinux.org/viewtopic.php?id=109937

Maybe someone has an idea. Thanks.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#7 2011-02-04 12:13:50

bilgee0629
Member
Registered: 2011-01-29
Posts: 57

Re: [SOLVED] Keyboard layout in xorg 1.9

My keyboard layout switches to mn but couldn't switch back to eng. What should i do?

Last edited by bilgee0629 (2011-02-04 12:44:07)

Offline

Board footer

Powered by FluxBB