Skip to main content

Mopidy extension to show info on a display and control from it

Project description


.. image::
:alt: Latest PyPI version

.. image::
:alt: Number of PyPI downloads

.. image::
:alt: Travis CI build status

.. image::
:alt: Test coverage

Extension for displaying track info and controlling Mopidy from a touch screen using `PyGame <>`_/SDL.

Cover images are downloaded from ` <>`_


- ``Mopidy`` >= 0.18
- ``Pykka`` >= 1.1
- ``pygame``


Install by running::

pip install Mopidy-Touchscreen

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

Basic Configuration

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

enabled = true
screen_width = 320
screen_height = 240
cursor = True
fullscreen = False
cache_dir = $XDG_CACHE_DIR/mopidy/touchscreen

The following configuration values are available:

- ``touchscreen/enabled``: If the Touchscreen extension should be enabled or not.
- ``touchscreen/screen_width``: The width of the resolution you want to use in pixels.
- ``touchscreen/screen_height``: The width of the resolution you want to use in pixels.
- ``touchscreen/cursor``: If the mouse cursor should be shown. (If you use a touchscreen it should be false)
- ``touchscreen/fullscreen``: If you want to be shown as a window or in fullscreen.
- ``touchscreen/screen_width``: The folder to be used as cache. Defaults to ``$XDG_CACHE_DIR/mopidy/touchscreen``, which usually means

How to Setup

Use the basic configuration to setup as most standard screens works fine without further configuration.

Raspberry Pi and LCD Shields

If you are using a LCD Shield in Raspberry Pi you need to config your LCD and run mopidy with root privileges:

Configure your LCD Shield

Add to the config the next variables::

sdl_fbdev = /dev/fb1
sdl_mousdrv = TSLIB
sdl_mousedev = event0

This is just an example. It may work but each LCD Shield seems to have its own configuration.
To find your values find an example of using pygame with your LCD Shield and it should be something like this in the code::

os.environ["SDL_FBDEV"] = "/dev/fb1"
os.environ["SDL_MOUSEDRV"] = "TSLIB"
os.environ["SDL_MOUSEDEV"] = "event0"

Run mopidy with root privileges

You can use ``sudo mopidy``.

In case you are using musicbox edit ``/etc/init.d/mopidy`` file. Change ``DAEMON_USER=mopidy`` to ``DAEMON_USER=root``

Do not forget that this is a workaround and that mopidy will run with root privileges.


You can use `mopidy discuss <>`_
or send an email to ` <>`_



* See track info (track name, album, artist, cover image)
* Seek Track
* Play/Pause
* Mute/Unmute
* Change volume
* Next/Previous track
* Library
* Menu (exit mopidy, restart...)
* Shuffle on/off
* Repeat one/on/off
* Playback list and song selection
* Playlists


* Use keyboard or GPIO buttons instead of touchscreen


.. image::


`Example video running the extension <>`_

Project resources

- `Source code <>`_
- `Issue tracker <>`_
- `Download development snapshot <>`_



- Bug Fixes
- UI changes
- Smoth text scrolling
- Search albums, artist or songs (Not fully implemented. Basic functionality)


- Font will be included on installation


- First working version


- Initial release.

Project details

Download files

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

Files for Mopidy-Touchscreen, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size Mopidy-Touchscreen-0.3.1.tar.gz (25.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page