1 |
Le jeudi 08 juillet 2010 01:13:56, Neil Bothwick a écrit : |
2 |
> On Wed, 7 Jul 2010 19:19:14 +0200, Stéphane Guedon wrote: |
3 |
> > > Until your version of Xorg stops supporting HAL, when you will need an |
4 |
> > > xorg.conf. |
5 |
> > |
6 |
> > You can also pass through udev ! |
7 |
> |
8 |
> How? I know how to use udev for device recognition, but how do you tell |
9 |
> it to use a particular keyboard layout? |
10 |
|
11 |
19:18:09 stephane@luciole:/etc/udev/rules.d $ cat 61-x11-input.rules |
12 |
SUBSYSTEM!="input", GOTO="x11_input_end" |
13 |
ACTION!="add", GOTO="x11_input_end" |
14 |
|
15 |
KERNEL=="event*", ENV{x11_driver}="evdev" |
16 |
KERNEL=="event*", ENV{ID_INPUT_KEYBOARD}=="1 |
17 |
|
18 |
ENV{ID_INPUT_KEY}=="?*", ENV{xkblayout}="fr" |
19 |
|
20 |
LABEL="x11_input_end" |
21 |
======= |
22 |
|
23 |
You have to tell udev your a "fr" with the x11-input rule |
24 |
|
25 |
-- |
26 |
Stéphane Guedon |
27 |
page web : http://www.22decembre.eu/ |
28 |
carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf |
29 |
clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc |