You are not logged in.

#1 2010-07-10 14:17:42

mariosangiorgio
Member
Registered: 2010-07-10
Posts: 25

X changes keyboard layout

I setup my Archlinux to have the italian keyboard layout.
Everything is fine while I am not using the X server. As soon as I start X the graphical applications uses the american layout.

I tried to fix this issue by adding the option

Option      "XkbLayout" "it"

to /etc/xorg.conf but it is no working.

How can I change the keyboard layout also for the X window server?

Offline

#2 2010-07-10 14:41:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: X changes keyboard layout

I have set my layout in ~/.xinitrc

setxkbmap pl

Offline

#3 2010-07-10 14:53:18

a_priori_mouse
Member
Registered: 2010-05-16
Posts: 38

Re: X changes keyboard layout

http://wiki.archlinux.org/index.php/Xor … rd_Layouts
1) Make sure, u have added this option to "InputClass" section  and not "InputDevice" one.
2) It is not good idea to set "it" layout without "us".
3) Try to use search.

Last edited by a_priori_mouse (2010-07-10 14:54:02)

Offline

#4 2010-07-10 14:57:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: X changes keyboard layout

2) It is not good idea to set "it" layout without "us".

Why is that?

I'm not sure OP wants to switch kbdlayouts back and forth, I think (s)he wants to switch back to the correct one i.e. fix it and use only italian kbd.

Last edited by karol (2010-07-10 14:58:07)

Offline

#5 2010-07-10 15:05:56

a_priori_mouse
Member
Registered: 2010-05-16
Posts: 38

Re: X changes keyboard layout

May be, i just think that is strange wish... but, realy, why not)

Last edited by a_priori_mouse (2010-07-10 15:07:03)

Offline

#6 2010-07-10 15:10:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: X changes keyboard layout

It sure works for me.  And yes, it may be just a shorthand for 'setxkbmap -layout pl'.
http://wiki.archlinux.org/index.php/Beginners'_Guide#Set_the_keyboard_layout_if_not_using_a_standard_US_keyboard

Offline

#7 2010-07-10 15:18:05

a_priori_mouse
Member
Registered: 2010-05-16
Posts: 38

Re: X changes keyboard layout

I'v already checked, thanks

Offline

#8 2010-07-10 15:24:56

a_priori_mouse
Member
Registered: 2010-05-16
Posts: 38

Re: X changes keyboard layout

But i realy don't understend, why "InputClass" does not work for everyone?
( http://bbs.archlinux.org/viewtopic.php?id=100639 )
Is this problem of 1.8?
So, for me it almost works: i can set layout. But to set compose key i have to use setxkbmap in autostart.sh. XServer just ignores compose option in xorg.conf

Last edited by a_priori_mouse (2010-07-10 15:29:40)

Offline

#9 2010-07-10 15:27:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: X changes keyboard layout

> That is problem of 1.8?
Maybe I should say I'm using 1.6 (I have an old intel card, I'll open a thread about it soon), but I hope .xinitrc works no matter what.

Offline

#10 2010-07-10 17:41:18

ApotheoZ
Member
Registered: 2009-08-10
Posts: 40

Re: X changes keyboard layout

If you are using 1.8+, add Option "XkbLayout" "it" in xorg.conf.d/10-evedv.conf, not in xorg.conf.
Using xorg.conf is deprecated since the 1.8.
Delete this conf file as soon as you can.
Follow the updated xorg wiki for more infos.

Offline

#11 2010-07-12 08:22:41

mariosangiorgio
Member
Registered: 2010-07-10
Posts: 25

Re: X changes keyboard layout

ApotheoZ wrote:

If you are using 1.8+, add Option "XkbLayout" "it" in xorg.conf.d/10-evedv.conf, not in xorg.conf.
Using xorg.conf is deprecated since the 1.8.
Delete this conf file as soon as you can.
Follow the updated xorg wiki for more infos.

I have xorg 1.8 and I use the xorg.conf file produced by

X -configure

I used that because without it my monitor says that the device is working at the wrong frequency.
To be honest I just tried that and given that it worked I left the configuration file in that place, but of course if you tell me where to move all the settings in xorg.conf.d I'll delete that file wink

The wiki just suggest to use

X -configure

but I can't figure out how to go ahead (And even if there are some other steps that I have to perform in order to finish the configuration)

Offline

#12 2010-07-12 08:34:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: X changes keyboard layout

> The wiki just suggest to use
>    X -configure
The (updated) wiki says "Use X -configure, making a xorg.conf, is deprecated for two reasons:" at the very beginning. Please, reread it. It's a wiki and it changes to reflect the changes in software.

You can read about the xorg.conf.d/10-evedv.conf f.e. here:
http://wiki.archlinux.org/index.php/Xor … 20G_Laptop

Post your ~/.xinitrc.

Offline

#13 2010-07-12 08:44:30

mariosangiorgio
Member
Registered: 2010-07-10
Posts: 25

Re: X changes keyboard layout

karol wrote:

> The wiki just suggest to use
>    X -configure
The (updated) wiki says "Use X -configure, making a xorg.conf, is deprecated for two reasons:" at the very beginning. Please, reread it. It's a wiki and it changes to reflect the changes in software.

You can read about the xorg.conf.d/10-evedv.conf f.e. here:
http://wiki.archlinux.org/index.php/Xor … 20G_Laptop

Post your ~/.xinitrc.

The comma made me misinterpret the sentence. I interpreted is as Use X -configure instead of creating your own xorg.conf that is deprecated...
I think we should rewrite that sentence in a more clear way.

Offline

#14 2010-07-12 08:47:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: X changes keyboard layout

> I think we should rewrite that sentence in a more clear way.
+1
Many contributors are not native English speakers and that shows.
IMHO you should use a gerund  "Using X -configure (...)". Fixing that atm.

Offline

Board footer

Powered by FluxBB