# USB-Soundcard Multimedia Keys to control mopidy

**URL:** <https://discourse.mopidy.com/t/usb-soundcard-multimedia-keys-to-control-mopidy/1165>\
**Category:** Misc\
**Created:** [March 13, 2016, 9:55am UTC](https://discourse.mopidy.com/t/usb-soundcard-multimedia-keys-to-control-mopidy/1165 "2016-03-13T09:55:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guntram\_Schmidt](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@Guntram\_Schmidt](https://discourse.mopidy.com/u/Guntram_Schmidt)\
**Post date:** [March 13, 2016, 9:55am UTC](https://discourse.mopidy.com/t/usb-soundcard-multimedia-keys-to-control-mopidy/1165/1 "2016-03-13T09:55:39Z")

</div>

Hello all!

I have mopidy on my RPi 2, using the PiMusicBox-Distribution.

Attached is a CREATIVE XMOD Wireless USB-Soundcard (“ancient” Multiroom-System) which works fine so far.

These sound-cards also have multimedia keys which I want to use, to control mopidy. What is the suggested method to do so? I remember doing this with the help of lirc - which was a littlebit cumbersome (had to write scripts, which were invoked on keypress etc.).

Does mopidy feature a direct connection of a kind-of-USB-keyboard?

Thanks a lot for ideas,  
Guntram

PS: evtest already lists all the keyboard events - so no connection issue to be checked.

---

<div class="post-metadata">

**Author:** ![Steve\_Lambert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/steve_lambert/32/1149_2.png) [@Steve\_Lambert](https://discourse.mopidy.com/u/Steve_Lambert)\
**Post date:** [March 13, 2016, 10:13am UTC](https://discourse.mopidy.com/t/usb-soundcard-multimedia-keys-to-control-mopidy/1165/2 "2016-03-13T10:13:24Z")

</div>

I use with MPC for basic functions using a IR remote control

begin  
prog = irexec  
button = KEY\_PAUSE  
config = mpc toggle  
end  
begin  
prog = irexec  
button = KEY\_NEXTSONG  
config = mpc next;mpc play  
end

That might do the trick. More on MPC [here](http://linux.die.net/man/1/mpc)

---

<div class="post-metadata">

**Author:** ![Guntram\_Schmidt](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@Guntram\_Schmidt](https://discourse.mopidy.com/u/Guntram_Schmidt)\
**Post date:** [March 13, 2016, 10:28am UTC](https://discourse.mopidy.com/t/usb-soundcard-multimedia-keys-to-control-mopidy/1165/3 "2016-03-13T10:28:03Z")

</div>

Hi Steve,

thanks for the fast reply. That’s what I did in the past, too. I was wondering, wether there would be a “better” way to do it…  
Do you remember, what configs you did? I found several ideas on which one was mandatory or not (lirc, lircmd, …)…

Thanks again,  
Guntram

---

<div class="post-metadata">

**Author:** ![Steve\_Lambert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/steve_lambert/32/1149_2.png) [@Steve\_Lambert](https://discourse.mopidy.com/u/Steve_Lambert)\
**Post date:** [March 13, 2016, 10:40am UTC](https://discourse.mopidy.com/t/usb-soundcard-multimedia-keys-to-control-mopidy/1165/4 "2016-03-13T10:40:52Z")

</div>

Hi Guntram,

I’ve listed all the steps [here](http://stevespi.blogspot.co.uk/)

Unfortunately my knowledge is quite limited so I took the easy option and cobbled together directions from a few sources, so I don’t know if there is a “better” way, but this way worked and was reasonably painless 🙂

Steve
