You are not logged in.

#1 2009-03-23 15:33:47

daedhel
Member
From: Québec, Canada
Registered: 2009-01-17
Posts: 40
Website

[solved] setxkeymap french canadian

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

#2 2009-03-23 16:36:07

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: [solved] setxkeymap french canadian

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

#3 2009-03-23 18:38:39

daedhel
Member
From: Québec, Canada
Registered: 2009-01-17
Posts: 40
Website

Re: [solved] setxkeymap french canadian

Thanks for your answer!

Can you direct me to some documentation regarding the additionnal configs you suggest?

Thanks,

Daedhel

Offline

#4 2009-03-23 19:55:31

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: [solved] setxkeymap french canadian

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. smile

Offline

#5 2009-03-23 22:16:47

daedhel
Member
From: Québec, Canada
Registered: 2009-01-17
Posts: 40
Website

Re: [solved] setxkeymap french canadian

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

#6 2009-03-23 22:34:27

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: [solved] setxkeymap french canadian

Have you check this page: http://wiki.archlinux.org/index.php/Xorg ?

Offline

#7 2009-03-24 03:58:32

daedhel
Member
From: Québec, Canada
Registered: 2009-01-17
Posts: 40
Website

Re: [solved] setxkeymap french canadian

Yup, I even edited it since it didn't mention the "new" way of doing it (setxkbmap).

Offline

#8 2009-03-24 08:47:24

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: [solved] setxkeymap french canadian

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.


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#9 2009-03-24 09:11:50

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: [solved] setxkeymap french canadian

daedhel wrote:

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

#10 2009-03-24 17:27:19

daedhel
Member
From: Québec, Canada
Registered: 2009-01-17
Posts: 40
Website

Re: [solved] setxkeymap french canadian

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 hmm

Thanks for your help.

Last edited by daedhel (2009-03-24 17:29:36)

Offline

#11 2009-03-24 17:40:33

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: [solved] setxkeymap french canadian

I'm happy it's working. smile

Offline

#12 2009-03-24 18:45:47

daedhel
Member
From: Québec, Canada
Registered: 2009-01-17
Posts: 40
Website

Re: [solved] setxkeymap french canadian

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?

mad

Daedhel

Last edited by daedhel (2009-03-24 18:50:24)

Offline

#13 2009-03-24 22:07:25

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: [solved] setxkeymap french canadian

daedhel wrote:

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?

mad

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. wink

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

#14 2009-03-24 23:57:17

daedhel
Member
From: Québec, Canada
Registered: 2009-01-17
Posts: 40
Website

Re: [solved] setxkeymap french canadian

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

#15 2009-03-25 00:03:02

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: [solved] setxkeymap french canadian

Then write your report so that you can relax. You did it! smile

Offline

#16 2009-03-25 00:22:56

daedhel
Member
From: Québec, Canada
Registered: 2009-01-17
Posts: 40
Website

Re: [solved] setxkeymap french canadian

wink

Offline

Board footer

Powered by FluxBB