INTERACT FORUM

More => Old Versions => JRiver Media Center 25 for Linux => Topic started by: beetmonger on March 25, 2019, 06:07:57 am

Title: multimedia keys?
Post by: beetmonger on March 25, 2019, 06:07:57 am
I'm new to MC and trying to troubleshoot why the multimedia keys (play/pause, ff, rew) aren't recognized. I'm running Manjaro Gnome and the keys work fine with other players like Lollypop, so it's something specific to Mediacenter.

I've tried toggling the "Media Key Mode" setting from automatic to disabled but it doesn't appear to have any effect.

Edit: my keyboard is a logitech g710+
Title: Re: multimedia keys?
Post by: bob on March 25, 2019, 09:16:57 am
I'm new to MC and trying to troubleshoot why the multimedia keys (play/pause, ff, rew) aren't recognized. I'm running Manjaro Gnome and the keys work fine with other players like Lollypop, so it's something specific to Mediacenter.

I've tried toggling the "Media Key Mode" setting from automatic to disabled but it doesn't appear to have any effect.

Edit: my keyboard is a logitech g710+
MC intercepts the media keys at a very low level. It's possible that your Manjaro Gnome is grabbing these and not letting them through.
There are some references to this in the MC24 forum IIRC.
Title: Re: multimedia keys?
Post by: Rizlaw on March 25, 2019, 10:05:56 am
Yep, I've noted that in MC24 as have others. It's a function that's sorely missed for us Linux users and I believe we will need MPRIS1/2 added to MC25 before we can have this basic capability. Another thought might be to add code to MC25 that allows us to map our keyboard media keys from within MC25 much like Gnome let us map keys? I'm not a programmer, so I leave it to the development team to figure this all out -- hopefully sooner, than later. :)
Title: Re: multimedia keys?
Post by: beetmonger on March 25, 2019, 11:42:36 am
MC intercepts the media keys at a very low level. It's possible that your Manjaro Gnome is grabbing these and not letting them through.
There are some references to this in the MC24 forum IIRC.
Oops, thought I'd searched thoroughly but found a couple of mentions there. Sorry about that.

Yep, I've noted that in MC24 as have others. It's a function that's sorely missed for us Linux users and I believe we will need MPRIS1/2 added to MC25 before we can have this basic capability. Another thought might be to add code to MC25 that allows us to map our keyboard media keys from within MC25 much like Gnome let us map keys? I'm not a programmer, so I leave it to the development team to figure this all out -- hopefully sooner, than later. :)
I'm a Linux newb so I'm not in a position to do more than pin my hopes on the dev team, as well!
Title: Re: multimedia keys?
Post by: 89ZEF on March 25, 2019, 07:58:19 pm
Here are some links about Linux / Manjaro / Gnome keyboard mapping:
https://www.reddit.com/r/linux/comments/ab7avu/alternative_to_autohotkey_on_linux/
https://beginners-manjaro-linux-guide-1516.fandom.com/wiki/Shortcuts
https://help.gnome.org/users/gnome-help/stable/keyboard-shortcuts-set.html.en

Actually, I spent some time during last weekend about this topic but only for Windows & Mac though.
However, you could get some inspiration from the calls to MC I used (via the Web Service or Command Line).
https://yabb.jriver.com/interact/index.php/topic,119955.msg829510.html
https://yabb.jriver.com/interact/index.php/topic,120008.msg829509.html

Good luck!
Title: Re: multimedia keys?
Post by: mikeza on March 25, 2019, 09:44:48 pm
I wrote a command line tool in Python that can send JRiver MCWS commands (local web server) so I can have hot keys to set ratings for songs play pause etc.

This supports MCC* commands, which don't work from the command line as in windows.

* https://wiki.jriver.com/index.php/Media_Center_Core_Commands

If there's interest, I can share it.
Title: Re: multimedia keys?
Post by: RemyJ on March 26, 2019, 08:34:38 am
I wrote a command line tool in Python that can send JRiver MCWS commands (local web server) so I can have hot keys to set ratings for songs play pause etc.

This supports MCC* commands, which don't work from the command line as in windows.

* https://wiki.jriver.com/index.php/Media_Center_Core_Commands

If there's interest, I can share it.

I'd be interested.
Title: Re: multimedia keys?
Post by: mikeza on March 26, 2019, 12:55:48 pm
I'd be interested.
I'll update the code documentation and post it sometime this week.
Title: Re: multimedia keys?
Post by: mikeza on April 02, 2019, 02:26:19 pm
I'd be interested.

Sorry this took me longer to get to than I thought it would, I hadn't looked at the code in a while and it was kind of a mess.

Here's a rough version

https://github.com/mikeza/jrivermcws

Let me know if you need help.
Title: Re: multimedia keys?
Post by: jamesj2 on October 16, 2019, 02:43:54 pm
https://github.com/mikeza/jrivermcws

Thanks for this.  I was able to setup KDE to trigger jriverctl commands via my multimedia keys.  Now I don't have to use the slow interface as much.  ;D