homepage | forum | wiki | feature requests & bugs

Examples

From Mms-wiki

Jump to: navigation, search

Contents

[edit] Config

to come

[edit] Lirc

This example is for a Medion MD80383 from a German discounter called Aldi. Cost: ca. 7€ See this thread for more infos: [1]

Use the input-lirc-helper tool to create a working input-lirc automatically.

It's also a very good idea to look at the description of all functions that can be mapped in the input-lirc (It's the same for input-keyboard).

[edit] /etc/lirc/lircd.conf

The device button is DVD, and the code is 766.

NOTE: For newbies: Don't copy this lircd.conf onto your system. That could grill your hamster! Read the lirc documentation instead: www.lirc.org and generate (with irrecord) your own one, appropriate to your remote control.

# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
# 
# this config file was automatically generated
# using lirc-0.6.6(any) on Sun Dec 26 19:51:15 2004
#
# contributed by
#
# brand:                       DVD_XMMS2
# model no. of remote control:
# devices being controlled by this remote:
# 
# Medion Code DVD:766
begin remote X2
 name  DVD_XMMS2
 bits           24
 flags SPACE_ENC|CONST_LENGTH
 eps            30
 aeps          100
 header       4069  3904
 one           573  1911
 zero          573   933
 ptrail        573
 gap          64377
 min_repeat      0
 toggle_bit      0
     begin codes
         menu                   0x0000000000C3C3C3
         exit                   0x0000000000C1A3E5
         mute                   0x0000000000C3F3C0
         power                  0x0000000000C2A3D5
         alloff                 0x0000000000C2A3D5
         vol+                   0x0000000000C2F3D0
         vol-                   0x0000000000C2E3D1
         ch+                    0x0000000000C2D3D2
         ch-                    0x0000000000C2C3D3
         up                     0x0000000000C6539A
         down                   0x0000000000C6239D
         left                   0x0000000000C223DD
         right                  0x0000000000C203DF
         ok                     0x0000000000CB434B
         1                      0x0000000000C313CE
         2                      0x0000000000C323CD
         3                      0x0000000000C333CC
         4                      0x0000000000C343CB
         5                      0x0000000000C353CA
         6                      0x0000000000C363C9
         7                      0x0000000000C373C8
         8                      0x0000000000C383C7
         9                      0x0000000000C393C6
         0                      0x0000000000C303CF
         av                     0x0000000000C083F7
         ent                    0x0000000000C583A7
         vt1                    0x0000000000CB434B
         vt2                    0x0000000000C283D7
         vt3                    0x0000000000C3A3C5
         vt4                    0x0000000000C563A9
         vt5                    0x0000000000B3A4C5
         red                    0x0000000000C593A6
         green                  0x0000000000C5A3A5
         yellow                 0x0000000000C5B3A4
         blue                   0x0000000000C5C3A3
         red2                   0x0000000000CB434B
         rew                    0x0000000000C3A3C5
         play                   0x000000000083A7C5
         ff                     0x0000000000E3A1C5
         rec                    0x0000000000C5E3A1
         stop                   0x0000000000C473B8
     end codes
end remote

[edit] /etc/mms/input-lirc for 1.0.8

Here is the appropriate input-lirc, that is used in combination with the lircd.conf from above.

#########################################
# Configuration file for input
# 
# Syntax:
# mode, command, key, multiple keypresses
# 
# Example based on my REALmagic Remote.
# 
# some modes inherit from other modes, which means that you can't
# define the same key in both. Otherwise you are free to use the same
# keys.
#
# all inherit from general
# all audio modes inherit from audio_general
# choose_playlist and playlist inherit from playlist_general
version = 10
general,prev,up,yes
general,next,down,yes
general,left,left,yes
general,right,right,yes
general,back,exit
general,action,ok
general,second_action,menu
general,help,1
general,options,2
general,search,3
general,page_down,ch+
general,page_up,ch-
# only used if eject-tray is enabled in configure
general,eject,EJECT
# left and right is bounded to enter directory and back
# one directory in audio mode
# mode = toggle playlist, playlist_mode = select playlist
audio_general,mode,0
audio_general,playlist_mode,mute
audio_general,play,play
audio_general,pause,pause
audio_general,stop,stop
audio_general,ff,6,yes
audio_general,fb,9,yes
audio_general,prev_track,vt3
audio_general,next_track,ff
audio_general,vol+,vol+,yes
audio_general,vol-,vol-,yes
audio_general,mute,4
audio_general,add_all,7
audio_general,playlist_commands,blue
audio_add,add_all,5
graphical_audio,add_dir,8

#switch between load playlist and normal playlist
playlist,move_up,green
playlist,move_down,yellow
playlist,delete,power
playlist,queue,red2
playlist,clear_list,rec
playlist,save_playlist,av

choose_playlist,delete,rec

pictures,recurse_dirs,8
pictures_fullscreen,pause,power
pictures_fullscreen,zoom,av

graphical,info,ent

graphical_movie,reget,av
graphical_movie,play_movie,8

# These two keys are also used for save playlist and imdb search
search,accept,ok
search,erase,left,yes
#search,erase,yellow,yes

These are only used for searching
search,prev,up,yes
search,next,down,yes
search,complete,right
search,exit,exit
search,help,menu


  • NOTE: Eject is not mapped here.

[edit] Themes

There is not much to it. Go to Themes and download it. Unpack and copy it into

/usr/local/share/mms/themes

[edit] Alternative Start/Stop Method

Author: esprit, Andreas Saur

[edit] Starting MMS from /etc/inittab

[edit] Entry in the /etc/inittab

Add the bold line into your inittab, if you want to start MMS at system boot. See mms-init.sh below.

# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
x:2:respawn:/usr/local/bin/mms-init.sh
#3:23:respawn:/sbin/getty 38400 tty3
#4:23:respawn:/sbin/getty 38400 tty4

[edit] The /usr/local/bin/mms-init.sh start script

Create this script in /usr/local/bin, change esprit into the user you use for starting MMS:

#! /bin/sh
DATE=`date +%Y-%m-%d_%Hh%Mm%S`
exec /bin/su - -c "mms > /tmp/mms-log_$DATE 2>&1" esprit

Note: Starting MMS as 'esprit' (!= root) claims a message when using xine as audio:

WARNING: unable to set nice level
you might experience skipping sound

or in german

WARNUNG: Konnte 'nice' nicht anpassen (keine root-Rechte)
Es kann zu einer stotternden Wiedergabe kommen

This is because MMS has to adjust xine's nice-level for clean playback.

A solution to this can be found in the forum!

[edit] The /usr/local/bin/mms-halt.sh to shutdown MMS

Create this script in /usr/local/bin to shutdown MMS, and add it into /etc/mms/config (see below).

#!/bin/sh
/usr/bin/sudo -u root /sbin/halt -p 

[edit] The shutdown_script entry in the /etc/mms/config

shutdown_script = /usr/local/bin/mms-halt.sh
Personal tools