#How to define the layout for my Corne v2 5-Col?

1 messages · Page 1 of 1 (latest)

lucid quiver
#

I can no longer use this as my code won't compile:
chosen { zmk,matrix_transform = &five_column_transform; };

I've seen this, and it compiles, but it screws up my layout:
chosen { zmk,physical-layout = &foostan_corne_5col_layout;};

I've had a look at some info around dtsi, but am not sure if that is the right way to proceed.

Is there a simple correct way of updating my code, or is there a more involved method now?
Is this on account of the Corne v4 release?

hoary snow
#

Setting a chosen physical layout should work. Can you link your repository?

#

Corne v4 IIRC is wired only and doesn't support ZMK (or ZMK doesn't support it, depending on your perspective)

lucid quiver
hoary snow
#

Do you have a link to the version where you tried setting chosen matrix transform but it failed to compile? It should build if you don't have ZMK Studio enabled.
ZMK Studio needs physical layout.

#

No need to dig for it if you can't easily find it.

#

Can you try removing the include on line 10 and replacing the chosen node with

/ {
    chosen {
        zmk,physical-layout = &foostan_corne_5col_layout;
    };
};
lucid quiver
#

I've got all 3 in the corne.keymap with some commented out
chosen {
//zmk,physical-layout = &foostan_corne_5col_layout; // from the new version from tyeractive, tho seems to be for corne v4?
zmk,matrix_transform = &corne_v2_5col_transform;
//zmk,matrix_transform = &five_column_transform; // old style, doesn't compile anymore
};

hoary snow
#

If I'm being honest config/corne_v2_5col_transform.dtsi feels like a guess made by AI/LLM, sorry if it's not.

#

That definitely wouldn't work

lucid quiver
hoary snow
#

Ah I'm not sure how keymap editor interacts with physical layouts

#

Probably best to ask the author

lucid quiver
#

100% correct on the dtsi content, stopped pursuing that one, but can pick it up again if that's going to be the way forward.
So you're suggesting that regardless of the keymap editor is showing the board it should work on the actual board?

hoary snow
#

If you don't use ZMK Studio, setting /chosen/zmk,matrix-transform to &five_column_transform should still build

#

Yes, it should behave correctly on the actual board. Just keymap editor not taking account the keys (or it's showing the full keyboard but at runtime it'll only use the 5 columns??)

lucid quiver
#

zmk,matrix_transform = &five_column_transform; doesn't compile

#

it used to

hoary snow
#

What's the error message?

lucid quiver
#

let me run the compile now, back in 3

hoary snow
#

I think you can just ignore the most outer columns in keymap editor and the rest should work as expected if you set zmk,physical-layout = &foostan_corne_5col_layout;.
Just an assumption, not 100% sure.

lucid quiver
lucid quiver
#

I've got my old firmware I can flash to it if it doesn't work, so worth a shot