Xorg Input Hotplugging

Daniel Stone daniel.stone at nokia.com
Mon Dec 3 09:37:30 PST 2007


On Fri, Nov 30, 2007 at 09:15:19PM +0300, ext Andrey Borzenkov wrote:
> On Thursday 15 November 2007, Nicolas Mailhot wrote:
> > > at least one of the properties for your devices should contain their
> > > usb vendor/product IDs.
> > > 
> > > other properties xorg understands for keyboards:
> > >  - input.xkb.rules
> > >  - input.xkb.model
> 
> Should not it be actually "evdev" always? As evdev is really the only driver
> that would work?

evdev is Linux-specific, and even then, hardware-specific drivers like
wacom work too.

> > >  - input.xkb.options
> 
> Does not work; results in empty string with commas, something like ",,"
> and X loops taking almost all CPU time.

This is fixed in git.

> > > xorg will look for devices with these capabilities (info.capabilities):
> > >  - input.keys
> > >  - input.keyboard (deprecated)
> > >  - input.mouse
> > >  - input.touchpad
> > > 
> > > xorg expects these properties to be set on these devices:
> > >  - input.x11_driver
> 
> Can I really set anything besides evdev, given, that ...

Yes, see above.

> > in the brave new hotplug world?
> 
> And how I resurrect my 3rd button emulation on notebook with 2 buttons?

This looks like a missing feature in evdev.

> Anyway here is what I tried as FDI:
> 
> {pts/0}% cat /etc/hal/fdi/policy/x11-keyboard.fdi
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <deviceinfo version="0.2">
>   <device>
>     <match key="info.capabilities" contains="input.keyboard">
>       <merge key="input.xkb.rules" type="string">xorg</merge>
>       <merge key="input.xkb.layout" type="string">gb,ru(winkeys)</merge>
        <merge key="input.xkb.layout" type="string">gb,ru</merge>
        <merge key="input.xkb.variant" type="string">,winkeys</merge>
>       <merge key="input.xkb.options" type="strlist">grp:menu_toggle</merge>
>       <append key="input.xkb.options" type="strlist">grp_led:scroll</append>
>     </match>
>   </device>
> </deviceinfo>

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20071203/cb58a0b4/attachment.pgp>


More information about the xorg mailing list