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

Assigning a key to "Space" makes entire computer lag #56

Open
HeyZeusV opened this issue Apr 19, 2018 · 4 comments
Open

Assigning a key to "Space" makes entire computer lag #56

HeyZeusV opened this issue Apr 19, 2018 · 4 comments

Comments

@HeyZeusV
Copy link

As the title says, I have assigned in my keyMapping file "12 - key=KP_Space" on my Naga Epic Chroma. Every time I press the button on my mouse, my entire computer lags for like half a sec and it will not always insert a space where I want it. I also have my 11 key set to "Enter" in the same way and that works perfectly fine.

I also had another question, is it possible to assign the middle mouse button when you press it to the left and right? I really miss being able to go Back and Forward using it.

Thanks!

@RaulPPelaez
Copy link
Owner

naga.cpp calls internally to xdotool everytime you press a button in the mouse.
The lag could be caused by naga.cpp hooking up to the mouse with ioctl or could be xdotool. We can check this if you run the xdotool line naga.cpp will call anyway:
Please run:
xdotool key --window getactivewindow KP_Space
Does the computer lag or it just does the space? (What is KP_Space anyway?).
If it doesnt lag, does it happen only if you assign it to key 12?

Regarding the middle button thing. I believe you should be able to do this. But you will probably have to do a little research to see how xinput identifies this buttons in your mouse. Honestly I do not remember the exact command now, but the xinput get-button-map commands in the README.md would be a good start.

@HeyZeusV
Copy link
Author

HeyZeusV commented Apr 20, 2018

Thank you so much for the quick reply!

When i run
xdotool key --window getactivewindow KP_Space
it just adds a space before my user name in the terminal which is what i wanted it to do(to act like a spacebar), but I ran a few apps in the background while I tried that command several times. Everything lagged as soon as I hit enter.

Thank you, I will definitely look into that!

@RaulPPelaez
Copy link
Owner

I do not have the slightest clue about what is happening here. But I do not thing it is related to this project... I am letting this issue here just in case anyone has an idea.

@lostallmymoney
Copy link

Please try https://github.com/lostallmymoney/Razer_Mouse_Linux if this old versino is lagging.

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

No branches or pull requests

3 participants