LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-18-2010, 04:40 PM   #1
connie84911
LQ Newbie
 
Registered: Jan 2010
Posts: 24

Rep: Reputation: 0
read and writing PS/2 mouse device.


I would like to write a userspace driver that can talk to the PS/2 touchpad that I am connected to. I know that mice are typically input only - but I need to send a command sequence to the touchpad to initialize it .

I have been trying to read and write from/to /dev/input/mouse2. I can read and write to the device file, but the results are the same with the touchpad connected or not. The response from /dev/input/mouse2 show ACKs for each write, but my sniffer shows no traffic.

Can you direct me to some place that may offer some help?
 
Old 05-19-2010, 07:40 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
You can't output on a PS/2 connector that I know of. It was never designed to be a 2 way connector. You don't initialize a tablet pad or touch pad that I know of.
 
Old 05-19-2010, 07:41 PM   #3
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
No, PS/2 does transmit data both ways.
 
Old 05-20-2010, 10:52 AM   #4
connie84911
LQ Newbie
 
Registered: Jan 2010
Posts: 24

Original Poster
Rep: Reputation: 0
reading and writing PS/2 mouse device

I am trying to initialize a PS/2 touchpad, and need to change set some parameters such as resolution and absolute vs. relative coordinate reports. This may be done from the kernel at boot, but I'm not sure.

Thanks for your help.
 
Old 05-20-2010, 04:07 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
OK, I have never seen it in action.

http://www.computer-engineering.org/ps2protocol/
 
  


Reply


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
writing usb and mouse device driver. shinde_amit001 Linux - Software 3 03-25-2010 05:45 PM
writing usb and mouse device driver. shinde_amit001 Fedora 1 03-25-2010 05:55 AM
writing usb and mouse device driver. shinde_amit001 SUSE / openSUSE 1 03-25-2010 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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