Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Mopidy extension for virtual input devices

Project Description

Mopidy extension for controlling music playback from virtual input device


Install by running:

pip install Mopidy-EvtDev

Or, if available, install the Debian/Ubuntu package from


Before starting Mopidy, you must add configuration for Mopidy-EvtDev to your Mopidy configuration file:

# Location of virtual input devices
dev_dir = /dev/input
# List of virtual devices to open which can be either their path, name or physical address
# Leave blank to listen to all devices
devices = 00:11:67:D2:AB:EE, AT Translated Set 2 keyboard, isa0060/serio0/input0
# Refresh period in seconds to check for new input devices
refresh = 10

To permit mopidy to read virtual input devices without root permissions, you need to add the following into /etc/udev/rules.d/99-input.rules:

KERNEL==”event*”, NAME=”input/%k”, MODE=”660”, GROUP=”audio”

If you are concerned by security, then create a separate group name and add mopidy as a member to that group. E.g.,

KERNEL==”event*”, NAME=”input/%k”, MODE=”660”, GROUP=”input”

Otherwise, just run mopidy as root to avoid any additional configuration requirements.



  • Fixes issue #7: Race hazard - closing and re-opening already devices causes events to be missed.
  • Improved unit test coverage.


  • Initial release.
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Mopidy-EvtDev-0.1.1.tar.gz (13.3 kB) Copy SHA256 Checksum SHA256 Source May 6, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting