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

Mouse cursor doesn't move on the Y axis #9

Open
anthrazitrr opened this issue Mar 22, 2024 · 21 comments · May be fixed by #11
Open

Mouse cursor doesn't move on the Y axis #9

anthrazitrr opened this issue Mar 22, 2024 · 21 comments · May be fixed by #11
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@anthrazitrr
Copy link

anthrazitrr commented Mar 22, 2024

After i installed maccel and rebooted, the mouse cursor stops moving on the Y axis.
The issue persists on both stock and zen kernel.

https://streamable.com/n8x69e

OS: Arch Linux 6.8.1-zen1-1-zen
Server: Xorg with libinput

@Gnarus-G Gnarus-G self-assigned this Mar 25, 2024
@Gnarus-G
Copy link
Owner

Wow that is wild. I have same setup on my daily driver - same os and server you listed. So, I don't think it's that.
But I'll test it out in a VM.

I guess I should have some kind optional tracing setup for situations like this. I can't infer enough from the video.

@anthrazitrr Which mouse are you using? Can you try another one.

@anthrazitrr
Copy link
Author

anthrazitrr commented Mar 25, 2024

I'm using Glorious Model O Minus if you're wondering, but i will try a different one.

Could it also be that OpenTabletDriver is the issue?

UPD: Tried on a different mouse, even uninstalled opentabletdriver, and now the cursor doesn't move at all.

@Gnarus-G
Copy link
Owner

Wild. What was your suspicion about opentabletdriver?

So, I'll have to set up a debug build for this. If you are willing, you can use it to troubleshoot.

@anthrazitrr
Copy link
Author

anthrazitrr commented Mar 25, 2024

Wild. What was your suspicion about opentabletdriver?

When i was using leetmouse it was breaking the tablet driver.

So, I'll have to set up a debug build for this. If you are willing, you can use it to troubleshoot.

👍🏻

@Gnarus-G
Copy link
Owner

After i installed maccel and rebooted

Btw, rereading your first comment, does that mean it was fine before you rebooted? - or you didn't use your mouse until you rebooted.

As for debugging, so far here's what we can do:

Can you clone this repro, and checkout the debug-build branch: git checkout feat/debug-build
Then, at the root of the repo, you

  • sudo make uninstall if you had it installed, probably not
  • sudo make debug_install
  • sudo dmesg -w and move your mouse around,
    • taking note of the line move input log lines, like "[MOUSE_MOVE] input (x, y)"

What I expect is that as you move your mouse

  • left, x is negative
  • right, x is positive
  • up, y is negative
  • down, y is positive

0 means no movement. The faster you move it the bigger the absolute value of x/y.

What do you notice when you try it? I would appreciate a video like last time. Let me know if I need to clarify these steps further.

@anthrazitrr
Copy link
Author

https://youtu.be/ilfrL0JSkVQ

Sorry for not replying for 5 days, here's the video.
Every time i move my mouse to the left, kernel log reports y as -1, which is very strange.

@Gnarus-G
Copy link
Owner

Gnarus-G commented Apr 2, 2024

Sorry for not replying for 5 days, here's the video.

Absolutely no worries at all.

Thanks for the video. I have a suspicion that I'll look into.

@anthrazitrr
Copy link
Author

Also, could the problem be caused by Glorious mice relying on a separate driver in the kernel?

https://www.phoronix.com/news/Linus-Not-So-Glorious-Mouse

@Gnarus-G
Copy link
Owner

Gnarus-G commented Apr 9, 2024

Yeah, after reading that now I think the normal hid driver in linux does something for this mouse that I am not doing. Btw my suspicion from before didn't really pan out.

I am gonna buy that mouse and use it for debugging. If you could hook me up with an direct link, like an amazon link or something, that'd be cool.

I think I can spend some time on it this weekend.

@anthrazitrr
Copy link
Author

anthrazitrr commented Apr 10, 2024

I've bought it in a local store in Ukraine, so unfortunately I can't help you with that.
I might just buy a new mouse and call it a day. But the problem still needs to be resolved. I have high hopes for this project.

@anthrazitrr
Copy link
Author

I have tested every mouse I have:

Don't work at all with maccel:
Logitech M650 Wireless
Bloody T7 Winner

Misbehaving input:
Glorious Model O/O-
Hator Stellar Pro Wireless (reports as Telink Stellar PRO Mouse)

@Gnarus-G
Copy link
Owner

Gnarus-G commented Apr 20, 2024

Yean I am sorry to hear that.
Now that I have played around with the Glorious Model 0- I bought, I found out that the problem is that some mice report the movement values in very different formats.

Leetmouse was kind of handling it with a custom parser for different types;
So it will be an adventure for me to port over linux's handling of all different mice.

For the record: I have tested (am using):
Razer Viper
Razer Deathadder V2

@ParanoIIa91
Copy link

Hey, i really got excited when someone posted your project on discord, because mouse accel is essential for me, but when i activate it my vertical movement gets locked and it becomes scrolling wheel instead lol, i am using Lamzu Thorn 4k.

@Gnarus-G Gnarus-G added bug Something isn't working help wanted Extra attention is needed labels Apr 21, 2024
@Gnarus-G Gnarus-G linked a pull request Apr 21, 2024 that will close this issue
@Gnarus-G
Copy link
Owner

Gnarus-G commented Apr 22, 2024

Alright guys, @anthrazitrr, @ParanoIIa91

I have ported over leetmouse's parser over in another branch.
If you can, try it and let me know if it helped you.

Basically:

  • clone this repro: git clone https://github.com/Gnarus-G/maccel.git
  • checkout another branch: git checkout feat/leetmouse-hid-parser
  • sudo make uninstall: if you had it installed, probably not
  • sudo make install
  • sudo maccel bindall: in case it maybe didn't bind automatically.

P.S. I don't have a lot of faith in this approach as even leetmouse's author warned against this custom parser strategy. Still, this was the fastest of all the approaches I brainstormed. The right fix is going to take me a while.

@ParanoIIa91
Copy link

I am not very good with Linux yet, but this is what i am getting?
Screenshot_20240422_110445

@Gnarus-G
Copy link
Owner

@ParanoIIa91 No that's my mistake: wrong command.

Use git clone https://github.com/Gnarus-G/maccel.git

@ParanoIIa91
Copy link

ParanoIIa91 commented Apr 24, 2024

Screenshot_20240424_093901 mouse cursor still behaves weirdly but i dont think those commands did anything, maybe i am doing something wrong?

@anthrazitrr
Copy link
Author

anthrazitrr commented Apr 24, 2024

Screenshot_20240424_093901 mouse cursor still behaves weirdly but i dont think those commands did anything, maybe i am doing something wrong?

@ParanoIIa91
Delete the maccel folder that you already have:
rm -rf maccel

Then clone the repo again:
git clone https://github.com/Gnarus-G/maccel.git

Change the current directory to the newly cloned maccel folder:
cd maccel

Checkout the branch that has the experimental HID parser:
git checkout feat/leetmouse-hid-parser

Uninstall the previous version:
sudo make uninstall

Install the new version:
sudo make install

Pro tip: if something doesn't work, look at the output of the command.

The new HID parser works for me, I have tested Hator Stellar Pro Wireless and Glorious Model O- so far.

@ParanoIIa91
Copy link

Thank you very much, its actually working! First time in my linux experience, i found a proper mouse accel project, that actually works, now i just need to mess with settings, because i am not sure yet, how exactly doest it work :)

@Gnarus-G
Copy link
Owner

I am glad to hear it's working for you both. I will keep this issue open for now and direct other people to it when applicable. Depending on how long it takes to research a better fix, I might merge that branch and put this parser behind a flag.

@Gnarus-G
Copy link
Owner

@ParanoIIa91

how exactly does it work

This issue is not the place go down this line of inquiry, but...
Depending on what your specific confusion is, checkout the Readme
Especially the References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants