[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 πŸ˜„
No description
39 Replies
TyperAI
TyperAIβ€’2mo ago
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:
bt_name = "Your Keyboard Name";

bt_name = "Your Keyboard Name";

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! πŸŽ‰
davidianstyle
davidianstyleOPβ€’2mo ago
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.
Kitte
Kitteβ€’2mo ago
have you changed it on the corne.conf when in visual code? there you can type CONFIG_ZMK_KEYBOARD_NAME="your name" @davidianstyle
davidianstyle
davidianstyleOPβ€’2mo ago
Yes, I tried that as well but still no luck
No description
davidianstyle
davidianstyleOPβ€’2mo ago
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
Kitte
Kitteβ€’2mo ago
try that and connect it again
davidianstyle
davidianstyleOPβ€’2mo ago
No dice - still just says "Corne"
No description
Kitte
Kitteβ€’2mo ago
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
Kitte
Kitteβ€’2mo ago
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...
Kitte
Kitteβ€’2mo ago
about 2:30 in
davidianstyle
davidianstyleOPβ€’2mo ago
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
Kitte
Kitteβ€’2mo ago
yeah, i dont think so either, since the hesitation
mister_crab
mister_crabβ€’2mo ago
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
Unknown Userβ€’2mo ago
Message Not Public
Sign In & Join Server To View
mister_crab
mister_crabβ€’2mo ago
That was more the direction I was thinking I've always been able to change names on my computer
davidianstyle
davidianstyleOPβ€’2mo ago
Ha, that was way simpler and worked - thanks!
mister_crab
mister_crabβ€’2mo ago
πŸ˜‚
davidianstyle
davidianstyleOPβ€’2mo ago
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.
No description
Unknown User
Unknown Userβ€’2mo ago
Message Not Public
Sign In & Join Server To View
davidianstyle
davidianstyleOPβ€’2mo ago
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:
# This file generates the GitHub Actions matrix
# For simple board + shield combinations, add them
# to the top level board and shield arrays, for more
# control, add individual board + shield combinations to
# the `include` property, e.g:
#
# board: [ "nice_nano_v2" ]
# shield: [ "corne_left", "corne_right" ]
# include:
# - board: bdn9_rev2
# - board: nice_nano_v2
# shield: reviung41
#
---
include:
- board: nice_nano_v2
shield: corne_left nice_view_adapter nice_view
- board: nice_nano_v2
shield: corne_right nice_view_adapter nice_view
# This file generates the GitHub Actions matrix
# For simple board + shield combinations, add them
# to the top level board and shield arrays, for more
# control, add individual board + shield combinations to
# the `include` property, e.g:
#
# board: [ "nice_nano_v2" ]
# shield: [ "corne_left", "corne_right" ]
# include:
# - board: bdn9_rev2
# - board: nice_nano_v2
# shield: reviung41
#
---
include:
- board: nice_nano_v2
shield: corne_left nice_view_adapter nice_view
- board: nice_nano_v2
shield: corne_right nice_view_adapter nice_view
Unknown User
Unknown Userβ€’2mo ago
Message Not Public
Sign In & Join Server To View
davidianstyle
davidianstyleOPβ€’2mo ago
# Name the keyboard
CONFIG_ZMK_KEYBOARD_NAME="David's Corne"

# Uncomment the following line to enable deep sleep
# CONFIG_ZMK_SLEEP=y

# Uncomment the following line to increase the keyboard's wireless range
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

# Enable eager debouncing
CONFIG_ZMK_KSCAN_DEBOUNCE_PRESS_MS=1
CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=7

# Uncomment the following line to enable USB Logging (this increases power usage by a significant amount, turn it off when not in use)
# CONFIG_ZMK_USB_LOGGING=y
# Name the keyboard
CONFIG_ZMK_KEYBOARD_NAME="David's Corne"

# Uncomment the following line to enable deep sleep
# CONFIG_ZMK_SLEEP=y

# Uncomment the following line to increase the keyboard's wireless range
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

# Enable eager debouncing
CONFIG_ZMK_KSCAN_DEBOUNCE_PRESS_MS=1
CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=7

# Uncomment the following line to enable USB Logging (this increases power usage by a significant amount, turn it off when not in use)
# CONFIG_ZMK_USB_LOGGING=y
Unknown User
Unknown Userβ€’2mo ago
Message Not Public
Sign In & Join Server To View
davidianstyle
davidianstyleOPβ€’2mo ago
I'll give it a shot with no single quote btw - trying with in build.yaml:
cmake-args:
-DCONFIG_ZMK_KEYBOARD_NAME=\"Davids_Corne\"
cmake-args:
-DCONFIG_ZMK_KEYBOARD_NAME=\"Davids_Corne\"
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* file
Unknown User
Unknown Userβ€’2mo ago
Message Not Public
Sign In & Join Server To View
davidianstyle
davidianstyleOPβ€’2mo ago
ah, I see I'll try that next if removing the single quote doesn't work
Unknown User
Unknown Userβ€’2mo ago
Message Not Public
Sign In & Join Server To View
davidianstyle
davidianstyleOPβ€’2mo ago
most languages I've worked with, single quotes inside double quotes and double quotes inside single quotes usually work with no problem
davidianstyle
davidianstyleOPβ€’2mo ago
GitHub
GitHub - davidianstyle/corne-wireless-view-zmk-config
Contribute to davidianstyle/corne-wireless-view-zmk-config development by creating an account on GitHub.
davidianstyle
davidianstyleOPβ€’2mo ago
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:
# This file generates the GitHub Actions matrix
# For simple board + shield combinations, add them
# to the top level board and shield arrays, for more
# control, add individual board + shield combinations to
# the `include` property, e.g:
#
# board: [ "nice_nano_v2" ]
# shield: [ "corne_left", "corne_right" ]
# include:
# - board: bdn9_rev2
# - board: nice_nano_v2
# shield: reviung41
#
---
include:
- board: nice_nano_v2
shield: corne_left nice_view_adapter nice_view
cmake-args:
- DCONFIG_ZMK_KEYBOARD_NAME=\"Davids_Corne\"
- board: nice_nano_v2
shield: corne_right nice_view_adapter nice_view
cmake-args:
- DCONFIG_ZMK_KEYBOARD_NAME=\"Davids_Corne\"
# This file generates the GitHub Actions matrix
# For simple board + shield combinations, add them
# to the top level board and shield arrays, for more
# control, add individual board + shield combinations to
# the `include` property, e.g:
#
# board: [ "nice_nano_v2" ]
# shield: [ "corne_left", "corne_right" ]
# include:
# - board: bdn9_rev2
# - board: nice_nano_v2
# shield: reviung41
#
---
include:
- board: nice_nano_v2
shield: corne_left nice_view_adapter nice_view
cmake-args:
- DCONFIG_ZMK_KEYBOARD_NAME=\"Davids_Corne\"
- board: nice_nano_v2
shield: corne_right nice_view_adapter nice_view
cmake-args:
- DCONFIG_ZMK_KEYBOARD_NAME=\"Davids_Corne\"
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
Unknown Userβ€’2mo ago
Message Not Public
Sign In & Join Server To View
davidianstyle
davidianstyleOPβ€’2mo ago
Ok, added it to the end of my build.yaml:
# This file generates the GitHub Actions matrix
# For simple board + shield combinations, add them
# to the top level board and shield arrays, for more
# control, add individual board + shield combinations to
# the `include` property, e.g:
#
# board: [ "nice_nano_v2" ]
# shield: [ "corne_left", "corne_right" ]
# include:
# - board: bdn9_rev2
# - board: nice_nano_v2
# shield: reviung41
#
---
include:
- board: nice_nano_v2
shield: corne_left nice_view_adapter nice_view
cmake-args:
- DCONFIG_ZMK_KEYBOARD_NAME=\"Davids_Corne\"
- board: nice_nano_v2
shield: corne_right nice_view_adapter nice_view
cmake-args:
- DCONFIG_ZMK_KEYBOARD_NAME=\"Davids_Corne\"
- board: nice_nano_v2
shield: settings_reset
# This file generates the GitHub Actions matrix
# For simple board + shield combinations, add them
# to the top level board and shield arrays, for more
# control, add individual board + shield combinations to
# the `include` property, e.g:
#
# board: [ "nice_nano_v2" ]
# shield: [ "corne_left", "corne_right" ]
# include:
# - board: bdn9_rev2
# - board: nice_nano_v2
# shield: reviung41
#
---
include:
- board: nice_nano_v2
shield: corne_left nice_view_adapter nice_view
cmake-args:
- DCONFIG_ZMK_KEYBOARD_NAME=\"Davids_Corne\"
- board: nice_nano_v2
shield: corne_right nice_view_adapter nice_view
cmake-args:
- DCONFIG_ZMK_KEYBOARD_NAME=\"Davids_Corne\"
- board: nice_nano_v2
shield: settings_reset
I'll load that on as soon as the build completes
Unknown User
Unknown Userβ€’2mo ago
Message Not Public
Sign In & Join Server To View
davidianstyle
davidianstyleOPβ€’2mo ago
So, I first load the settings_reset.uf2 on and then the correct firmware?
davidianstyle
davidianstyleOPβ€’2mo ago
That worked! Thank you @Dave uRrr πŸ™πŸ½ and thank you to @Kitte @Shiny @mister_crab for offering your suggestions.
No description
Unknown User
Unknown Userβ€’2mo ago
Message Not Public
Sign In & Join Server To View
davidianstyle
davidianstyleOPβ€’2mo ago
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
# Name the keyboard
CONFIG_ZMK_KEYBOARD_NAME="David's Corne"
...
# Other settings
# Name the keyboard
CONFIG_ZMK_KEYBOARD_NAME="David's Corne"
...
# Other settings
2. Create a reset firmware by editing build.yaml:
# For simple board + shield combinations, add them
# to the top level board and shield arrays, for more
# control, add individual board + shield combinations to
# the `include` property, e.g:
#
# board: [ "nice_nano_v2" ]
# shield: [ "corne_left", "corne_right" ]
# include:
# - board: bdn9_rev2
# - board: nice_nano_v2
# shield: reviung41
#
---
include:
- board: nice_nano_v2
shield: corne_left nice_view_adapter nice_view
- board: nice_nano_v2
shield: corne_right nice_view_adapter nice_view
- board: nice_nano_v2
shield: settings_reset
# For simple board + shield combinations, add them
# to the top level board and shield arrays, for more
# control, add individual board + shield combinations to
# the `include` property, e.g:
#
# board: [ "nice_nano_v2" ]
# shield: [ "corne_left", "corne_right" ]
# include:
# - board: bdn9_rev2
# - board: nice_nano_v2
# shield: reviung41
#
---
include:
- board: nice_nano_v2
shield: corne_left nice_view_adapter nice_view
- board: nice_nano_v2
shield: corne_right nice_view_adapter nice_view
- board: nice_nano_v2
shield: settings_reset
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
Unknown Userβ€’4w ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server