LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-21-2018, 12:34 AM   #1
trackpad
LQ Newbie
 
Registered: Jul 2018
Posts: 1

Rep: Reputation: Disabled
Looking for testers for some trackpad code I wrote


Hello

I wrote some C code to play around with the Multi-Touch (MT) protocol by reading directly from the /dev/input/event* device. I was wondering if anybody would be willing to test it on their machine. Just would like some feedback, plus there's a few things I don't quite understand.

The code is located at http://github.com/arthurchoung/linux-trackpad-demos

You'll have to build it by typing 'make'. You should end up with 3 binaries you can run (it links with -lX11 -lGL so you'll need the appropriate headers/libs)

The three binaries are (1) a square-shaped 'hockey puck' that you can move around, (2) a program that simply shows the current touches detected, and (3) a crude 'rubber band' scrolling example.

This is where it's a bit tricky, I don't entirely understand this part. On my system, I am running Slackware 14.2 on a Thinkpad X220. The device file for my trackpad is '/dev/input/event14' which also seems to be the mouse, but I'm not sure where that gets decided.

So when running the binaries, you would specify the device file as the argument. For example, './puck_demo /dev/input/event14' would be the command on my system. But it's possible that each system uses a different /dev/input/event file.

Additionally, this file needs to be readable by the user, so you would have to do a 'chmod a+r /dev/input/event14' or give the user read permissions some other way.

A few things I am interested in finding out:

(1) Does it actually work on your system?
(2) Which /dev/input/event device file worked, if any?
(3) When running 'tracking_demo', how many touches are able to be detected simultaneously? My computer only detects 2 finger touches.
(4) Any other problems you may have

Thanks
 
  


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
LXer: People think I wrote code for Hacking Team! LXer Syndicated Linux News 0 07-22-2015 08:11 PM
LXer: Amazon wrote a new TLS crypto library in just 6,000 lines of code LXer Syndicated Linux News 0 07-01-2015 10:33 PM
Toshiba Wireless Keyboard with built in "trackpad" - Trackpad not working. plowers Linux - Newbie 1 11-02-2010 11:12 PM
Possible gamepad code bug? Requesting testers. Dr Twox Linux - Hardware 1 07-09-2004 08:24 PM
need some constructive critisim on some code I wrote. qanopus Programming 5 06-25-2003 10:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:05 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