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.82k stars 838 forks source link

Conflict on K380 with Logitech Options+ #3551

Open cvladan opened 1 year ago

cvladan commented 1 year ago

I've found a problem with the Logitech Options+ software. When Karabiner Elements is enabled on the Logitech K380 keyboard, the Logitech software can't detect the keyboard at all. As a result, there will be no access to any settings on the keyboard.

image image

cvladan commented 1 year ago
image

Ah, Logitech... Due to your poorly implemented "Use F1, F2, etc. keys as standard function keys" option, you want me not to use Karabiner-Elements. A stupid answer, certainly.

What corporate idiots!

cvladan commented 1 year ago

Karabiner-Elements provides me with 8777759 essential things without which work is impossible, and Logitech Options+ only one single option that doesn't even work only because Logitech didn't implement the hardware shortcut key to toggle that option.

So, hm, let me think... Uh. Oh. The dilemma is really tough :)

vivacenontroppo commented 1 year ago

I keep trying and trying to make it work how I want but man... this sucks. You can modify keys in 3 places: settings -> keyboard; karabiner-elements, logi-options+ and each has it's own use. Best what I came up with is not modify modifier keys in mac settings and then adjust the fn-holds with karabiner and try to use logic opinions for some extras on this four keys, because sometimes it works despite saying it's inactive.

cvladan commented 1 year ago

Logitech became really sloppy company... they expect us to refrain from using Karabiner Elements, which is arguably the most essential application for me on macOS.

However, I have successfully customized the Fn settings by implementing automated process using Hammerspoon. I've created a Lua script specifically designed for this purpose. The script detects when the K380 keyboard is connected to the computer and promptly performs the following actions:

  1. Switches Karabiner Elements to a profile that does not involve remapping the K380 keyboard, thereby enabling direct access to the keyboard.
  2. Utilizes an external configuration tool to set the Fn keys to function as Fn keys. The tool I use is https://github.com/faust93/k380-macos.
  3. Restores the original profile in Karabiner Elements, which includes remapping the K380 keyboard.

If someone needs this Hammerspoon lua script, simply ask for it and I will provide it.

gareebnavas commented 1 year ago

Same problem here. Interestingly it detects my Mx Mini fine while Karabiner is running, but not my K380.

Looks like the issue is during initial detection time in my case. So, I'm doing this workaround for now - I first quit Karabiner, then let the Options+ detect the K380 and then reopen Karabiner. After that both works fine for me for a while or until next restart.

Hopefully logitech will fix this.

cvladan commented 1 year ago

I work on two computers, so the K380 resets every time I switch back to macOS, and manually turning on/off Karabiner is a hassle. That's why I made a Hammerspoon script.

mikom92 commented 1 year ago

Guys, I think I've found the solution for Logi Options+ (on "regular" Logi Options both my MX Vertical and K380 worked fine btw) without having to get rid of Karabiner.

After discovering that the issue was caused by Karabiner, I was looking for an option to still be able to use it, and still get the Options+ to work.

This is what did the trick for me:

  1. Go to Karabiner's settings -> Devices
  2. Enable "Treat as built-in keyboard" for the device not being discovered by O+
  3. Reboot Karabiner and Logi Options+  I've also found my K380 being duplicated in Options+, most probably after previous tests, but forgetting it in Macbook's Bluetooth settings, deleting in O+ and re-pairing again fixed this. Hope this will be helpful for someone! :)
g6ai commented 1 year ago

@mikom92 I have tried to reduplicate your steps. Although I have seen two K380 profiles in Options+ as you mentioned, sadly after modifying Karabiner settings, deleting K380 in O+ app and re-pairing K380, the problem is not fixed for me. Looking forward to further tests on this

pak0426 commented 6 months ago

@mikom92 i solved this problem with your solutions thanks!

jinzhi666 commented 1 month ago

Logitech became really sloppy company... they expect us to refrain from using Karabiner Elements, which is arguably the most essential application for me on macOS.

However, I have successfully customized the Fn settings by implementing automated process using Hammerspoon. I've created a Lua script specifically designed for this purpose. The script detects when the K380 keyboard is connected to the computer and promptly performs the following actions:

  1. Switches Karabiner Elements to a profile that does not involve remapping the K380 keyboard, thereby enabling direct access to the keyboard.
  2. Utilizes an external configuration tool to set the Fn keys to function as Fn keys. The tool I use is https://github.com/faust93/k380-macos.
  3. Restores the original profile in Karabiner Elements, which includes remapping the K380 keyboard.

If someone needs this Hammerspoon lua script, simply ask for it and I will provide it.

I need a problems, I need your Hammerspoon lua script. MacOS14.4, MacBookAir2020, M1 I can use the [Logi Option+] and [karabiner] properly, but I can't use the github-build, "k380-macos". I make sure that I kill the software of [Logi Option+] and [karabiner].

$ ./k380 -f on
unable to open device

can you help me? thanks.

hrchu commented 3 weeks ago

@mikom92's trick worked for me thanks for sharing!