View previous topic :: View next topic |
Author |
Message |
alex6 Apprentice
Joined: 18 Jul 2011 Posts: 176
|
Posted: Thu Jul 21, 2011 1:18 am Post subject: [SOLVED] XDM (or xorg ?) keyboard layout bug |
|
|
I tried to set my keyboard to the layout "fr" like this :
Quote: | Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
# Option "XkbModel" "pc105"
Option "XkbLayout" "fr"
# Option "XkbVariant" ",multi"
EndSection |
...But when I login with gdm or any other logging manager my keyboard is in qwerty...My other tty don't have this problem...
My locales are set to "fr_FR ISO-8859-1"
Does someone understand what's happening ?
Last edited by alex6 on Sat Jul 23, 2011 12:22 am; edited 1 time in total |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Thu Jul 21, 2011 10:10 am Post subject: |
|
|
oui
you're using old style xorg.conf to configure your keyboard, this won't work, you need use the new style explain here : http://www.gentoo.org/proj/en/desktop/x/x11/ (lookout for xorg server version you use upgrade guide)
or add this file to your system & it should work (as /etc/X11/xorg.conf.d/97-evdev.conf)
Code: | Section "InputClass"
Identifier "mouse-all"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "AutoServerLayout" "on"
EndSection
Section "InputClass"
Identifier "keyboard-all"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbLayout" "fr"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "AutoServerLayout" "on"
EndSection
|
|
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Thu Jul 21, 2011 10:40 am Post subject: |
|
|
Once again, setting XkbRules has no point as evdev driver hardcodes it to 'evdev' anyway. |
|
Back to top |
|
|
alex6 Apprentice
Joined: 18 Jul 2011 Posts: 176
|
Posted: Thu Jul 21, 2011 1:14 pm Post subject: |
|
|
Thanks, your config file works
I had to create the directory xorg.conf and create the config file which didn't exist...
I love xorg new way : no config file, you have to create it and create several in hidden places that doesn't exist with a new syntax !
I'm a bit melancholic when I remember some years ago when we only had to use a single xorg.conf file which DID exist |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Thu Jul 21, 2011 3:10 pm Post subject: |
|
|
VoidMage wrote: | Once again, setting XkbRules has no point as evdev driver hardcodes it to 'evdev' anyway. |
well, it work, and no bad effect, you're too perfectionist VoidMage |
|
Back to top |
|
|
cazort Guru
Joined: 19 Sep 2004 Posts: 343 Location: Lancaster, PA
|
Posted: Sat Dec 08, 2012 5:03 pm Post subject: |
|
|
I just found this solution and it also worked for me (I was trying to change to dvorak), but I agree with alex6's comment (incidentally, my name is also Alex). It seems a bit counter-intuitive to have to create a new config file in a directory that does not exist, to do something as basic as changing the keyboard layout for xdm.
While I like the new configuration-free xorg overall, the old setup had the advantage that if you needed to change something that required manual configuration, there were examples to work from! _________________ Alex Zorach | Teacology | RateTea | Why This Way |
|
Back to top |
|
|
|