INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: multimedia keys?  (Read 3751 times)

beetmonger

  • Member
  • *
  • Posts: 3
multimedia keys?
« 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+
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13875
Re: multimedia keys?
« Reply #1 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.
Logged

Rizlaw

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 283
Re: multimedia keys?
« Reply #2 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. :)
Logged
Ubuntu Gnome 20.04 LTS

beetmonger

  • Member
  • *
  • Posts: 3
Re: multimedia keys?
« Reply #3 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!
Logged

89ZEF

  • Recent member
  • *
  • Posts: 40
Re: multimedia keys?
« Reply #4 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!
Logged

mikeza

  • Recent member
  • *
  • Posts: 39
Re: multimedia keys?
« Reply #5 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.
Logged

RemyJ

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1249
Re: multimedia keys?
« Reply #6 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.
Logged
Fedora 40 x86_64 Xfce

mikeza

  • Recent member
  • *
  • Posts: 39
Re: multimedia keys?
« Reply #7 on: March 26, 2019, 12:55:48 pm »

I'd be interested.
I'll update the code documentation and post it sometime this week.
Logged

mikeza

  • Recent member
  • *
  • Posts: 39
Re: multimedia keys?
« Reply #8 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.
Logged

jamesj2

  • Member
  • *
  • Posts: 2
Re: multimedia keys?
« Reply #9 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
Logged
Pages: [1]   Go Up