You are not logged in.
Hi,
I used to add this:
Section "InputDevice"
Identifier "keyboard"
Driver "kbd"
...
Option "XkbLayout" "ca"
Option "XkbVarian" "fr"
EndSection
to my xorg.conf to have french canadian keymap.
But things have changed, and now the way to do it is to type:
setxkeymap ca,fr
The problem is, the new way does not gives the same results. For example, the "è,à" are tied to a single key for the new way, and they were ties to a key combination, wich is the usual way for the french canadian keymap.
How do I set it to use the correct keymap?
Thanks,
Daedhel
Last edited by daedhel (2009-03-24 23:57:36)
Offline
If you have evdev for example, you should set at least:
setxkbmap -rules xorg -model evdev -layout "ca" -variant "fr"
You don't show the complete InputDevice Section, so you may have to add more things to your setxkbmap.
Mine looks like this:
setxkbmap -rules xorg -model pc105 -layout "us,us" -variant ",intl" -option "grp:rctrl_toggle,grp_led:num"
Offline
Thanks for your answer!
Can you direct me to some documentation regarding the additionnal configs you suggest?
Thanks,
Daedhel
Offline
Well, I find this kind of information a bit difficult to find, but if you look in /usr/share/X11 and search for files named *.lst, you will find lists with all the different options and variants and stuff. That's what I used. Hope that helps.
Offline
Hmm I don't know X11 enough to understand those config. I guess there should be an easier way?
And since doing "#setxkeymap ca.fr" should give the same result as inserting the layout=ca variant=fr in the xorg.conf and it does not, should I file a bug report? I'm just not to sure if this new behavior is normal or not.
Daedhel
Offline
Have you check this page: http://wiki.archlinux.org/index.php/Xorg ?
Offline
Yup, I even edited it since it didn't mention the "new" way of doing it (setxkbmap).
Offline
Setxkbmap in .xinitrc is not the new way to set keymap. If you are using hal based hot plugging, you can set it in /etc/hal/fdi/policy/10-keymap.fdi . If not using hotplugging then set it in xorg.conf.
Please dont edit the wiki if you are not sure. Or you can state it as a workaround method if the other one is not working.
Offline
Hmm I don't know X11 enough to understand those config. I guess there should be an easier way?
And since doing "#setxkeymap ca.fr" should give the same result as inserting the layout=ca variant=fr in the xorg.conf and it does not, should I file a bug report? I'm just not to sure if this new behavior is normal or not.
Daedhel
I looked in man page and couldn't find the way you wrote it "setxkeymap ca.fr" or"setxkeymap ca,fr" . According to the man page , you should write "setxkeymap ca -variant fr". I think if you write commas between them you declare two different layouts which you can switch between, not a layout with a variant of it as it was in your xorg.conf. If I write "setxkeymap us,intl", as I would be able to according to what you say, I get an error. "setxkeymap ca -variant fr" is the correct syntax, why not use that? Am I missing something here?
For the rest, I agree with u_no_hu w.
Offline
You are right guys. Just made the changes to the wiki according to u_no_hu suggestion. My bad, this was my first contribution to the wiki.
Somehow I didn't RTFM as I should have and I didn't find at first what thunderogg suggested "setxkbmap ca -variant fr". He is right, this is the right syntax. and it worked!
Another case of RTMF I guess
Thanks for your help.
Last edited by daedhel (2009-03-24 17:29:36)
Offline
I'm happy it's working.
Offline
Just rebooted, and it stopped working. I really don't understand what's wrong. It worked for the time being before I rebooted...
I retried to "setxkbmap ca -variant fr", and it brings back the keymap with wrong keybindings. I don"t know where to look, should I send a bug report?
Daedhel
Last edited by daedhel (2009-03-24 18:50:24)
Offline
Just rebooted, and it stopped working. I really don't understand what's wrong. It worked for the time being before I rebooted...
I retried to "setxkbmap ca -variant fr", and it brings back the keymap with wrong keybindings. I don"t know where to look, should I send a bug report?
Daedhel
Calm down. You don't even know where to look, so how can you send a bug report? Concentrate on finding out how it works instead. Only after you know how it works, you will be able to say if it works, and only then, if it doesn't work as it is supposed to, is when you can write a bug report that is worth the name, because you have to explain exactly what it is that isn't working.
setxkbmap works fine for me. I everytime I start Gnome I have to run it. If you use Gnome, you can put it in System/Preferences/Sessions and it will be executed as it should.
Offline
Yeah, I'm a bit under pressure, i have a report to write for tomorrow, and writing without the real keymap is a real pain.
I got it fixed finally, I used a short-cut.
Created the file ~.config/autostart/keymap.desktop and added this to it:
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=Keymap French Canadian
Comment=
Exec=setxkbmap ca -variant fr
StartupNotify=false
Terminal=false
Hidden=false
It works for XFCE4 and LXDE, wich are the only 2 Desktop Environment I use.
Thnaks for tyour patience...
Daedhel
Offline
Then write your report so that you can relax. You did it!
Offline
Offline