japanese keyboard after xorg upgrade
Matthew Seaman
m.seaman at infracaninophile.co.uk
Wed Feb 4 09:43:21 PST 2009
dikshie wrote:
> Hi,
> any explanation why my japanese keyboard
> does not work after xorg upgrade?
>
>
> Section "InputDevice"
> Identifier "Keyboard0"
> Driver "kbd"
> Option "XkbRules" "xorg"
> Option "XkbModel" "jp106"
> Option "XkbLayout" "jp"
> EndSection
>
> any solutions?
Is it hald that's detecting your keyboard for the X server? You can
tell this by reading Xorg.0.log -- something like this indicates hal
involvement:
(II) config/hal: Adding input device AT Keyboard
(**) AT Keyboard: always reports core events
(**) Option "Protocol" "standard"
(**) AT Keyboard: Protocol: standard
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "xorg"
(**) AT Keyboard: XkbRules: "xorg"
(**) Option "XkbModel" "pc105"
(**) AT Keyboard: XkbModel: "pc105"
(**) Option "XkbLayout" "gb"
(**) AT Keyboard: XkbLayout: "gb"
(**) Option "CustomKeycodes" "off"
(**) AT Keyboard: CustomKeycodes disabled
(II) XINPUT: Adding extended input device "AT Keyboard" (type: KEYBOARD)
Now, hal has no way of telling what sort of layout a keyboard has
automatically[*]. You can tell it what to use by creating a file
/usr/local/etc/hal/fdi/policy/x11-input.fdi with contents similar to
this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keyboard">
<merge key="input.xkb.layout" type="string">gb</merge>
</match>
</device>
</deviceinfo>
Obviously, you'ld want 'jp' in ther rather than 'gb'.
[Not certain exactly what you'ld need to add to override the default
XkbModel setting (pc105) -- but I suspect analogy and guesswork will
serve you well enough in this instance]
Note that there is a race condition on system reboot between xdm(1) or
whatever display manager you use starting up and hald(8) having fully
initialised -- there have been a number of workarounds posted in this
list.
Alternatively you can use the following setting in the ServerLayout
section of xorg.conf:
Option "AllowEmptyInput" "off"
This essentially tells X to just use the values from xorg.conf.
Cheers,
Matthew
[*] As far as I know. It seems like a pretty odd omission to me and
I'd love to be proved wrong.
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20090204/b5604277/signature.pgp
More information about the freebsd-x11
mailing list