mishoo/exorcise-copilot

Turn the Copilot key into CTRL (for Linux)

C++

8

2 commits

updated Jun 7, 2025

See the code

See what people are saying

SourceMessageScoreDate

The Copilot+ PC brand is dead

I have a laptop with a copilot key, this maps it to right Ctrl on Linux. How well it works depends on how your specific keyboard implements the Shift+Meta+F23 keypress so your mileage may vary. https://github.com/mishoo/exorcise-copilot

0

Sep 26, 2026

README

Copilot Key Exorciser for Linux - turn it back into a proper CTRL

Edit copilot.cpp and make sure DEVICE_PATH points to the correct input
device for your laptop keyboard. Then:

    make
    sudo setkeycodes 6e 193
    sudo ./exorcise-copilot

If it works, you're in luck - arrange for it to run at boot time.

Combinations involving left Shift/Meta + right Ctrl will work, but not
perfectly. At least on my hardware (ASUS M5606WA) I have the following
issues (where by MOD I mean either Left Shift, Left Meta, or both, and
by CTRL I mean the damned Copilot key):

- MOD↓ CTRL↓ — if you press both at the exact same time, it's possible
  that only Right Ctrl will register.

- MOD↓ CTRL↓ CTRL↑ — even if your MOD is still physically down, the
  hardware emits a MOD↑ event when you release CTRL, and we let it go
  through; the reason for that is that there will no longer be a MOD↑
  event when you actually release it (you can use evtest to check it
  out), and it would remain "down", as far as software is concerned,
  until you press and release it again. This is so horrible that it
  took me quite some time to even write it down.

Remember folks, I've been saying this for 20 years: Microsoft is evil.

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

Contributors

mishoo

2 commits

mishoo/exorcise-copilot

Turn the Copilot key into CTRL (for Linux)

C++

8

2 commits

updated Jun 7, 2025

See the code

See what people are saying

SourceMessageScoreDate

The Copilot+ PC brand is dead

I have a laptop with a copilot key, this maps it to right Ctrl on Linux. How well it works depends on how your specific keyboard implements the Shift+Meta+F23 keypress so your mileage may vary. https://github.com/mishoo/exorcise-copilot

0

Sep 26, 2026

README

Copilot Key Exorciser for Linux - turn it back into a proper CTRL

Edit copilot.cpp and make sure DEVICE_PATH points to the correct input
device for your laptop keyboard. Then:

    make
    sudo setkeycodes 6e 193
    sudo ./exorcise-copilot

If it works, you're in luck - arrange for it to run at boot time.

Combinations involving left Shift/Meta + right Ctrl will work, but not
perfectly. At least on my hardware (ASUS M5606WA) I have the following
issues (where by MOD I mean either Left Shift, Left Meta, or both, and
by CTRL I mean the damned Copilot key):

- MOD↓ CTRL↓ — if you press both at the exact same time, it's possible
  that only Right Ctrl will register.

- MOD↓ CTRL↓ CTRL↑ — even if your MOD is still physically down, the
  hardware emits a MOD↑ event when you release CTRL, and we let it go
  through; the reason for that is that there will no longer be a MOD↑
  event when you actually release it (you can use evtest to check it
  out), and it would remain "down", as far as software is concerned,
  until you press and release it again. This is so horrible that it
  took me quite some time to even write it down.

Remember folks, I've been saying this for 20 years: Microsoft is evil.

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

Contributors

mishoo

2 commits

Languages

C++

97.8%

Makefile

2.2%