1 |
On Wed, Jun 15, 2011 at 04:46:54PM +0200, fajfusio@××.pl wrote: |
2 |
> Dnia 14-06-2011 o godz. 21:51 walt napisał(a): |
3 |
> > On 06/14/2011 09:02 AM, fajfusio@××.pl wrote: |
4 |
> > > Hello |
5 |
> > > |
6 |
> > > When I execute: |
7 |
> > > setxkbmap pl |
8 |
> > > |
9 |
> > > I can type polish fonts in xterm and other X programs. But when I |
10 |
> > generate xorg.conf file with "Xorg -configure" and add the following to |
11 |
> > it I cannot type the polish fonts (I copied it to /etc/x11/xorg.conf) |
12 |
> > > |
13 |
> > > Section "InputDevice" |
14 |
> > > Identifier "Keyboard0" |
15 |
> > > Driver "kbd" |
16 |
> > > Option "XkbModel" "pc105" |
17 |
> > > Option "XkbLayout" "pl" |
18 |
> > > EndSection |
19 |
> > > |
20 |
> > > |
21 |
> > > Xorg.0.log: |
22 |
> > > [ 29007.715] (==) Using config file: "/etc/X11/xorg.conf" |
23 |
> > > [ 29008.100] (II) XINPUT: Adding extended input device "Power Button" |
24 |
> > (type: KEYBOARD) |
25 |
> > > [ 29008.100] (**) Option "xkb_rules" "evdev" |
26 |
> > > [ 29008.100] (**) Option "xkb_model" "evdev" |
27 |
> > > [ 29008.100] (**) Option "xkb_layout" "us" |
28 |
> > |
29 |
> > The only problem I can see at the moment is that the log file says that |
30 |
> > your keyboard |
31 |
> > is using the 'evdev' driver but your xorg.conf specifies the 'kbd' |
32 |
> > driver. Try changing |
33 |
> > the Driver to "evdev" instead of 'kbd'. |
34 |
> |
35 |
> |
36 |
> I have reconfigured xorg.conf as follows: |
37 |
> Section "InputDevice" |
38 |
> Identifier "Keyboard0" |
39 |
> Driver "evdev" |
40 |
> Option "XkbModel" "pc105" |
41 |
> Option "XkbLayout" "pl" |
42 |
> EndSection |
43 |
> |
44 |
> or |
45 |
> |
46 |
> Section "InputDevice" |
47 |
> Identifier "Keyboard0" |
48 |
> Driver "evdev" |
49 |
> Option "XkbModel" "evdev" |
50 |
> Option "XkbLayout" "pl" |
51 |
> EndSection |
52 |
> |
53 |
> |
54 |
> Unfortunatelly it didn't help. |
55 |
> I attach the complete Xorg.0.log. |
56 |
> Do you have another suggestions. |
57 |
> Thank you for help |
58 |
> |
59 |
|
60 |
[ 24703.710] (**) Keyboard0: always reports core events |
61 |
[ 24703.710] (EE) Keyboard0: No device specified. |
62 |
[ 24703.710] (II) UnloadModule: "evdev" |
63 |
[ 24703.710] (EE) PreInit returned NULL for "Keyboard0" |
64 |
|
65 |
you defined a (new) keyboard in the config, which doesn't actually point |
66 |
to a device (the old kbd driver didn't need a device, but it didn't work |
67 |
for other reasons...) so that X basically ignored that section |
68 |
and your "real" keyboard device did get added automatically later |
69 |
albeit without your settings... |
70 |
|
71 |
the most correct way with a newer xorg is to create a file in |
72 |
/etc/xorg.conf.d where you put an entry, which would *match* your |
73 |
keyboard device (that gets automatically created) and add the options to |
74 |
it, basically something like: |
75 |
|
76 |
Section "InputClass" |
77 |
Identifier "pl keyboard layout" |
78 |
MatchIsKeyboard "on" |
79 |
Option "XkbModel" "evdev" |
80 |
Option "XkbLayout" "pl" |
81 |
EndSection |
82 |
|
83 |
can't find gentoo specific doc / page for this stuff, but |
84 |
man xorg.conf (search for InputClass) and google for |
85 |
xorg.conf.d and/or InputClass should give you something usefull |
86 |
fex: |
87 |
http://fedoraproject.org/wiki/Input_device_configuration |
88 |
|
89 |
|
90 |
|
91 |
yoyo |