On Wednesday 15 Jun 2011 16:41:29 YoYo Siska wrote:
> On Wed, Jun 15, 2011 at 04:46:54PM +0200, fajfu...@wp.pl wrote:
> > Dnia 14-06-2011 o godz. 21:51 walt napisaƂ(a):
> > > On 06/14/2011 09:02 AM, fajfu...@wp.pl wrote:
> > > > Hello
> > > > 
> > > > When I execute:
> > > > setxkbmap pl
> > > > 
> > > > I can type polish fonts in xterm and other X programs. But when I
> > > 
> > > generate xorg.conf file with "Xorg -configure" and add the following to
> > > it I cannot type the polish fonts (I copied it to /etc/x11/xorg.conf)
> > > 
> > > > Section "InputDevice"
> > > > 
> > > >         Identifier  "Keyboard0"
> > > >         Driver      "kbd"
> > > >         Option "XkbModel"     "pc105"
> > > >         Option "XkbLayout"    "pl"
> > > > 
> > > > EndSection
> > > > 
> > > > 
> > > > Xorg.0.log:
> > > > [ 29007.715] (==) Using config file: "/etc/X11/xorg.conf"
> > > > [ 29008.100] (II) XINPUT: Adding extended input device "Power Button"
> > > 
> > > (type: KEYBOARD)
> > > 
> > > > [ 29008.100] (**) Option "xkb_rules" "evdev"
> > > > [ 29008.100] (**) Option "xkb_model" "evdev"
> > > > [ 29008.100] (**) Option "xkb_layout" "us"
> > > 
> > > The only problem I can see at the moment is that the log file says that
> > > your keyboard
> > > is using the 'evdev' driver but your xorg.conf specifies the 'kbd'
> > > driver.  Try changing
> > > the Driver to "evdev" instead of 'kbd'.
> > 
> > I have reconfigured xorg.conf as follows:
> > Section "InputDevice"
> > 
> >         Identifier  "Keyboard0"
> >         Driver      "evdev"
> >         Option "XkbModel"     "pc105"
> >         Option "XkbLayout"    "pl"
> > 
> > EndSection
> > 
> > or
> > 
> > Section "InputDevice"
> > 
> >         Identifier  "Keyboard0"
> >         Driver      "evdev"
> >         Option "XkbModel"     "evdev"
> >         Option "XkbLayout"    "pl"
> > 
> > EndSection
> > 
> > 
> > Unfortunatelly it didn't help.
> > I attach the complete Xorg.0.log.
> > Do you have another suggestions.
> > Thank you for help
> 
> [ 24703.710] (**) Keyboard0: always reports core events
> [ 24703.710] (EE) Keyboard0: No device specified.
> [ 24703.710] (II) UnloadModule: "evdev"
> [ 24703.710] (EE) PreInit returned NULL for "Keyboard0"
> 
> you defined a (new) keyboard in the config, which doesn't actually point
> to a device (the old kbd driver didn't need a device, but it didn't work
> for other reasons...) so that X basically ignored that section
> and your "real" keyboard device did get added automatically later
> albeit without your settings...
> 
> the most correct way with a newer xorg is to create a file in
> /etc/xorg.conf.d  where you put an entry, which would  *match*  your
> keyboard device (that gets automatically created) and add the options to
> it, basically something like:
> 
> Section "InputClass"
>         Identifier "pl keyboard layout"
>         MatchIsKeyboard "on"
>         Option "XkbModel"     "evdev"
>         Option "XkbLayout"    "pl"
> EndSection
> 
> can't find gentoo specific doc / page for this stuff, but
> man xorg.conf (search for InputClass) and google for
> xorg.conf.d and/or InputClass should give you something usefull
> fex:
> http://fedoraproject.org/wiki/Input_device_configuration
> 
> 
> 
> yoyo
As yoyo says:

Remove 
Section "ServerLayout"
#       InputDevice    "Keyboard0" "CoreKeyboard"

because evdev does not need it and change your keyboard section as suggested, 
or if it doesn't work you can also try this:
=====================================
Section "InputClass"
       Identifier  "keyboard catchall"
       Driver      "evdev"
       MatchIsKeyboard "on"
       MatchDevicePath "/dev/input/event*"
       Option "XkbLayout" "pl"
       Option "XkbOptions" 
EndSection
=====================================

-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to