LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-13-2006, 05:37 AM   #1
Orkie
Member
 
Registered: Mar 2005
Distribution: Breezy Badger
Posts: 248

Rep: Reputation: 30
Trying to write a kdrive/XFree86 mouse driver


UPDATE: I wrote a gpm driver but now can't get it to work with kdrive -- see further down for more information

Hi

I have been cross-compiling kdrive for the ARM (so I can use the Xfbdev server) and X is now running and will allow programs to run. The problem is, it isn't much use yet since the mouse isn't working as the system uses a non-standard mouse device and so clearly, it isn't supported.

I have been looking through xc/programs/Xserver/hw/kdrive/linux/mouse.c but I can't work out how to add a new driver. I know how to get data from the device and what format it is in (you just read a single unsigned long int periodically which contains all the data you need and you don't need to write anything to it unlike some of the other mice) so it is simply a case of writing the functions to read and act upon this data.

Can anybody offer any advice as to where to start?

Thanks

PS: I'm using a copy of XFree86 4.3 if that helps

EDIT: I now have decided to use gpm as a repeater (since its code it much cleaner and easier to understand) and I've managed to write a driver which works. The problem now is that I can't work out how to get it working as a repeater. When I make it repeat as any of the supported protocols (I've tried ms3, imps2 and ps2), X will find the mouse device (I've added it to its list of search locations) but keep switching between protocols and never actually stay on any of them.

Last edited by Orkie; 05-14-2006 at 07:23 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kdrive and xinit slothpuck Linux - Software 0 01-24-2005 01:50 PM
write-combing range error in XFREE86 log MisterGoof Mandriva 0 08-30-2004 05:30 PM
Using Elotouch touchscreen with Kdrive/TinyX? lueckmw Linux - Hardware 0 03-06-2004 04:24 PM
XFree86 and Write-Combining Range ? Shade Linux - Software 1 07-29-2003 10:48 PM
Will ATI Radeon 8500 XFree86 4.2 driver work with Xfree86 4.3? Stevetgn Linux - Hardware 1 06-24-2003 06:16 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration