LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   read and writing PS/2 mouse device. (https://www.linuxquestions.org/questions/linux-newbie-8/read-and-writing-ps-2-mouse-device-808694/)

connie84911 05-18-2010 04:40 PM

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?

jefro 05-19-2010 07:40 PM

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.

MTK358 05-19-2010 07:41 PM

No, PS/2 does transmit data both ways.

connie84911 05-20-2010 10:52 AM

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.

jefro 05-20-2010 04:07 PM

OK, I have never seen it in action.

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


All times are GMT -5. The time now is 10:43 PM.