TransWikia.com

Logitech MX Keys sends incorrect modifier keys

Unix & Linux Asked on December 31, 2021

I’m running CentOS 7 on a Dell laptop. The native keyboard works correctly, but my Logitech MX Keys keyboard is sending some incorrect modifiers:

  • Pressing L WIN triggers L ALT
  • Pressing L ALT triggers L WIN
  • Pressing R ALT triggers R WIN (the keyboard lacks R WIN)
  • Pressing R CTRL triggers R ALT
  • Insert key is not detected at all

Default xbkmap settings:

$ setxkbmap -query
rules:      evdev
model:      pc105+inet
layout:     us,us
variant:    ,
options:    terminate:ctrl_alt_bksp

I tried using options to fix the problem:

$ setxkbmap -option altwin:swap_alt_win
$ setxkbmap -query
rules:      evdev
model:      pc105+inet
layout:     us,us
variant:    ,
options:    terminate:ctrl_alt_bksp,altwin:swap_alt_win

This fixes the left modifiers and R ALT, but now:

  • Pressing R CTRL triggers R WIN

So I took a stab at combining another swap option:

$ setxkbmap -option ctrl:swap_rwin_rctl
$ setxkbmap -query
rules:      evdev
model:      pc105+inet
layout:     us,us
variant:    ,
options:    terminate:ctrl_alt_bksp,altwin:swap_alt_win,ctrl:swap_rwin_rctl

But that made it worse:

  • R ALT triggers R CTRL
  • R CTRL triggers R WIN

I looked through the options at /usr/share/X11/xkb/rules/evdev.lst, but can’t find any that address my particular situation.
I’d prefer a persistent solution, but I’m willing to add it to my startup scripts if need be.
I don’t use the native keyboard, so I’m ok with a solution that breaks it.

One Answer

JdeBP's comment led me to Logitech's setup instruction for MX Keys, which indicate Fn+O for Mac and Fn+P for Windows/Linux/Chrome. I recall taking the current Logitech Unifying Adapter from a MacBook, so I probably previously configured it for that and forgot.

I cleared all of my previous Xkb options and set the keyboard to Windows/Linux/Chrome mode. This fixed all of the keys, even after a reboot.

From what I can tell, these OS-specific configurations are tied individually to each of the 3 preset connection keys. When I was using the keyboard on both Windows and Mac machines, I never recall having to repeat the OS-specific keystrokes. This is likely why I forgot about the feature.

Answered by Shawn on December 31, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP