Re: device driver - Kernel X XFree86 - USB - distribution
> > Hi All, > > I'm in chager of developing a driver for a pointing > device (absolute coordinates). > > This device has two interfaces, Serial and > USB. > > I kwow it is possible to do XFree86 drivers for > Serial and I've seen such source code at XFree86 project. > > 1- Is it possible to do the same thing for the USB > interface? or Do I have to write a linux kernel driver? > 2- What are the advantages and disadvantages > of XFree86 driver and kernel driver (write/debug easiness, performance, > etc...)? > 3- What do I've to do in order to my driver be > part of XFree86 project? > 4- Is it possible do not include the XFree86 driver > into XFree86 project, but install a binary version of it after Linux (and X11) > is already installed and running? > > thanks very much in advance, > Edgard Lima > [EMAIL PROTECTED] > > Hi Edgard; About your questions, I like to say some things to you. 1. Yes, you need to write a kernel character driver for USB Device. What kind of pointing device do you have? Could you tell me the device name? Maybe, I can support you. 2.You need XFree driver and USB device character driver to work together. Chang-Hsieh Wu 「速博生活館」 全家人可以 e 起來的寬頻內容服務園地! http://www.sparq.com.tw/content ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
Re: device driver - Kernel X XFree86 - USB - distribution
hi Chang-Hsieh Wu, it is a Touch-Screen device but it has no name it hasn't been released yet. Could you help me with the other questions below? Thanks Very Much Again Edgard [EMAIL PROTECTED] - Original Message - From: "張靜宜" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 09, 2004 1:49 AM Subject: Re: device driver - Kernel X XFree86 - USB - distribution > > > > Hi All, > > > > I'm in chager of developing a driver for a pointing > > device (absolute coordinates). > > > > This device has two interfaces, Serial and > > USB. > > > > I kwow it is possible to do XFree86 drivers for > > Serial and I've seen such source code at XFree86 project. > > > > 1- Is it possible to do the same thing for the USB > > interface? or Do I have to write a linux kernel driver? > > 2- What are the advantages and disadvantages > > of XFree86 driver and kernel driver (write/debug easiness, performance, > > etc...)? > > 3- What do I've to do in order to my driver be > > part of XFree86 project? > > 4- Is it possible do not include the XFree86 driver > > into XFree86 project, but install a binary version of it after Linux (and X11) > > is already installed and running? > > > > thanks very much in advance, > > Edgard Lima > > [EMAIL PROTECTED] > > > > > Hi Edgard; > About your questions, I like to say some things to you. > 1. Yes, you need to write a kernel character driver for USB Device. >What kind of pointing device do you have? Could you tell me the >device name? Maybe, I can support you. > 2.You need XFree driver and USB device character driver to work together. > > Chang-Hsieh Wu > > -- -- > 「速博生活館」 全家人可以 e 起來的寬頻內容服務園地! > http://www.sparq.com.tw/content > > ___ > Devel mailing list > [EMAIL PROTECTED] > http://XFree86.Org/mailman/listinfo/devel > ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
Re: device driver - Kernel X XFree86 - USB - distribution
> I'm in chager of developing a driver for a pointing device (absolute > coordinates). > This device has two interfaces, Serial and USB. > I kwow it is possible to do XFree86 drivers for Serial and I've seen such source > code at XFree86 project. > 1- Is it possible to do the same thing for the USB interface? or Do > I have to write a linux kernel driver? If you're planning to develop for Linux only, is there any reason your device driver couldn't be written to interface with the generic Linux input framework? Juliusz ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
Re: device driver - Kernel X XFree86 - USB - distribution
Hi Juliusz, Yes, I'm planning to develop only for Linux Fedora Core 1 and 2 (kernels 2.4 and 2.6 respectively). So, are you saying that if I develop a Input Core driver (Serial and USB) it is not necessary to develop a XFree86 driver? Chang-Hsieh Wu wrote me: "1. Yes, you need to write a kernel character driver for USB Device. What kind of pointing device do you have? Could you tell me the device name? Maybe, I can support you. 2.You need XFree driver and USB device character driver to work together." Please Chang-Hsieh Wu, could you confirm what you said? Juliusz and Chang-Hsieh Wu, excuse me for those newbie questions, thanks very much again, Edgard Lima [EMAIL PROTECTED] - Original Message - From: "Juliusz Chroboczek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 12, 2004 2:32 AM Subject: Re: device driver - Kernel X XFree86 - USB - distribution > > I'm in chager of developing a driver for a pointing device (absolute > > coordinates). > > > This device has two interfaces, Serial and USB. > > > I kwow it is possible to do XFree86 drivers for Serial and I've seen such source code at XFree86 project. > > > 1- Is it possible to do the same thing for the USB interface? or Do > > I have to write a linux kernel driver? > > If you're planning to develop for Linux only, is there any reason your > device driver couldn't be written to interface with the generic Linux > input framework? > > Juliusz > ___ > Devel mailing list > [EMAIL PROTECTED] > http://XFree86.Org/mailman/listinfo/devel > ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
Re: device driver - Kernel X XFree86 - USB - distribution
> So, are you saying that if I develop a Input Core driver (Serial and > USB) it is not necessary to develop a XFree86 driver? It's a little bit more exciting than that ;-) The good news is that if you develop a Linux input driver, any userspace application that groks /dev/event will be able to use your device. Additionally, if it's a relative device, any application that can grok the PS/2 mouse protocol will be able to use your device. The bad news is that as far as I know XFree86 does not yet have an input driver for /dev/event. Yes, this is a shame (I gladly take my part of the blame). However, - I've hacked together a simple /dev/event driver for KDrive (TinyX), which is available on http://www.pps.jussieu.fr/~jch/software/files/lxevent.c It works for both relative and absolute devices, converting the latter to relative in the driver (it was developed for a synaptics touchpad, but should work with any device that has three buttons). You're welcome to do anything you wish with this code (you don't need to credit me, except for keeping my copyright notice in the sources). - If you develop for the event interface, you will not need to design a new interface. Implementing a well-defined API will doubtless be simpler than rolling your own. - If you develop for the event interface, anyone with an absolute PS/2 or USB device will be able to help you with the XFree86 driver; if you use your private protocol, you'll be pretty much on your own. Good luck, Juliusz ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
Re: device driver - Kernel X XFree86 - USB - distribution
Thanks very much your clear answers. I'll start my job for now and make other questions soon ;-), thanks again. Edgard [EMAIL PROTECTED] - Original Message - From: "Juliusz Chroboczek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 15, 2004 5:32 PM Subject: Re: device driver - Kernel X XFree86 - USB - distribution > > So, are you saying that if I develop a Input Core driver (Serial and > > USB) it is not necessary to develop a XFree86 driver? > > It's a little bit more exciting than that ;-) > > The good news is that if you develop a Linux input driver, any > userspace application that groks /dev/event will be able to use your > device. Additionally, if it's a relative device, any application that > can grok the PS/2 mouse protocol will be able to use your device. > > The bad news is that as far as I know XFree86 does not yet have an > input driver for /dev/event. Yes, this is a shame (I gladly take my > part of the blame). > > However, > > - I've hacked together a simple /dev/event driver for KDrive (TinyX), >which is available on > > http://www.pps.jussieu.fr/~jch/software/files/lxevent.c > >It works for both relative and absolute devices, converting the >latter to relative in the driver (it was developed for a synaptics >touchpad, but should work with any device that has three buttons). >You're welcome to do anything you wish with this code (you don't >need to credit me, except for keeping my copyright notice in the >sources). > > - If you develop for the event interface, you will not need to design >a new interface. Implementing a well-defined API will doubtless be >simpler than rolling your own. > > - If you develop for the event interface, anyone with an absolute >PS/2 or USB device will be able to help you with the XFree86 driver; >if you use your private protocol, you'll be pretty much on your own. > > Good luck, > > Juliusz > ___ > Devel mailing list > [EMAIL PROTECTED] > http://XFree86.Org/mailman/listinfo/devel > ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel