[PATCH evdev] Export device node as property.

Peter Korsgaard jacmet at sunsite.dk
Thu Feb 24 11:41:52 PST 2011


>>>>> "Peter" == Peter Hutterer <peter.hutterer at who-t.net> writes:

Hi,

 >> For a long time we wanted to be able to match up X input devices such as
 >> the HID keyboards built into USB speakers or USB headsets with their
 >> particular sound cards, so that pressing the volume button on the device
 >> actually changes the volume on that one device instead of whatever has
 >> been chosen as the "default sound card". XI2 now finally allows us to
 >> track from which input device an input event came, but we don't have any
 >> way to then somehow match this up with a specific audio device although
 >> sysfs and the information exposed by the kernel would actually allow us
 >> to do that.

 Peter> Daniel, Peter, any comments on this? Yay or nay?

Yay that we need it. Another use case is touchscreens like the
nextwindow one where you can enter calibration mode (parameters are
stored on the controller) by sending a command to another USB interface
on the same deviec.

The question is how we should do it? See my earlier mail for discussion
about what we should use as unique identifier:

http://thread.gmane.org/gmane.comp.freedesktop.xorg.devel/18467/focus=18631

Or perhaps we should simply export it all and let applications figure it
out? ;)

-- 
Bye, Peter Korsgaard


More information about the xorg-devel mailing list