Re: Odp: [gentoo-user] Re: polish fonts xorg.conf

2011-06-16 Thread fajfusio
Dnia 15-06-2011 o godz. 21:59 Mick napisał(a):
 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 XkbLayoutpl
 
 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 XkbLayoutpl
   
   EndSection
   
   or
   
   Section InputDevice
   
   Identifier  Keyboard0
   Driver  evdev
   Option XkbModel evdev
   Option XkbLayoutpl
   
   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 XkbLayoutpl
  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
 #   InputDeviceKeyboard0 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

Thanks all of you for help.
The last 2 posts definitely solved the problem.







Re: Odp: [gentoo-user] Re: polish fonts xorg.conf

2011-06-15 Thread YoYo Siska
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 XkbLayoutpl
   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 XkbLayoutpl
 EndSection
 
 or
 
 Section InputDevice
 Identifier  Keyboard0
 Driver  evdev
 Option XkbModel evdev
 Option XkbLayoutpl
 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 XkbLayoutpl
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






Re: Odp: [gentoo-user] Re: polish fonts xorg.conf

2011-06-15 Thread Mick
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 XkbLayoutpl

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 XkbLayoutpl
  
  EndSection
  
  or
  
  Section InputDevice
  
  Identifier  Keyboard0
  Driver  evdev
  Option XkbModel evdev
  Option XkbLayoutpl
  
  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 XkbLayoutpl
 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
#   InputDeviceKeyboard0 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


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


[gentoo-user] Re: polish fonts xorg.conf

2011-06-14 Thread walt
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 XkbLayoutpl
 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'.




Re: [gentoo-user] Re: polish fonts xorg.conf

2011-06-14 Thread Mick
On Tuesday 14 Jun 2011 20:51:42 walt wrote:
 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 XkbLayoutpl
  
  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'.

and when all is working as intended with evdev, you may want to add this to be 
able to write in both Polish and English:

Option XkbLayout pl,us
   Option XkbOptions 
grp:alt_shift_toggle,grp_led:scroll,compose:menu,terminate:ctrl_alt_bksp

The Alt+Shift will allow you to toggle between the two language keyboards in 
X.
-- 
Regards,
Mick


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