Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serial 2 ps/2 mouse adapter mouse acts funny #1884

Open
sparky4 opened this issue Apr 18, 2024 · 11 comments
Open

serial 2 ps/2 mouse adapter mouse acts funny #1884

sparky4 opened this issue Apr 18, 2024 · 11 comments
Labels
bug Defect in the product

Comments

@sparky4
Copy link

sparky4 commented Apr 18, 2024

Description
the mouse to work correctly
the mouse goes diagonally when moving up and down. It is quite laggy and it works perfectly in DOS

Configuration
latest
286 with serial 2 ps/2 mouse adapter mouse system

How to reproduce ?

  • Does the problem always happen ?
  • yes when using nx programs
  • List the steps to reproduce the problem.
  • get an adapter ps/2 to serial adapter and try it yourself. i have one and willing to test it

Additional information
i am willing to help fix this issue with nx system

@sparky4 sparky4 added the bug Defect in the product label Apr 18, 2024
@ghaerr
Copy link
Owner

ghaerr commented Apr 18, 2024

Hi @sparky4,

Is your mouse outputting Microsoft protocol, or perhaps pc/Logitech? This can be better determined by running the mouse program from the command line, which will display the x,y coordinates. You can also edit the mouse protocol in elkscmd/sys_utils/mouse.c (set MOUSE_MICROSOFT vs MOUSE_PC) to see if that changes things. If so, then this can be changed in Nano-X as well.

Thank you!

@sparky4
Copy link
Author

sparky4 commented Apr 18, 2024

thanks ill try it out

@sparky4
Copy link
Author

sparky4 commented Apr 18, 2024

20240418_124924
ignore the pins xD

@ghaerr
Copy link
Owner

ghaerr commented Apr 18, 2024

Did you try replacing the code in elkscmd/sys_utils/mouse.c to the following:

#define MOUSE_MICROSOFT     0       /* microsoft mouse*/
#define MOUSE_PC            1       /* pc/logitech mouse*/

Then move the mouse quite slowly, We're trying to determine exactly what is coming from your mouse so that the data is parsed correctly. On ELKS, the mouse data is parsed by the user program (Nano-X), not the kernel. If the above change doesn't do much, then we will have to possibly try to see the raw data itself and determine how to parse it.

@sparky4
Copy link
Author

sparky4 commented Apr 18, 2024

okie ill boot it up

@sparky4
Copy link
Author

sparky4 commented Apr 19, 2024

lets see the raw data?

@ghaerr
Copy link
Owner

ghaerr commented Apr 19, 2024 via email

@sparky4
Copy link
Author

sparky4 commented Apr 19, 2024

oh okay ill look into it when i get a chance

@ghaerr
Copy link
Owner

ghaerr commented Apr 20, 2024

@sparky4: I added a raw mode output to mouse in #1888 to help you. Run mouse r to see raw mouse data, then take a screenshot after lightly moving the mouse left/right and up/down a bit.

@sparky4
Copy link
Author

sparky4 commented Apr 20, 2024

thanks ill check it out tomarrow

@sparky4
Copy link
Author

sparky4 commented Apr 22, 2024

dang i need some time to test it more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defect in the product
Projects
None yet
Development

No branches or pull requests

2 participants