You are not logged in.
A strange issue with my USB keyboard..
If I boot up my laptop with USB plugged in, layout is it_IT and everything works fine.
If I plug-in my keyboard when arch is up, layout changes to American, but only under X (in tty it's still Italian) and only on the USB keyboard, the laptop's keyboard is still in Italian.
All locale settings are ok in rc.conf, locale.sh and xorg.conf (I use nvidia drivers), so I think it may be something with udev rules, but I don't know what...
Any suggestions?
Last edited by Delcaran (2011-11-14 13:33:45)
I apologize for my English...
Offline
Not sure if this applies to newly connected keyboards. In .xinitrc I have:
setxkbmap -layout '<my layout>'
If it does not affect the keyboard that you connect, you might be able to run this command (either manually or automatically) whenever your keyboard is connected.
Offline
Yep, that works! Now I've to execute it on keyboard connection... I always had problems with udev (some rules work, some others not always), so I was wondering how can I execute this command on EVERY usb connection (just to be sure it will be executed when I connect the keyboard)..
I apologize for my English...
Offline
Or you can create a file in /etc/X11/xorg.conf.d. E.g. 11-usb-keyboard-conf:
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
MatchProduct "keyboard"
Option "XkbLayout" "it"
EndSection
Just replace the value with the ones you can find in Xorg.0.log.
Every time you plug your keyboard in, the relevant rules will be applied.
Offline
Thank you siriusb! That worked like a charm!
I apologize for my English...
Offline