LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-01-2017, 01:55 PM   #1
mcody
LQ Newbie
 
Registered: Apr 2009
Posts: 11

Rep: Reputation: 0
Raspberry Pi: Using inputattach on Raspbian Jessie


Greetings,

I've been attempting to get a serial trackball working on my Raspberry Pi 2 with inputattach on X Windows under Raspbian Jessie (kernel 4.4.38-v7+). The serial trackball in question is described on the following web page:
Experimenting with a "Tiny Trackball"...
The trackball is connected to the RasPi via the GPIO serial port. I have disabled the default serial console and kernel message logging to the serial port. I have been able to get the trackball working with gpm. The trackball looks like a Microsoft 2-button mouse.

I have not been able to get the trackball working with inputattach, so I can use it under X Windows. I've tried everything I can think of to get it to work without success. While gpm didn't need it, I even enable GPIO pin 17 to output the RTS signal (alternate output 3), in case inputattach needed it to reset the trackball. Even this did not help. I would have thought that the following invocation would work:
Quote:
inputattach --microsoft /dev/serial0
In my research, I found that the X Windows installation is configured to use libinput (not evdev). The hot-plugging capability precludes the use of the 'traditional' serial mouse driver. Using inputattach appears to me to be the standard approach to using serial pointing devices with libinput.

As a side note, I did write a C++ program to acquire data from the trackball and generate X Window events using libxdo. It works, mostly, but it has its own set of problems. I would prefer to use a common approach, if possible.

Thanks,

Mac

Last edited by mcody; 07-01-2017 at 02:02 PM. Reason: Added more information.
 
Old 07-02-2017, 07:56 PM   #2
mcody
LQ Newbie
 
Registered: Apr 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Update on efforts to resolve the issue.

I decided to remove libinput support and install evdev instead:
Quote:
sudo apt-get remove xserver-xorg-input-libinput
sudo apt-get install xserver-xorg-input-evdev
Then I attempted to use the solution described by RupertPupkin in his post [SOLVED] Configuring a serial mouse on Fedora 19 on the FedoraForum.org. No success. This tells me that it is not an libinput vs. evdev issue.

I also looked into the source code to inputattach, which is part of the linuxconsoletools package, to see how it accesses the serial port. Nothing particularly mysterious. It essentially sets up the serial port to ignore BREAK condition on input, ignore framing errors and parity errors, lower modem control lines after last process closes the device, and ignore modem control lines. Doesn't help me to figure what is going on, though.

Mac
 
  


Reply

Tags
hardware, mouse, raspberry pi, serial, xwindows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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: Raspberry WebKiosk 6.0 Released for Raspberry Pi, Based on Raspbian Jessie Lite LXer Syndicated Linux News 0 04-28-2017 10:23 AM
LXer: Raspbian GNU/Linux upgrade from Wheezy to Raspbian Jessie 8 LXer Syndicated Linux News 1 06-09-2016 12:12 PM
LXer: Raspbian Jessie Lives Up to the Hype LXer Syndicated Linux News 0 10-07-2015 10:12 AM
LXer: Raspbian for Raspberry Pi 2 Now Based on Debian 8 "Jessie" LXer Syndicated Linux News 0 09-29-2015 09:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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