input devices and hotplugging

Daniel Stone daniel at fooishbar.org
Mon Mar 10 04:15:37 PDT 2008


On Sun, Mar 09, 2008 at 10:52:47PM -0400, Dustin Spicuzza wrote:
> So.. I've been going though the code for evtouch and other input 
> devices, and I'm still not clear about how one would go about making 
> hotplugging work.
> 
> The only way I can think of fixing (a) is a nasty hack: have the driver 
> pretend to initialize anyways and wait for the device to come up, and 
> then do normal things when it actually comes up. Is there a better way 
> to accomplish this?
> 
> If I could somehow send DEVICE_ON and DEVICE_OFF signals to the driver 
> using udev, then I'm pretty sure I could solve (b). However, I'm not 
> sure how to send the signals (if thats the right term) to the driver... 
> though its probably also a hack, its a hack I could live with for 
> myself. :)
> 
> Any thoughts/suggestions/pointers are appreciated, thanks!

Hi,
Hotplugging isn't a driver concern, really.  If you have server 1.4, you
get hotplugging notifications via HAL, so you just need to hack the FDI
file to make it load evtouch and not evdev when you plug your tablet in.

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/20080310/c90f3a01/attachment.pgp>


More information about the xorg mailing list