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

Issues with mice under driver mode (DPI buttons & wheel tilt) #201

Open
tildearrow opened this issue Feb 15, 2017 · 11 comments
Open

Issues with mice under driver mode (DPI buttons & wheel tilt) #201

tildearrow opened this issue Feb 15, 2017 · 11 comments
Labels
help wanted not stale Label for issues the Stale bot shouldn't close

Comments

@tildearrow
Copy link
Contributor

Description:
Mice under driver mode do not send events for DPI buttons and wheel left/right tilt.

Steps to Reproduce:
Write a 0x03 and a 0x00 to /sys/bus/hid/drivers/razermouse/0003\:1532\:*/device_mode.
Then pressing the DPI buttons and wheel left/right won't work.

What should happen instead:
Pressing the DPI buttons should produce keycodes, so the daemon can handle them and change the DPI.
And tilting the scroll wheel should produce wheel left/right events.

@terricain
Copy link
Member

Is a known issue ;-) requires some effort

@tildearrow
Copy link
Contributor Author

I think I just did some sort of implementation for it.
It works pretty much like the keyboard one: it catches "0x04" raw events, and it remaps them to F13-F16 keys.
However, what I am trying to do, is to remap the F13-F16 keys to mouse button presses, but it doesn't seem to be working. I have even tried to hack the keybit bitmap to make it work, but it still doesn't.
Or should I leave it as F13-F16? (which I really don't want)

@terricain
Copy link
Member

I think the issue is that they emit keycodes on one of the interfaces that isnt interface 0 (which would mean they're keyboard interfaces), might be wrong havent looked at the mice stuff as of late

@tildearrow
Copy link
Contributor Author

Exactly. I just thought of a workaround:
Let the wheel tilt and DPI buttons be mapped to F13-F16, then catch them in the daemon and execute right actions (wheel tilt does scroll left/right and DPI buttons change DPI).

Is this possible? If so I can create a pull request for the map part.

@terricain
Copy link
Member

Yeah should be fine. We'd need an exclusive read on the event files so the F13-16 doesn't interfere with other system shortcuts (i remeber something like f23 does touchpad on/off on some systems)

But yeah should be fine

@stale
Copy link

stale bot commented Jan 29, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 29, 2018
@computator
Copy link
Contributor

I would like to see side scrolling support, and I just now found this issue. I am commenting because I see that this has just recently been marked as stale.

@stale stale bot removed the wontfix label Feb 6, 2018
@z3ntu z3ntu added the not stale Label for issues the Stale bot shouldn't close label Jun 2, 2018
@wirespot
Copy link

wirespot commented Jun 9, 2018

Hi, I've built and installed the driver/daemon/udev etc. from latest master, which contains the patch listed above. After switching the device mode to 3:0, shouldn't I see F13-F16 keys being emitted when testing with xev? I'm getting nothing.

Is there anything else I can map the raw events to in order to make it work (obtain usable events)? Or other patches I can apply?

@z3ntu z3ntu changed the title Issues with mice under driver mode Issues with mice under driver mode (DPI buttons & wheel tilt) Jun 20, 2018
@Orochikaku
Copy link

Hi, just curious as to whether this will be fixed at any point. I personally use the tilt scroll a lot when in Windows.

@G-M0N3Y-2503
Copy link
Contributor

I noticed that the implementation for supporting tilt scroll for the Naga 2014 was the same as the Basilisk. perhaps this is a general solution for more than these two devices. 🤔

65ad288

@patri9ck
Copy link

patri9ck commented Oct 20, 2021

Would implementing this also mean that we would be able to disable the DPI buttons through software like Polychromatic? Sometimes I click them by accident.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted not stale Label for issues the Stale bot shouldn't close
Development

No branches or pull requests

9 participants