LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-19-2018, 07:51 AM   #1
Poison Nuke
Member
 
Registered: Aug 2012
Location: Germany
Posts: 41

Rep: Reputation: Disabled
modify mouse-driver to send events over UDP?


Hello,

I would like to use the Apple Magic Trackpad 2 on a Windows App, but unfortunately there is no windows driver, but one for linux. Because I already can handle multitouch-inputs over network, I would like to modify the linux-driver to actually send all touch-events over network, using my own protocol.

But I have no idea, where to start.

And about compiling the driver, is it really enough to have the c-file for the driver itself and compile it against the kernel-sources? Would like to compile it on a raspbian.
 
Old 05-23-2018, 05:20 AM   #2
Poison Nuke
Member
 
Registered: Aug 2012
Location: Germany
Posts: 41

Original Poster
Rep: Reputation: Disabled
Ok I managed to compile the kernel from scratch, by loading the appropriate linux-source, adding the driver.c file to the source tree into drivers/input/mouse, editing the Makefile and Kconfig and then building the kernel

But I still cannot modprobe the new driver, nothing found in lib/modules/<kernel>
I have done make make_install, shouldnt this copy the module?


And what might be the best way of changing the driver, is there any faster way for debug as the complete kernel-build?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop events like Received SNMP packet(s) from UDP: [1.2.3.4]:59675 anon091 Linux - Newbie 6 09-02-2014 07:49 PM
[SOLVED] What tool to use to send MIDI events? TITiAN Linux - Software 1 12-19-2009 12:32 PM
Keyboard events interrupting mouse events. miner49er Linux - Hardware 3 11-04-2008 04:16 AM
Mouse interrupting keyboard events, can't type while mouse is moving sandaili Linux - Hardware 0 08-04-2008 06:56 PM
How to send keyboard/mouse events to a process? shamju Linux - Software 0 12-14-2006 04:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:34 PM.

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