r/Keychron • u/burner-miner • May 05 '25
PSA: Updating firmware in Linux
As the official support and tutorial never mention Linux, and the solution was only indirectly hinted at by u/PeterMortensenBlog in a comment months ago, I thought to make a post for people looking for the solution to a seemingly endless flashing process on Linux.
The solution is dfu-util, the utility the launcher web-app actually uses behind the scenes, and with it installed it takes maybe 20 seconds.
It is also useful to check if the keyboard is in the correct mode after connecting via cable and holding ESC. Run dfu-util -l in a console and it should show a bunch of devices and random numbers.
2
u/Standard_Mousse6323 Nov 26 '25
I'm as new as it gets when it comes to Linux. Installed it yesterday and have a basic understanding of how to move about, but the terminal is overwhelming. Not only are there a ton of commands, there are modifiers and other variables beyond "apt install VLC" which is basically the only command I know lol. I would appreciate if someone could simply put the installation instructions for someone coming from 20+ years of windows. I have a keychron V6 Max and hadn't been able to update the 4 macro keys from the website (can't remember it's name). There's some mention of json files but that just raised more questions for me.
Ideally, there's a .deb file I can obtain and run that, or even an explanation of what the command line is for updating its firmware, where I get the file(s) and what each part of the command is doing.
I grew up in the DOS era so have a basic understanding of how that works, but the file system is different and there's a whole new set of vocabulary and grammar to learn, if you catch my drift.
Thank you
1
u/burner-miner May 05 '25
Usual firmware disclaimers aside, the main reason one might want to update is for the debounce config, which is a on-board solution for double-presses which can replace software solutions and is portable.
1
u/PeterMortensenBlog V May 05 '25 edited May 05 '25
To be more specific, something like the following to flash from the command line on Linux (with the keyboard in flash/bootloader mode):
File "keychron_v6_iso_encoder_default.bin" in this example is the standard name (as produced by compiling from source, with the "default" keymap (not "via"; those have been wiped out)) for the V6 (ISO knob variant).
More parameters enable hard flashing (for example, used in this Keychron support article).
It is expected to work on Windows and Mac as well
As dfu-util is installed when QMK Toolbox and similar tools are installed, it is also expected to work on the Windows and Mac command line. File
dfu-util.exeordfu-util"just" needs to be located, etc.1
u/berglh Q Pro Nov 30 '25 edited Nov 30 '25
I just bought the Kechron K3 V3 and can't get it to update the firmware. It just stalls on the firmware update page (Ubuntu 25.04 with latest Chrome).
I can configure the keyboard using the launcher app just fine, so definitely something up with the firmware update tool - either failing to download/start or failing to find the device in what I guess is web assembly.
Update
Looking at Dev tools application logs:
This appears to be an issue with Chrome security blocking access to the DMU device in raw mode, I guess this is a Chrome thing for now. I'm guessing it would work fine on Windows/macOS.
1
u/prince_zardos V May 06 '25
I used
qmk flash filename.binwhen I flashed my V6 to a newer firmware version on Keychron's website. I forget whether I used the-kmparameter to specify a keymap file but either way I just used the default keymap from the repository.