r/Keychron • u/kdabkded2011 V • Aug 29 '24
QMK Mouse Keys not working properly while in wireless mode (V10 Max)
I own a V10 and a V10 Max. Both on custom firmware/key map ( V10 and V10 Max *). One of the main features I use is the knob mapped to the mouse side scroll wheel. On the V10 Max I'm having an issue where the mouse keys (any of them Mouse Wheel Side Scrolls*) do not translate (at all or properly) in wireless modes (Bluetooth or RF respectively). They work perfect in wired mode, but not on wireless.
I already tried going back to original releases firmware and adding through VIA and Keychron Launcher. Same behavior: mouse keys work perfect on all modes, except the mouse wheel side scroll which works in* wired mode, botchy/wrong on RF, not at all on Bluetooth.
Has anyone encountered this issue and managed to solve it? I am using the latest repo from Keychron's wireless_playground branch. I figured I'd ask here before trying CS.
* Edits: corrected the behavior, added links to keymaps if it helps
2nd edit and solved! We have a solution! It was this one. Followed instructions on the website step by step and solved the issue. Also did the same for the RF receiver and solved in RF too. I'm happy! I retain the functions and can now enjoy being wirelesa on my max! Yay!
Thank you u/PeterMortensenBlog and u/Keychron-Support
2
u/PeterMortensenBlog V Aug 29 '24 edited Nov 15 '24
Is it mouse scroll up/down by itself, without any modifier keys?
Is there a difference in assigning to the knob and regular keys?
I can not confirm the problem on a K5 Pro, for example, scrolling this very web page. Keymappings using KC_WH_U and KC_WH_D (aliases of KC_MS_WH_UP and KC_MS_WH_DOWN, respectively) on two regular keys work fine in wireless (Bluetooth) mode. Commit ID (besides custom keymappings, custom macros, custom layer indication with RGB light, etc.): A56EF8 (2024-03-02) using 'wireless_playground'.
Perhaps the problem is specific to the V Max series?
References
2
u/Keychron-Support Aug 30 '24
Please try to update the Bluetooth firmware. https://www.keychron.com/pages/keychron-v-max-q-max-k-max-series-bluetooth-firmware
2
u/PeterMortensenBlog V Nov 19 '24 edited Jan 05 '25
The Bluetooth firmware version is coupled to the behaviour in '2.4 GHz mode'... Very weird!!
After having updated the firmware in the '2.4 GHz' dongle for the V6 Max, I finally updated the Bluetooth firmware (inside the keyboard) as well (from 0.1.13 to 0.2.1). It fixed the problem with mouse scrolling (and other mouse actions) in '2.4 GHz' mode...
Also, the '2.4 GHz' dongle version didn't matter. It worked equally well with the other dongle that wasn't updated to version 3.0 (still at version 2.04).
Conclusion
Even if it seems illogical, update both the firmware in the '2.4 GHz' dongle and the Bluetooth firmware.
The Bluetooth firmware version affects the behaviour in '2.4 GHz' mode, even with the very latest (main) firmware (2024-11-18. Compiled from source).
1
u/PeterMortensenBlog V Aug 30 '24
What operating system?
Today I learned that some have per-connection type (or per keyboard?) keyboard settings, at least for the keyboard layout (interpretation of keycodes).
This may or may not affect mouse keys.
Can you rule out the operating system? For example, using another operating system. I haven't observed such problems on Linux.
1
u/PeterMortensenBlog V Sep 05 '24 edited Sep 12 '24
OK, I tried with a V6 Max (in the same series as the V10 Max), and I can partly reproduce the problem. But it is also the opposite:
In all cases, it worked the same if the same keycodes were used with ordinary keys (as expected). Thus, the knob itself can probably be ruled out for being part of the problem.
It is with stock firmware (reported as 1.00, but I don't think that is very reliable information; it could mean anything).
The wireless firmware for that V6 Max is quite old:
The Bluetooth firmware (the keyboard's Bluetooth module) version is 0.1.13 (2024-01-08). I have registered these versions:
The '2.4 GHz' (dongle) version is "d.2.4" (also shown as "d.2.04" and "0204", depending on which application, etc.). I only tried the USB-A one.
Before updating the dongle's firmware, I am going to try it with firmware compiled from source to see if the firmware version makes a difference.
1
u/PeterMortensenBlog V Sep 09 '24 edited 22d ago
OK, I have now updated the firmware for one of the dongles (USB-A) to 'd.3.0' (from 'd.2.4' AKA "d.2.04" and "0204").
But it didn't make a difference. It is still scrolling horizontally in Geany and doing nothing in a Firefox window. It (still) works fine in wired mode and in Bluetooth mode (after repairing), for example, on this very page.
Using a direct USB port (USB 3.0) instead of a USB hub (USB 2.0) for the dongle didn't make a difference.
Also, Via works in '2.4 GHz' mode with 'd.3.0', but only with the USB cable connected! I didn't test it for the 'd.2.4' version, so I don't know if the update to d.3.0 made a difference or not.
There were a huge number of gotchas related to updating the dongle firmware in a virtual machine (Windows 10 Home inside VirtualBox 6.1):
lsusb -v -d3434:D030 2>/dev/null | grep bcdDevice)It is too easy to accidentally flash the wireless firmware: Even if the previous action was "Get Version" (and thus that GUI element is selected), pressing Enter will start the flashing (the application does not adhere to how a Windows application should behave).
A precaution: Change the file name for the firmware (upper right in the window) to something invalid, e.g., by adding "YYYY". This will prevent accidental flashing.
Do not panic and try to stop the flashing if it has accidentally started flashing; this will make it much worse, potentially permanently bricking the dongle. Just wait for flashing to run its course and flash with another version if it isn't the correct one.
Other gotchas:
I had to repair (pair again) the Bluetooth connection (though I didn't update the Bluetooth module). It can not be completely ruled out that this was caused by a reset to factory defaults (but I don't think that would normally affect the Bluetooth pairing/configuration).
Conclusion
I can not confirm that updating the 2.4 GHz dongle fixes the problem, at least not for firmware compiled from the latest source code (2024-09-04) for V6 Max and for the USB-A '2.4 GHz' dongle.
References
1
u/PeterMortensenBlog V Sep 12 '24 edited Oct 08 '24
I have now tried to see if it was a timing issue, by means of using macros to have control over the timing (150 ms between mouse scroll 'press' and mouse scroll 'release', if that makes any sense for mouse scrolling). But it didn't make any difference, except that the scrolling action was about 3 times less with the macros compared to using key mappings. As before, it worked in wired and Bluetooth mode, but not in '2.4 GHz' mode.
This was implemented as classic QMK macros. Implementing it as Via macros would require a hack, and it seems to be too many variables to add (things that could go wrong and lead to the wrong conclusion).
The following was inserted in
process_record_user()in keymap.c (yes, it doesn't follow structured programming principles, but it is only for testing):SCROLL_UPandSCROLL_DNhad values somewhat higher thanSAFE_RANGE. And they were used in the key map for two normal keys.1
u/PeterMortensenBlog V Jan 05 '25 edited Nov 18 '25
It is much clearer in retrospect...
It isn't so mysterious. The wireless module inside the keyboard handles both Bluetooth and '2.4 GHz'.
And it is a misnomer to call the firmware "Bluetooth firmware"; its right name is something like "Bluetooth/'2.4 GHz' firmware" or perhaps just "wireless firmware" (though it should still be distinguished from the firmware in the dongle ('2.4 GHz'-only)).
I had this misconception for the longest time. Though I wasn't the only one. Keychron support's statement was misleading:
It is a rediscovery
It has been noticed before (2024-02-18), including the coupling between the Bluetooth and '2.4 GHz' firmware:
E.g.,
I missed the coupling at the time. It is much clearer in retrospect...
If the information is reliable, it may be sufficient to use version 0.1.14 or 0.1.15 of the Bluetooth firmware. That is, to avoid the perils of version 0.2.x. Version 0.1.15 is still available. And version 0.1.13 is also available from an unofficial source.
I think I am going to conduct the experiment, reverting to version 0.1.15. Originally, I had version 0.1.13, just shy of the fix in version 0.1.14.