More > JRiver Media Center 23 for Linux

Dedicated media keys on Corsair and Logitech keyboards still don't work for Linu

<< < (2/3) > >>

bob:

--- Quote from: Rizlaw on June 27, 2017, 11:42:44 am ---Thanks Bob for the X server explanation. I tried what you suggested.
While I get something meaningful - that looks like what you typed out - with normal keyboard keys (i.e., up, down, left, right arrow keys, etc), when I tried the dedicated Corsair keyboard media keys I got info that looked nothing like your example and was more or less gibberish to me (mostly a lot of zeros). For example, when I pressed the dedicated media key "Stop" playing I got something like the following:


--- Code: ---FocusIn event, serial 36, synthetic NO, window 0x5000001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 36, synthetic NO, window 0x0,
    keys:  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
--- End code ---

I'm not certain I copied the correct lines because it looks nothing like you're suggesting.

--- End quote ---
I'm not certain but it looks to me like something is intercepting those keys. Perhaps MPRIS? Seems to me that it should still generate the keypress and release events in addition to the keymap notify event....

mwillems:
IME, most big desktop environments (like Gnome, Unity. or KDE) completely swallow and redirect all media keys, so unless the X program is talking to the desktop environment via MPRIS or dbus the program will never see the keypresses.  This has been a fairly large roadblock in my own attempts to get remote control working on Gnome-based linux installs and I've never found a perfect answer (other than writing an MPRIS wrapper for MC via MCWS, but I'm nowhere close to done with that).

Stop has been one fo the keys I've had a particularly hard time with FWIW.

bob:

--- Quote from: mwillems on June 29, 2017, 08:27:44 pm ---IME, most big desktop environments (like Gnome, Unity. or KDE) completely swallow and redirect all media keys, so unless the X program is talking to the desktop environment via MPRIS or dbus the program will never see the keypresses.  This has been a fairly large roadblock in my own attempts to get remote control working on Gnome-based linux installs and I've never found a perfect answer (other than writing an MPRIS wrapper for MC via MCWS, but I'm nowhere close to done with that).

Stop has been one fo the keys I've had a particularly hard time with FWIW.

--- End quote ---
Probably why I don't notice it. It works fine in XFCE.
This might be possible some day but there are lots of things more import in front of it.

mwillems:

--- Quote from: bob on June 30, 2017, 01:55:51 pm ---Probably why I don't notice it. It works fine in XFCE.
This might be possible some day but there are lots of things more import in front of it.

--- End quote ---

Hey bob, can you confirm that it's working for you on xfce4 on debian stretch?  I just did a test install of stretch with xfce4 to see if I could resolve my remote control woes, and it seems to swallow the same keys that Gnome did (which makes sense as I think xfce now uses MPRIS as well).  There may be an easy way to turn it off as I haven't used Xfce4 in a few years, but I just wanted to confirm we weren't talking about entirely different xfce4 versions before I spent more time on it.

bob:

--- Quote from: mwillems on July 09, 2017, 06:54:04 pm ---Hey bob, can you confirm that it's working for you on xfce4 on debian stretch?  I just did a test install of stretch with xfce4 to see if I could resolve my remote control woes, and it seems to swallow the same keys that Gnome did (which makes sense as I think xfce now uses MPRIS as well).  There may be an easy way to turn it off as I haven't used Xfce4 in a few years, but I just wanted to confirm we weren't talking about entirely different xfce4 versions before I spent more time on it.

--- End quote ---
Will do, I've not installed stretch yet but it's on the list.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version