pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later.
https://pqrs.org/osx/karabiner/
The Unlicense
18.58k stars 835 forks source link

Driver version is mismatched #3072

Open asmodeus812 opened 2 years ago

asmodeus812 commented 2 years ago

Hi I am having the following problem with the latest version of Karabiner Elements. I am receiving the following warning message which says that the driver version is mismatched.

[virtual_hid_device_service] driverversion is mismatched : Karabiner-DriverKit-VirtualHIDDevieClient expected 10600, actual dext : std:nullopt.

The version of MOnterey is 12.1 currently installed on my macbook pro.

MuhammedZakir commented 2 years ago

In EventViewer > System Extensions (iirc), you can see installed extensions and their versions. What does it show?

Have you tried reinstalling?

Bytamine commented 2 years ago

Same for me. I've tried reinstalling, but no luck. Here is what System Extensions shows

--- com.apple.system_extension.network_extension
enabled active  teamID  bundleID (version)  name    [state]
*   *   PXPZ95SK77  com.paloaltonetworks.traps.networkextension (7.6.2/2310)    TrapsNetworkExtension   [activated enabled]
*   *   PXPZ95SK77  com.paloaltonetworks.GlobalProtect.client.extension (5.2.4-21/1)    GlobalProtectExtension  [activated enabled]
--- com.apple.system_extension.endpoint_security
enabled active  teamID  bundleID (version)  name    [state]
*   *   PXPZ95SK77  com.paloaltonetworks.traps.securityextension (7.6.2/2310)   TrapsSecurityExtension  [activated enabled]
MuhammedZakir commented 2 years ago

Try this:

  1. Install Karabiner-Elements 14.4.22 .
  2. Download Karabiner-Dext: https://github.com/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice/blob/main/dist/Karabiner-DriverKit-VirtualHIDDevice-1.30.0.pkg.
  3. Install the dext.
  4. Open Terminal.app and run:
    /Applications/.Karabiner-VirtualHIDDevice-Manager.app/Contents/MacOS/Karabiner-VirtualHIDDevice-Manager activate

If the above command didn't work, replace activate with forceActivate.

Bytamine commented 2 years ago

Where can I find 14.4.22? The latest I can find is 14.4.0.

Tried the dext with 14.4.0


