[SOLVED] How to name my keyboard?
Hi, I just built my first Corne keyboard thanks to typeractive.xyz!
How do I rename my keyboard? I'd like it to show up as "David's Corne" in the bluetooth menu. I couldn't find any ZMK documentation of which configuration file I would need to modify and how to change the human readable name (nor any other unique identifiers for the keyboard).
Any help would be appreciated!
PS - I typed most of this on my new wireless split keyboard π
39 Replies
To rename your Corne keyboard for Bluetooth visibility, you'll need to modify the ZMK configuration file. Specifically, you'll be looking for the
dts
(Device Tree Source) file associated with your keyboard configuration.
Hereβs how to do it:
1. Locate Your Configuration Repository: If you haven't already, clone the ZMK configuration repository for your Corne keyboard. You can find the repository for your specific layout (6-column or 5-column) on GitHub.
2. Edit the Device Tree Source File: Open the corne.dts
file located in the boards/arm/
directory of your configuration repository.
3. Modify the Bluetooth Name: Look for the section that defines the Bluetooth settings. You should find a line that looks like this:
Change "Your Keyboard Name"
to "David's Corne"
.
4. Build Your Firmware: After making the change, save the file and build your firmware using the GitHub Actions in your repository. This will create a new firmware file with your updated Bluetooth name.
5. Flash the Firmware: Once the new firmware is built, follow the steps to flash it onto your nice!nano. This typically involves connecting the nice!nano to your computer, entering the bootloader mode, and dragging the new .uf2
file onto the NICENANO
drive.
After completing these steps, your keyboard should show up as "David's Corne" in the Bluetooth menu. Enjoy your new keyboard! πI cloned
https://github.com/typeractivexyz/corne-wireless-view-zmk-config
but I don't see a boards/arm/
directory, nor a corne.dts
file. Should I create the path and file?
I added the file in the path as instructed, rebuilt the firmware, and loaded it on. It didn't seem to change the name of the bluetooth keyboard.have you changed it on the corne.conf when in visual code? there you can type CONFIG_ZMK_KEYBOARD_NAME="your name"
@davidianstyle
Yes, I tried that as well but still no luck
Do I need to "forget bluetooth device"? I would've expected it would just change how it identifies itself so I didn't do anything else
try that and connect it again
No dice - still just says "Corne"
saw someone else change the shield in the build.yaml to what he wanted his board name to be
should say corne_left and corne_right, might be it but not sure
Joe Scotto
YouTube
How to Set Up ZMK Firmware From Scratch
This video should hopefully help you regardless of if you just want to build firmware for an existing board or create one entirely from scratch. We'll cover both matrix wiring and direct pin wiring along with keymaps, compiling, and flashing. ZMK heavily leverages GitHub Actions meaning everything is compiled remotely making it possible to compi...
about 2:30 in
Hm...I'll give that a shot but it's hard to imagine that's where the bluetooth name comes from since you can't use a space character in that
yeah, i dont think so either, since the hesitation
Pretty sure the shield name isn't related to the Bluetooth name
That just tells the compiler what version of ZMK to pull for your specific board.
Unknown Userβ’2mo ago
Message Not Public
Sign In & Join Server To View
That was more the direction I was thinking
I've always been able to change names on my computer
Ha, that was way simpler and worked - thanks!
π
Correction: That only seemed to work locally on that one computer which means it's not writing the name to the keyboard device itself π I tried connecting to my keyboard on a different computer and it's showing up as "Corne" again.
Unknown Userβ’2mo ago
Message Not Public
Sign In & Join Server To View
Hm, unfortunately, this didn't work either.
Where in the
build.yaml
file would I put this? Here's what I have in it currently:
Unknown Userβ’2mo ago
Message Not Public
Sign In & Join Server To View
Unknown Userβ’2mo ago
Message Not Public
Sign In & Join Server To View
I'll give it a shot with no single quote
btw - trying with in
build.yaml
:
makes it such that the GitHub Action only produces one firmware file corne_right nice_view_adapter nice_view-nice_nano_v2-zmk.uf2
and doesn't create the corresponding corne_left*
fileUnknown Userβ’2mo ago
Message Not Public
Sign In & Join Server To View
ah, I see
I'll try that next if removing the single quote doesn't work
Unknown Userβ’2mo ago
Message Not Public
Sign In & Join Server To View
most languages I've worked with, single quotes inside double quotes and double quotes inside single quotes usually work with no problem
here's the repo: https://github.com/davidianstyle/corne-wireless-view-zmk-config
GitHub
GitHub - davidianstyle/corne-wireless-view-zmk-config
Contribute to davidianstyle/corne-wireless-view-zmk-config development by creating an account on GitHub.
working on the
colemak-dh
branch
Removing single quote didn't work. Gonna try the cmake-args
the right way this time.
Just for posterity, here is my build.yaml
after adding cmake-args
:
Let me know if you see any issues with my yaml, but it passes a yaml validator so I'm assuming this is correct.Unknown Userβ’2mo ago
Message Not Public
Sign In & Join Server To View
Ok, added it to the end of my
build.yaml
:
I'll load that on as soon as the build completesUnknown Userβ’2mo ago
Message Not Public
Sign In & Join Server To View
So, I first load the
settings_reset.uf2
on and then the correct firmware?That worked! Thank you @Dave uRrr ππ½ and thank you to @Kitte @Shiny @mister_crab for offering your suggestions.
Unknown Userβ’2mo ago
Message Not Public
Sign In & Join Server To View
Yes, so it looks like the
CONFIG_ZMK_KEYBOARD_NAME
in corne.conf
is the right variable to be setting. Just needed to reset both boards first with your settings_reset.uf2
for it to take effect.
For those coming here looking for a tl;dr version of the solution:
1. Make sure /config/corne.conf
has CONFIG_ZMK_KEYBOARD_NAME
variable set
2. Create a reset firmware by editing build.yaml
:
3. Load settings_reset-nice_nano_v2-zmk.uf2
onto both boards
4. Load corne_left nice_view_adapter nice_view-nice_nano_v2-zmk.uf2
onto left board
5. Load corne_right nice_view_adapter nice_view-nice_nano_v2-zmk.uf2
onto right board
6. Done!Unknown Userβ’4w ago
Message Not Public
Sign In & Join Server To View