[SOLVED] Re: [gentoo-user] hal and keyboard layout switching

2009-09-08 Thread pat
On Tue, 08 Sep 2009 00:39:25 +0200, Pat wrote
 Hello,
 
 I want to setup hal to enable me switching between two keyboard layouts.
 My original configuration in xorg.conf is:
 Section InputDevice
 Identifier  Keyboard0
 Driver  kbd
 Option  XkbModel pc104
 Option  XkbLayout us,cz
 Option  XkbOptions grp:shift_toggle,grp_led:num
 EndSection
 
 I've searched web and got some information, but I'm doing something wrong.
 
 I've created file /etc/hal/fdi/policy/x11-input.fdi and configure it 
 like: device match key=info.capabilities contains=input.keyboard
 merge key=input.x11_options.XkbModel type=stringpc104/merge
 merge key=input.x11_options.XkbLayout type=stringus,cz/merge
 merge key=input.x11_options.XkbOptions
 type=stringgrp:shifts_toggle/merge
 /match
 /device
 
 I have installed hal and running hald. The xorg-server version is 
 1.5.3-r6.
 
 Thanks for help
 
   Pat
 


Sorry !!! I have to restart hald and not only X server !!!

 Pat


---
Modern Hosting PIPNI - http://www.pipni.cz/



[gentoo-user] hal and keyboard layout switching

2009-09-07 Thread Pat
Hello,

I want to setup hal to enable me switching between two keyboard layouts.
My original configuration in xorg.conf is:
Section InputDevice
Identifier  Keyboard0
Driver  kbd
Option  XkbModel pc104
Option  XkbLayout us,cz
Option  XkbOptions grp:shift_toggle,grp_led:num
EndSection

I've searched web and got some information, but I'm doing something wrong.

I've created file /etc/hal/fdi/policy/x11-input.fdi and configure it like:
device
match key=info.capabilities contains=input.keyboard
merge key=input.x11_options.XkbModel type=stringpc104/merge
merge key=input.x11_options.XkbLayout type=stringus,cz/merge
merge key=input.x11_options.XkbOptions
type=stringgrp:shifts_toggle/merge
/match
/device

I have installed hal and running hald. The xorg-server version is 1.5.3-r6.

Thanks for help

Pat