[~]: /Applications/.Karabiner-VirtualHIDDevice-Manager.app/Contents/MacOS/Karabiner-VirtualHIDDevice-Manager forceActivate
activation of org.pqrs.Karabiner-DriverKit-VirtualHIDDevice is requested
request of org.pqrs.Karabiner-DriverKit-VirtualHIDDevice is failed with error: The operation couldn’t be completed. (OSSystemExtensionErrorDomain error 10.)```
MuhammedZakir commented 2 years ago

@Bytamine: Karabiner's driver extension seems to be blocked. Happens if there is a security policy preventing unauthorized extensions -- usually found in company-computers, or if you installed a security-app.

Edit:

Where can I find 14.4.22? The latest I can find is 14.4.0.

14.4.22 is a beta. You will have to explicitly check for that in Karabiner-Elements pereferences, or you can download it from "Releases" of this repo.

Bytamine commented 2 years ago

Yeah, it's a company-computer. Thanks for your help, I will try to find alternative ways to remap the keys.

MuhammedZakir commented 2 years ago

Yeah, it's a company-computer. Thanks for your help, I will try to find alternative ways to remap the keys.

Some other tools that should work for you are:

  1. hidutil: macOS-native remapping tool. See https://github.com/pqrs-org/Karabiner-Elements/issues/3082#issuecomment-1137009173.
  2. skhd: https://github.com/koekeishiya/skhd.
  3. Hammerspoon or BetterTouchTool.
dimitrieh commented 2 years ago

@MuhammedZakir I think I have the same problem here. Company stated nothing is blocking it. Since then I have updated to the beta version, but nothing worked I am afraid.

CleanShot 2022-07-13 at 17 13 52@2x
[2022-07-13 16:50:10.235] [warning] [virtual_hid_device_service] driver_version_ is mismatched: Karabiner-DriverKit-VirtualHIDDeviceClient expected: 10600, actual dext: std::nullopt
[2022-07-13 16:50:10.235] [warning] [virtual_hid_device_service] driver_version_ is mismatched: Karabiner-DriverKit-VirtualHIDDeviceClient expected: 10600, actual dext: std::nullopt
/Applications/.Karabiner-VirtualHIDDevice-Manager.app/Contents/MacOS/Karabiner-VirtualHIDDevice-Manager activate
activation of org.pqrs.Karabiner-DriverKit-VirtualHIDDevice is requested
request of org.pqrs.Karabiner-DriverKit-VirtualHIDDevice is failed with error: The operation couldn’t be completed. (OSSystemExtensionErrorDomain error 10.)

/Applications/.Karabiner-VirtualHIDDevice-Manager.app/Contents/MacOS/Karabiner-VirtualHIDDevice-Manager forceActivate
activation of org.pqrs.Karabiner-DriverKit-VirtualHIDDevice is requested
request of org.pqrs.Karabiner-DriverKit-VirtualHIDDevice is failed with error: The operation couldn’t be completed. (OSSystemExtensionErrorDomain error 10.)
MuhammedZakir commented 2 years ago

I can't do anything about it. :-(

You can find a list of installed system extensions either in Karabiner-Elements, or in Karabiner-EventViewer. Check that to see whether there is any security-related extensions. For an example output, see https://github.com/pqrs-org/Karabiner-Elements/issues/3072#issuecomment-1148249029.

Edit: An alternative way to find the list of system extension is to run systemextensionsctl list in terminal. Edit-2: If you are using a Mac with Apple silicon, then see https://support.apple.com/en-in/guide/mac-help/mchl768f7291/mac. Note that the system extension mentioned in it is about kext, but Karabiner uses dext. So it is highly unlikely to work, however, you can give it a try if nothing else works.

dimitrieh commented 2 years ago

@MuhammedZakir thanks for the note here, much appreciated! I have resolved the problem for now with BetterTouchTool 😅. This added up to several lost hours of productivity 🥲.

M1 mac here btw

systemextensionsctl list

0 extension(s)

rspi commented 2 years ago

I had the same issue after an upgrade.

MuhammedZakir solution with installing Karabiner-Dext and restarting did the trick!

dimitrieh commented 1 year ago

I have found https://hyperkey.app/ solves my needs together with https://www.raycast.com/

jgspratt commented 1 year ago

Same issue after upgrading to Ventura 13.5.2 with v14.12.0 and beta v14.12.21.

jgspratt commented 1 year ago
# sudo /Applications/.Karabiner-VirtualHIDDevice-Manager.app/Contents/MacOS/Karabiner-VirtualHIDDevice-Manager activate
Password:
activation of org.pqrs.Karabiner-DriverKit-VirtualHIDDevice is requested
request of org.pqrs.Karabiner-DriverKit-VirtualHIDDevice is finished
request of org.pqrs.Karabiner-DriverKit-VirtualHIDDevice is completed

Reloaded Karabiner here and got the same driver mismatch issue, so I tried again with forceActivate

# sudo /Applications/.Karabiner-VirtualHIDDevice-Manager.app/Contents/MacOS/Karabiner-VirtualHIDDevice-Manager forceActivate
activation of org.pqrs.Karabiner-DriverKit-VirtualHIDDevice is requested
request of org.pqrs.Karabiner-DriverKit-VirtualHIDDevice is finished
request of org.pqrs.Karabiner-DriverKit-VirtualHIDDevice is completed

I got the package from https://github.com/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice/releases/tag/v2.6.0

I reloaded Karabiner again and I still get the following:

[2023-09-15 19:24:26.835] [info] [virtual_hid_device_service] io_service_client::async_start
[2023-09-15 19:24:26.835] [info] [virtual_hid_device_service] create service_monitor_
[2023-09-15 19:24:26.835] [info] [virtual_hid_device_service] service_monitor_->async_start()
[2023-09-15 19:24:26.835] [info] [virtual_hid_device_service] create service_monitor_
[2023-09-15 19:24:26.835] [info] [virtual_hid_device_service] service_monitor_->async_start()
[2023-09-15 19:24:26.959] [warning] [virtual_hid_device_service] driver_version_ is mismatched: Karabiner-DriverKit-VirtualHIDDeviceClient expected: 10700, actual dext: std::nullopt
[2023-09-15 19:24:26.959] [warning] [virtual_hid_device_service] driver_version_ is mismatched: Karabiner-DriverKit-VirtualHIDDeviceClient expected: 10700, actual dext: std::nullopt

I have uninstalled Karabiner and re-installed it several times. I have tried the beta. I get the prompt to go and allow the driver in System settings, and I do so, but then I get the prompt again. I even see on the install that it says the driver was successfully installed.

2023-09-15_19-13-38_Monosnap
adhigoel commented 12 months ago

If you're on a corporate laptop, it is likely your company's MDM settings blocking the driver from deployment. Take a look at https://github.com/pqrs-org/Karabiner-Elements/issues/2636#issuecomment-870819772