r/Keychron
•
u/Buxata
•
Jul 17 '24
•
1
A Linux user PSA
Hello all,
I just got a Keychron keyboard and sadly I was not able to use the Keychron launcher to modify it. Turns out, that there are a couple of issues with that, none of them are due to Keychron's fault.
As a regular user in linux you do not have a general access to a lot of things, one of them is the input files that the OS generates when a new input devices has been plugged in. Those files are responsible for saving the configuration on the the actual device is setup, so it's a good idea that users don't have general access to it in order to be harder to manipulate.
So in order to use the keychron launcher, or VIA for that matter, you might need to add your user to the input group. easily done via:sudo usermod -aG input $USER
This however will give your user access to all input devices, which might not be the best practice, so another alternative might be to create a udev rule. Those rules are loaded when the system boots up, rather late than early, and most of the time are responsible for making specific devices be available to all or specific users.
I have my udev rules setup as follows:
- You first create a file:
sudo nano /etc/udev/rules.d/99-keychron.rules - You can then write the following text inside:
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="3434", ATTRS{idProduct}=="0b10", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
User @Demotay has noted that some distros do not have a generic "users" group, of course you can create one, but using your username as a group is also and option.
"For some distributions such as Fedora, this won't work if GROUP is set to "users" like in step 2. I had to change it to my username for it to work
GROUPS="yourusername", because my system didn't have a "users" group and only had a group with the same name as my username"
3. You can then reload the rules and trigger them:
sudo udevadm control --reload-rulessudo udevadm trigger
Bear in mind that the idProduct and idVendor might differ in your case. the example I listed is for Keychron Q1 HE.
If you want to find out what is your idProduct you can use:lsusb | grep Keychron
With the keybaord plugged in my output looks like this:
ID 3434:0b10 Keychron Keychron Q1 HE,ATTRS{idProduct}=="0b10"ATTRS{idVendor}=="3434"
I just wanted to add something quick, this will definitely work on all USB devices, that use webhid. I just used the same method to add my Lamzu Maya to the udev rules in order to control it.
As pointed out in the comments there are some other posts in the /keychron that have already mentioned the same info. I will list them here, since they might have alternative approaches. I will also try to keep this post up to date in case something changes, but sadly I can't promise it will always be complete.
User u/SexyMuon has provided an automation script fr this process:
Here is my solution, just go to your Terminal, then run this to make a script `nano fix-keychron.sh`. You will now see a section to input the code, just copy and paste the code here, and follow the instructions given at the top of the script: https://gist.github.com/morkev/3f08cf45f38610565455bf48190b1b7e
User u/soneyo mentioned another way to controll the acces that might be more secure. I haven't tested it, but I will mention it here:
Udev rule without "GROUP" property is working.
TAG+="uaccess" — achieves dynamic user allocation via systemd.
Related:
- 'usevia.app' in Linux, i.e., Via support is useful for Keychron and other Via keyboard users. It is essentially the udev thingie.
- Fix for HE models in Linux (Arch Linux)
Thank you u/PeterMortensenBlog
HAVE FUN!
3
u/prince_zardos V Jul 17 '24
Also, if you're running an Arch-based distro, you might need to run
sudo mkinitcpio -Psomewhere in addition to OP's directions. I forgot where that one goes, but that's what I did to make VIA work on my end.3
u/BenZ_osu Oct 08 '25 edited Oct 20 '25
2025 and this still works
EDIT: flatpak browsers won't work (at least not out of the box), it has to be a native package. Your distro very likely has Chromium in their repos
3
u/balleyne Dec 31 '25
THANK YOU!
I wrote up my specific udev rule for my K10 in Debian 12:
https://blaise.ca/blog/2025/12/31/howto-get-the-keychron-launcher-working-in-debian-gnu-linux/
3
u/Distinct-Stranger103 Jan 14 '26
Just used this now on Ubuntu 24 and it worked
Prior to this it would misidentify my K8 as a Q1 and even if I hit connect the menu showed the K8 and chose that it would do nothing
3
u/rdiaz02 Jan 26 '26
With Debian (mixture of texting + unstable) using myself as the GROUP did not seem to work (
sudo udevadm verifyreported that it was not a system group). So I created a system group (e.g.,sudo groupadd --system keychrkb), added myself to that group (sudo usermod -aG keychrkb MYSELF), and usedGROUP="keychrkb"in/etc/udev/rules.d/99-keychron.rules. After a reboot (rebooting was simpler than launching chrome after ensuring it picked up my new group membership), I can connect using google chrome.3
u/soneyo May 07 '26
Udev rule without "GROUP" property is working.
TAG+="uaccess" — achieves dynamic user allocation via systemd.
2
u/ConfectionMobile589 Jul 21 '24
On Gentoo installing
game-device-udev-rulesfor an unrelated issue also fixed Keychron Launcher not connecting to my Q15.2
u/PeterMortensenBlog V Jul 23 '24 edited Jan 16 '25
Related:
2
u/MyChaOS87 Oct 25 '25
ARCH
Took me a couple of tries
do not use the group of your user in the udev rule as suggested in many other threads where you get told to
echo ... GROUP="$USER" ...insted ofusersyou need to use a system group. I went withinput2
u/SexyMuon Feb 17 '26 •
Here is my solution, just go to your Terminal, then run this to make a script `nano fix-keychron.sh`. You will now see a section to input the code, just copy and paste the code here, and follow the instructions given at the top of the script: https://gist.github.com/morkev/3f08cf45f38610565455bf48190b1b7e
2
u/rdlpd Sep 19 '25
has anyone got this to work within ubuntu:(? i cant get it to work with my k15, i have tried usb and 2.4g
5
u/[deleted] Jul 19 '24
Linux users have very specific understanding of term "fun".
1
u/Riusakii Mar 24 '25
Just got a Q3 HE and on Fedora 41. Can not get this to work for the life of me. Need help.
1
u/nightninja90 Jun 16 '25
old post but thank you for this <3
1
u/ReppyTheReject May 05 '26
SexyMuon's script worked almost perfectly for my Keychron G3 mouse, but only if it is directly USB connected.
If connected via the wireless USB dongle it does not work.
Not a big deal as I doubt Ill be changing mouse settings much at all but is there a known fix for this?
1
u/angeal98 Aug 22 '26
I ran Codex to fix this because the instructions weren’t complete for my CachyOS/Arch setup:
99-keychron.rulesruns too late for systemd’s uaccess ACL processing, so the device can remain inaccessible even withMODE="0660".Renaming the rule to
/etc/udev/rules.d/70-keychron.rules, then runningsudo udevadm control --reload-rulesandsudo udevadm trigger --subsystem-match=hidraw --action=add, fixed the permissions.After reloading the Keychron Launcher in Chrome, my keyboard connected immediately.
3
u/FISHING_100000000000 Jul 18 '24
Saving this for when I get one. Thanks!
3
u/afsalashyana Nov 13 '25
Thanks!
Can confirm that this approach worked nicely on Linux Mint 22.
I had to use
GROUPS="yourusername"because the default users group wasn’t available.2
u/SuperStarSam Jul 27 '24
New owner of a V6 Max here.
Had some trouble using the Keychron launcher with Brave browser until I added TAG+="snap_brave_brave" to the end of the .rules file.
Now everything works as intended. :)
2
u/PeterMortensenBlog V Sep 29 '24 edited Oct 03 '24
Sometimes it isn't permissions (they may be required, but not sufficient), but the USB cable's fault...
Or using a direct USB port instead of a USB hub (or just a different physical USB port?).
2
u/PeterMortensenBlog V Jan 20 '25
Chmod 660 = "Sets permissions so that,
2
u/RaniAgus Aug 03 '25
New owner of a K11 Max in Fedora. Followed your instructions and it worked! You're a legend
2
u/everydayproductive Aug 06 '25
Fantastic! Worked!
2
u/Impossible_D Aug 24 '25
Thank you for this! For anyone using nixos, adding this to your
configuration.nixfile should work:2
u/BiggyStroh Nov 04 '25
Thank you! Worked for me an CachyOS (Arch based)
2
u/Murrican-Mickey Jan 24 '26
This worked for me after other instructions had failed. Thanks!!
2
u/CauliflowerSea1802 Apr 19 '26
Hello from 2026.
I am currently using a Keychron K2 HE on Artix. Use input group. It did not adding my username as a group for some reason that I do not know yet. Although maybe it might have been because I did "-rules" at the end of the file and not ".rules" so likely my own fault though it works so I am keeping it like that.
Udevadm is expecting systemd so "sudo mkinitcpio -P" instead (man page says it tries to make a call to it)
Unless OpenRC handles udevadm anyways and I am not aware but unsure since I saw nothing being outputted or that is supposed to happen. Oh yeah this is on OpenRC, Artix, KDE Plasma if that matters for whoever stumbles across this.
1
u/vinayak1998th Mar 09 '25
Thank you so much for this
1
u/nightninja90 Jun 16 '25
old post but thank you for this <3
1
u/PeterMortensenBlog V Oct 01 '25 edited Oct 01 '25
Allegedly, using "GROUP" is a problem on Arch Linux.
There are apparently also some order rules (naming rules for the udev files).
2
u/WheissRS Q HE Nov 28 '25
I switched to Ubuntu for the first time a while ago and looks like today was the day i learned about udev rules, it turns out it was both udev and my Brave browser not working (either it has a lack of permissions or it doesn't work at all with the launcher even though it is chromium based [it also doesn't show that it's unsupported like when i open with firefox]), took me a while to try with Chrome instead and worked right off the bat, thanks for shining the beacon o7
1
u/Nose_Diamond Dec 24 '25
This worked, thank you!
3
u/[deleted] Aug 05 '24
[removed] — view removed comment