-
Notifications
You must be signed in to change notification settings - Fork 10
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
Troubleshooting Help - Unable to Change Settings Again #20
Comments
When /sys/module/leetmouse/parameters/ does not exist, then the kernel module is not loaded. Try uninstalling and reinstalling the module. |
Right, when using either My uninstall and install commands are virtually the same as the readme's with the exception that I use And here is the shell output of those commands just in case it'd be helpful. |
It all sounds pretty weird, that you need to manually load the module. In principle, that is the job of udev. |
I checked When I use Unsure of where to go from here. I'll post the output I get when unplugging and replugging my mouse in hopes that you can spot why the rules you wrote no longer cover my device. |
Try also unplug/replug your mouse. What is shown in dmesg and udevadm monitor output then? Can you post an of your mouse as mentioned in this debug readme https://github.com/systemofapwne/leetmouse/blob/master/debug/Readme.org?
|
Oh, I missed this debug readme or else I'd have done this sooner. In the above you can see that "Report Descriptors" are unavailable just like the example in the readme. |
Ok, the issue clearly is that your trackball identifies itself as a "keyboard" instead of as a mouse, so the udev rule ignores it. Your trackballs report descriptor has this type of data transmitted to your PC. I commented and separated the relevant parts in the following codeblock
To be honest, I don't see any big issues here by adding your mouse via a quick to the udev-rules. But IMHO the issue is the actual firmware (FW) of your mouse, that incorrectly identifies itself as a keyboard. The reason is, it uses https://github.com/qmk/qmk_firmware as a firmware, which by definition is meant for keyboards. |
Can you please replace the contents of /usr/lib/udev/rules.d/99-leetmouse.rules with the following content
and then run TODO: Reminder for myself, to also fix leetmouse_manage regarding |
Did not work unfortunately. Same results as before. Just in case I replaced Now at some point the leetmouse driver worked with this device no problem. I attempted to change the rules and config to see if that might be a problem. Nope. Then I flashed to the default keymapping and nothing changed either. So this is definitely a change in the QMK firmware itself. For the record it seems like
|
So even |
It still gives
|
Have you made sure, that you execute both commands as root? |
Yup. I'm executing everything as root. I tried in multiple different ways even. First I tried both |
Does /sys/bus/usb/drivers/leetmouse/bind even exist? (I guess so. It should after modprobing) |
Yeah /sys/bus/usb/drivers/leetmouse/bind exists. I'm using zsh normally but bash when I log in as root so I've tried both. |
What does |
It prints
And it sits there without exiting, similar to |
Error from my side. The command should have been this (fixed in original post):
|
Ok now it prints
|
I really don't get the "No such device" error :/ |
I have another suspicion about the USB address being not ok. Does 1-2:1.0 work? And what is the output of |
If this does not work, I might give this a try with real hardware in about 2 weeks: I just ordered a $12 ATMega32u4 Development board, similar to the one in the PloopyCo Trackball. Flashing the official Ploopy FW to it and testing it on my machine should give me a better idea for debugging it. |
lsusb -t
doas /usr/lib/udev/leetmouse_bind "leetmouse" "1-2:1.0"
Sending this command does sort of break my mouse though. The pointer works but certain key combinations weren't working or were garbled in a strange way where it sends different keys simultaneously. I only noticed because I was actually playing a game at the time. The strange thing is, running |
According to your It also seems like people have similar errors @ the OpenRazer driver, where I "inspired" leetmouse_bind from here: openrazer/openrazer#830 Yet, there was no solution. |
I used Other things I've tried today is updating my kernel, plugging into different USB ports and binding to the new Bus-Port, and removing old kernel entries from /lib/modules/. Nothing changed. Something in the last six months changed, but I can't figure out what. Because, like I said, installing this module used to work fine. |
I agree. Only the UDEv rules were related to QMK. The "no such device" is related to something else though. |
Can you, one more time, send me a fresh After that, unbind your mouse from usbhid with |
Here you go. This is immediately after a fresh boot. |
This at least confirms my suspicion, that the both subdevices of the mouse (1-2:1.0 and 1-2:1.1) are both handled via usbhid. Generally, there is nothing that speaks against binding these subdevices to the same or even different drivers. In fact, it is a general practice to introduce different subdevices for different purposes and thus drivers (like an USB printer can simultaneously be a mass storage device to supply drivers or a webcam having a "camera" and a "audio" subdevice). Please try to unbind the mouse completely from usbhid and then try to only bind the 1-2:1.1 to leetmouse:
This might work now. If so, I need to figure out, what the reason for "no such device" is, when 1-2:1.0 is bound to usbhid and why it suddenly happened for you recently. |
Still the "No such device" message after unbinding both and then attempting to bind 1-2:1.1 to leetmouse. Then I tried binding 1-2:1.0 to leetmouse and also got the same error. Then I tried unbinding a generic Dell keyboard from usbhid and binding it to leetmouse, same "No such device" error. I want to reiterate that I think acceleration from leetmouse is still being applied. I'm doubting myself after having done all of this but it has felt the same for months. I've tracked both fast and slow strafing targets, thrown flicks, tried out multiple websites that claim to test mouse accel. I'm fairly certain it's still on. I have rules on boot to disable mouse acceleration from libinput, and I run those commands manually when I reistall/install leetmouse. Is it possible leetmouse is phantomly installed somehow? Maybe got mixed up with another driver? Just shooting in the dark here. I uninstalled leetmouse and then ran
All installs on old kernels. I'll delete them and maybe reboot later to see what happens. |
Minor update. I pulled out my MTE and tried to bind leetmouse to it. It worked without the Also, sometime last year Gentoo switched from using |
For months now I haven't been able to change my settings for this driver. Every reinstall feels the same regardless of how much I increase values. Also, it feels the same regardless of which kernel version I've tested it on, including kernels I have yet to run the installer on. I've upgraded my kernel and installation dependencies since the initial installation so I'm unsure which of those, if any, are causing issues.
I finally sat down today to try to figure out why, so far the only thing I can see wrong is the installation is no longer creating
/sys/bus/usb/drivers/leetmouse
,/sys/module/leetmouse
, nor the files within. However, other folders are still created/modified when reinstalling such as/usr/src/leetmouse-driver-0.9.0
or/lib/modules/$KERNEL/kernel/drivers/hid/leetmouse.ko
.Distro: Gentoo
Kernel: 5.15.11
Day 2 of messing with this thing. So now I've found I have to manually invoke
doas insmod /lib/modules/$KERNEL/kernel/drivers/hid/leetmouse.ko
which creates the previous missing folders and files. Then I triedecho -n "1-2:1.1" > /sys/bus/usb/drivers/leetmouse/bind
but it returns aNo such device
error.echo -n "1-2:1.1" > /sys/bus/usb/drivers/usbhid/bind
andecho -n "1-2:1.1" > /sys/bus/usb/drivers/usbhid/unbind
do work though, so this seems to be a problem specific to what's in the leetmouse directory.Oh and my settings feel the same despite this. Unbinding and rebinding the usbhid driver I can feel a change, but running the same commands I use prior to it breaking makes it feel the same. Despite putting in extremely different values in
drivers/config.
.The text was updated successfully, but these errors were encountered: