Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swapping CTRL + FN #40

Closed
obsoleszenz opened this issue May 8, 2024 · 4 comments
Closed

Swapping CTRL + FN #40

obsoleszenz opened this issue May 8, 2024 · 4 comments

Comments

@obsoleszenz
Copy link

I'm currently trying to swap the fn and ctrl keys on my framework 13 amd. I was able to map FN to CTRL with
ectool raw 0x3E0C d1,d1,b2,b2,w14 but wasnt able to remap ctrl to fn. Is there any trick?

@DHowett
Copy link
Contributor

DHowett commented May 8, 2024

wasnt able to remap ctrl to fn

What did you try?

@obsoleszenz
Copy link
Author

wasnt able to remap ctrl to fn

What did you try?

Looked for the SCANCODE_FN which is 0x0ff so i tried ectool raw 0x3E0C d1,d1,b2,b2,w255 which didnt work though. But i just found out that my uefi has an option to swap fn and ctrl, so that works. But am wondering if theres an ec command to do this?

@DHowett
Copy link
Contributor

DHowett commented May 8, 2024

The thing about host command 3E0C is that it requires a key matrix position and a new scancode. Since you are targeting a different key (the one labelled ctrl), you will need to update the two parameters here:

                         .--.--- here
                         v  v
ectool raw 0x3e0c d1,d1,b2,b2,wFF

...to match the row and column (in that order, in hex!) of the key labelled ctrl. You can figure out where that is here.

Instead of "2, 2" that would be "1, c" (row 1, column 12).

ectool raw 0x3e0c d1,d1,b1,bc,wff

But in this case, you should just use the firmware option for it. :)

@obsoleszenz
Copy link
Author

The thing about host command 3E0C is that it requires a key matrix position and a new scancode. Since you are targeting a different key (the one labelled ctrl), you will need to update the two parameters here:

                         .--.--- here
                         v  v
ectool raw 0x3e0c d1,d1,b2,b2,wFF

...to match the row and column (in that order, in hex!) of the key labelled ctrl. You can figure out where that is here.

Instead of "2, 2" that would be "1, c" (row 1, column 12).

ectool raw 0x3e0c d1,d1,b1,bc,wff

But in this case, you should just use the firmware option for it. :)

Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants