Replacement for khotkey? Or: how to get extra keys working again?

On Plasma 5, I could use every extra key on my keyboard: multi media keys, calculator, e-mail, browser, eject cd, and many more. There are even user definable keys on my keyboard, that I could set to customizable shortcuts, like filling in a form field by field, or just printing some text at any point that the cursor was active.

Now that Neon prematurely updated to Plasma 6, all these keys don’t work any more. Which is a real bummer and very frustrating! :frowning:

Rumours have it that Kglobalaccel should be able to provide this functionality at least partially. But how? I can’t find any howto or instruction for this. All of the appropriate keys are recognized by xev, so the system should be able to use them. I am not using Wayland, I want to stick with X11 for a while. But the keys are not usable on Wayland, either.

Can any one help me to make the keys working again?

1 Like

I can confirm this on wayland too (and x11).
I just tried it and my calculator key does not work and I can not find a way to bind it in the shortcuts settings.

My volume (globally), skip, play/pause works in for example elisa, but the calculator key I can not get to work.

I would assume this is known issue since it is a pretty obvious big thing, but maybe an extra check should be performed by us.
I lack the time right now but I will try to make time to check for bug reports/know issues later this evening and if needed make a bug report.

Calculator key is a known issue, but should already be fixed in 6.0.

For your problems, it would help debugging if you run:
sudo libinput debug-events
Then press the non-functioning key, and post the output.

Very well, here you are:

libinput debug-events
-event1   DEVICE_ADDED            Power Button                      seat0 default group1  cap:k
-event0   DEVICE_ADDED            Power Button                      seat0 default group2  cap:k
-event3   DEVICE_ADDED            Logitech USB Receiver             seat0 default group3  cap:k
-event6   DEVICE_ADDED            Logitech USB Receiver System Control seat0 default group3  cap:k
-event4   DEVICE_ADDED            Logitech USB Receiver Mouse       seat0 default group3  cap:p left scroll-nat scroll-button
-event5   DEVICE_ADDED            Logitech USB Receiver Consumer Control seat0 default group3  cap:kp scroll-nat
-event7   DEVICE_ADDED            HID 046a:0023                     seat0 default group4  cap:k
-event8   DEVICE_ADDED            HID 046a:0023                     seat0 default group4  cap:kp scroll-nat
 event8   KEYBOARD_KEY            +4294967.295s KEY_CALC (140) pressed
 event8   KEYBOARD_KEY            +0.119s       KEY_CALC (140) released
 event8   KEYBOARD_KEY            +1.631s       KEY_MAIL (155) pressed
 event8   KEYBOARD_KEY            +1.751s       KEY_MAIL (155) released
 event8   KEYBOARD_KEY            +2.935s       KEY_HOMEPAGE (172) pressed
 event8   KEYBOARD_KEY            +3.055s       KEY_HOMEPAGE (172) released
 event8   KEYBOARD_KEY            +6.375s       KEY_WAKEUP (143) pressed
 event8   KEYBOARD_KEY            +6.471s       KEY_WAKEUP (143) released
 event8   KEYBOARD_KEY            +11.215s      KEY_PROG1 (148) pressed
 event8   KEYBOARD_KEY            +11.327s      KEY_PROG1 (148) released
 event8   KEYBOARD_KEY            +12.087s      KEY_PROG2 (149) pressed
 event8   KEYBOARD_KEY            +12.183s      KEY_PROG2 (149) released
 event8   KEYBOARD_KEY            +13.799s      KEY_PROG3 (202) pressed
 event8   KEYBOARD_KEY            +13.911s      KEY_PROG3 (202) released
 event8   KEYBOARD_KEY            +15.143s      KEY_REDO (182) pressed
 event8   KEYBOARD_KEY            +15.263s      KEY_REDO (182) released
 event8   KEYBOARD_KEY            +16.119s      KEY_UNDO (131) pressed
 event8   KEYBOARD_KEY            +16.191s      KEY_UNDO (131) released
-event7   KEYBOARD_KEY            +27.543s      *** (-1) pressed
 event7   KEYBOARD_KEY            +28.087s      *** (-1) pressed

The buttons being pressed are:

  • calculator
  • e-mail
  • home
  • power
  • launch1
  • launch2
  • launch3
  • undo
  • redo

Launch1/2/3 are customizable keys on the Cherry CyMotion Linux keyboard. If you need any more information just let me know.

Does it not hurt pressing the calculator key for 1193 days (4 294 967s)? :wink:

I only have the calculator key not working so here is mine (wayland):

-event1   DEVICE_ADDED            Power Button                      seat0 default group1  cap:k
-event2   DEVICE_ADDED            Video Bus                         seat0 default group2  cap:k
-event0   DEVICE_ADDED            Power Button                      seat0 default group3  cap:k
-event17  DEVICE_ADDED            Microsoft Microsoft® SiderWinderTM X4 Keyboard seat0 default group4  cap:k
-event18  DEVICE_ADDED            Microsoft Microsoft® SiderWinderTM X4 Keyboard Consumer Control seat0 default group4  cap:kp scroll-nat
-event19  DEVICE_ADDED            Microsoft Microsoft® SiderWinderTM X4 Keyboard seat0 default group4  cap:k
-event20  DEVICE_ADDED            Logitech G502 HERO Gaming Mouse   seat0 default group5  cap:p left scroll-nat scroll-button
-event21  DEVICE_ADDED            Logitech G502 HERO Gaming Mouse Keyboard seat0 default group5  cap:kp scroll-nat
-event18  KEYBOARD_KEY            +0.000s       KEY_CALC (140) pressed
 event18  KEYBOARD_KEY            +0.096s       KEY_CALC (140) released

Thank you both!

Looks like the kernel correctly translated these keys to the keycode, so the problem is likely in KDE code, and we will look into it.

1 Like

If more info is needed, just ping and I am here, or wherever you need me to be… :heart:

Oh, I’m sorry. Just checked, and the fix requires Qt 6.6.3, which is scheduled to be released on 2024-03-22. So looks like we need to wait for that, then verify if your problems are indeed fixed.

Bug report:
https://bugs.kde.org/show_bug.cgi?id=478936

Fixes in KDE (already in 6.0):

Fix in Qt (upcoming 6.6.3):
https://bugreports.qt.io/browse/QTBUG-121713

2 Likes

Oh no, how will I ever survive?? :crazy_face:

Thank you for the excellent information delivery! :heart:

Yes, it certainly would, but all my fingers are with me all the time, wherever I go. I’ve got no idea, where this number is coming from. :thinking:

@bedna + @jinliu: thanks for looking into it and for your efforts!

1 Like

Has anyone received this update yet? My system is now at Qt 6.6.23, and there is no further update available yet.

local/qt6-base 6.6.2-4 (qt6)

Not yet on where I am. Might still be in testing.