elks icon indicating copy to clipboard operation
elks copied to clipboard

serial 2 ps/2 mouse adapter mouse acts funny

Open sparky4 opened this issue 1 year ago • 11 comments

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 avatar Apr 18 '24 17:04 sparky4

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!

ghaerr avatar Apr 18 '24 17:04 ghaerr

thanks ill try it out

sparky4 avatar Apr 18 '24 17:04 sparky4

20240418_124924 ignore the pins xD

sparky4 avatar Apr 18 '24 17:04 sparky4

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.

ghaerr avatar Apr 18 '24 18:04 ghaerr

okie ill boot it up

sparky4 avatar Apr 18 '24 21:04 sparky4

lets see the raw data?

sparky4 avatar Apr 19 '24 01:04 sparky4

You’ll have to modify mouse.c to do that.

On Apr 18, 2024, at 6:58 PM, sparky4 @.***> wrote:



lets see the raw data?

— Reply to this email directly, view it on GitHubhttps://github.com/ghaerr/elks/issues/1884#issuecomment-2065611910, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC3OFZJYZZ5H2U24N55OIZDY6B23VAVCNFSM6AAAAABGNXC2OGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRVGYYTCOJRGA. You are receiving this because you commented.Message ID: @.***>

ghaerr avatar Apr 19 '24 02:04 ghaerr

oh okay ill look into it when i get a chance

sparky4 avatar Apr 19 '24 13:04 sparky4

@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.

ghaerr avatar Apr 20 '24 03:04 ghaerr

thanks ill check it out tomarrow

sparky4 avatar Apr 20 '24 17:04 sparky4

dang i need some time to test it more

sparky4 avatar Apr 22 '24 14:04 sparky4