Steve Geinitz wrote: > > hi, i am using a microtouch touch screen with X 4.0.1 > so in my XF86Config-4 under modules I have an entry: > Load "mutouch" and the other necessarystuff to use the > touchscreen, it works great. the problem is that i have written a > gui interface for a touchscreen calibration utility that runs > from X. When i don't load anytouchscreen stuff for X i can't use > the touchscreen but the calibration utility works(since it communicates > directly with the touchscreen controller), herein lies the problem > i want to use the touchscreen before and after the calibration > without restarting X. is there anyway to unload "mutouch"? > i would also really like to accomplish this task because MetroX > can do it. tia. >
Currently there is no way to do this in XFree86. You can't even tell X to close the device, and it doesn't even close the port if you switch to another VT. Your only choice is to restart X. You could modify the driver a bit and get it to close the port on DeviceControl(DEVICE_OFF). Then, it will switch of when switching VTs, and you could run the calibration tool in a second server on another VT. Not very nice, but it's the only way to make it work without changing the server. I have recently been digging through the XInput code. I am working on support for run-time device opening (an option of course), where devices are only opened when a client uses them, and X doesn't hang when an absent device is opened. This will fix your problem even without a dynamic loader. I am also updating the sample driver and writing some docs so the next person to attmpt writing a driver won't be as lost as I was, trying to figure it out in the middle of a series of changes from 4.0 to 4.2. I also am planning to add support for the run-time TScalibration device control as supported in MetroX, as well as adding an additional crontrol type for sending generic commands to your driver, so you aren't stuck hacking Feedbacks, etc. Last, and maybe most importantly, MetroX has expressed willingness to donate thier runtime module loader, so I may be able to work that in, but that has further reaching implications than just XInput, and I don't know if other people like the idea yet, so that my take some time. I welcome any feedback. Joe Krahn _______________________________________________ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
