How to migrate the X server?

Scott James Remnant scott at canonical.com
Thu Jul 30 03:36:28 PDT 2009


On Thu, 2009-07-30 at 10:07 +0200, Martin Pitt wrote:

> $ grep ^XKB /etc/default/console-setup 
> XKBMODEL="pc105"
> XKBLAYOUT="de"
> XKBVARIANT=""
> XKBOPTIONS="nodeadkeys"
> 
> Fedora uses a different file and perhaps a different format, but the
> principle is the same. The distribution has to provide a
> /lib/udev/getx11keymap callout which transforms those to something
> like
> 
> $ /lib/udev/getx11keymap
> X11_XKB_MODEL="pc105"
> X11_XKB_LAYOUT="de"
> X11_XKB_VARIANT=""
> X11_XKB_OPTIONS="nodeadkeys"
> X11_XKB_DRIVER="evdev"
> 
> Then an udev rule could look like
> 
> # 8042 internal keyboards
> SUBSYSTEM=="input", ACTION=="add", ID_CLASS=="kbd", IMPORT{program}="getx11keymap"
> 
If we just sanitised the file into the right format, we could just
IMPORT{file} directly and save fork/exec and runtime overhead.

Scott
-- 
Scott James Remnant
scott at canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/devkit-devel/attachments/20090730/45ee0ade/attachment.pgp 


More information about the devkit-devel mailing list