On Sat, Nov 28, 2009 at 05:47:12PM +0000, Przemysław Firszt wrote: > According to this: > > http://www.x.org/wiki/XOrgInputDriverSpec#head-b9066edbe89a1d9f2ecf0398e7ec94c4dd65e8a8
just a warning: that page, like many wiki pages, is partly stale and doesn't quite reflect the current status quo. > xf86DeleteInputDriver should be called in ModuleTearDownProc to remove > the module from the list of available modules. DeleteInputDriver > requires index number as an argument and I cannot see a way to get this > number. > I want to properly unload module to be able to load it again without > xserver restart. I checked synaptics, evdev, intel video and ati drivers > and I couldn't find one module that uses xf86DeleteInputDriver (or > xf86DeleteDriver for video drivers)... > Am I missing something? I think there's stuff missing in the server to support this. I'd like to see it working at runtime but haven't yet found the time to actually find and fix it. no driver supports real module unloading because we've never had the need for it. Until rather recently, the drivers didn't even support device removal because the devices were static anyway. wacom is likely the only driver affected by this anyway. To re-load the module you have to drop all references to it. evdev always has other devices that use it and synaptics touchpads usually aren't really removable without a screwdriver and some determination. so wacom is the only driver were you could remove all devices, reload the new driver and then plug them in again. that never made it high enough onto my todo list though. If you want to give it a crack - go for it. You will have to dig into the server's loader code. > Now the same problem just in a different way: > what you're doing after modifying the module to test the changes? Are > you restarting xserver every time to reload the module? yes. I have a second box at work that I use to gdb in if necessary but generally I just zap the server after installing the driver. I also have a virtual machine where I can do the same with a uinput emulated wacom tablet. that way I can gdb in without loosing my session - that's for really unstable versions of the driver. Cheers, Peter ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
