Was..... Lots of lagging after upgrade of xorg. Now keyboard layout is lost

Polytropon freebsd at edvax.de
Tue Apr 24 06:18:31 UTC 2012


On Tue, 24 Apr 2012 07:13:20 +0200, Leslie Jensen wrote:
> 
> 
> 2012-04-23 19:56, Leslie Jensen skrev:
> >
> >
> > 2012-04-23 18:29, Warren Block skrev:
> >> On Mon, 23 Apr 2012, Leslie Jensen wrote:
> >>
> >>>
>   Use Option
> >> "AutoAddDevices" "Off" to disable HAL input device detection.
> >> _______________________________________________
> 
> >
> > http://www.wonkity.com/~wblock/docs/html/aei.html
> >
> 
> 
> 
> After adding the above Option I lost the Swedish layout of my keyboard.
> 
> Following the instructions and editing the
> 
> /usr/local/etc/hal/fdi/policy/x11-input.fdi
> 
> 
> I already have the file in place with the following setup:
> 
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <deviceinfo version="0.2">
>    <device>
>      <match key="info.capabilities" contains="input.keyboard">
> <merge key="input.x11_options.XkbOptions" 
> type="string">terminate:ctrl_alt_bksp<
> /merge>
>        <merge key="input.x11_options.XkbModel" 
> type="string">latitude</merge>
>        <merge key="input.x11_options.XkbLayout" type="string">se</merge>
>      </match>
>    </device>
> </deviceinfo>
> 
> 
> Where else can I control the setting for Swedish?

You could use the default method: /etc/X11/xorg.conf which is
designed to _centralize_ X-related settings. Keyboard settings
can also be put there.

For example, this is what I use to define a german keyboard
layout (and which applies everywhere in X, as intended):

Section "InputDevice"
	Identifier	"Keyboard0"
	Driver		"kbd"
	Option		"XkbModel"		"pc105"
	Option		"XkbLayout"		"de"
	Option		"XkbOptions"		"terminate:ctrl_alt_bksp"
EndSection

You can employ this approach, changing it to swedish language.
Note that I'm using the X setup "without HAL and DBUS" here.

Additionally, there's the method of using xmodmap with a
custom ~/.xmodmaprc file which can be used to make keyboard
language settings work _independently_ from both xorg.conf
and XML files scattered across the local/ subtree. :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list