Difference between revisions of "Soundgraph iMON Antec Veris Mythbuntu 10.10"

From MythTV Official Wiki
Jump to: navigation, search
(Info)
Line 1,220: Line 1,220:
 
}}
 
}}
  
 +
== LCD Installation Instructions ==
 +
Installation instructions to get LCD working on Soundgraph iMON Antec Veris
 +
 +
Install LCDd application:
 +
{{Code box|sudo apt-get install lcdproc|}}
 +
 +
Verify that you have an LCD and not a VFD:
 +
{{Code box|lsusb | grep -i 15c2|}}
 +
 +
If you get a device other than the :ffdc or :0038, it's likely not yet supported by lcdproc.
 +
 +
If lsusb returns nothing, then lirc isn't finding your device. Ensure that it's plugged in and powered up. Verify that the lirc_imon module is loaded:
 +
 +
{{Code box|lsmod | grep lirc|}}
 +
 +
=== Edit LCDd.conf File ===
 +
 +
Edit the LCDd.conf file:
 +
{{Code box|sudo gedit /etc/LCDd.conf|}}
 +
 +
Look for the "Driver=" line around line 53. Change it to read:
 +
{{Code box|Driver=imonlcd|}}
 +
 +
Find the [imonlcd] section around line #557.
 +
Ensure that the "Protocol=" line matches your device. 0 for the :ffdc, 1 for the :0038
 +
Set the "OnExit=" line to your liking.
 +
Ensure that the device on the "Device=" line exists:
 +
{{Code box|ls /dev/lcd*|}}
 +
 +
{{Code box|~/etc/LCDd.conf - Here's what my LCDd.conf file looks like|
 +
# LCDd.conf -- configuration file for the LCDproc server daemon LCDd
 +
#
 +
# This file contains the configuration for the LCDd server.
 +
#
 +
# The format is ini-file-like. It is divided into sections that start at
 +
# markers that look like [section]. Comments are all line-based comments,
 +
# and are lines that start with '#' or ';'.
 +
#
 +
# The server has a 'central' section named [server]. For the menu there is
 +
# a section called [menu]. Further each driver has a section which
 +
# defines how the driver acts.
 +
#
 +
# The drivers are activated by specifiying them in a driver= line in the
 +
# server section, like:
 +
#
 +
#  Driver=curses
 +
#
 +
# This tells LCDd to use the curses driver.
 +
# The first driver that is loaded and is capable of output defines the
 +
# size of the display. The default driver to use is curses.
 +
# If the driver is specified using the -d <driver> command line option,
 +
# the Driver= options in the config file are ignored.
 +
#
 +
# The drivers read their own options from the respective sections.
 +
 +
 +
 +
## Server section with all kinds of settings for the LCDd server ##
 +
[server]
 +
 +
# Where can we find the driver modules ?
 +
# IMPORTANT: Make sure to change this setting to reflect your
 +
#            specific setup! Otherwise LCDd won't be able to find
 +
#            the driver modules and will thus not be able to
 +
#            function properly.
 +
# NOTE: Always place a slash as last character !
 +
DriverPath=/usr/lib/lcdproc/
 +
 +
# Tells the server to load the given drivers. Multiple lines can be given.
 +
# The name of the driver is case sensitive and determines the section
 +
# where to look for further configuration options of the specific driver
 +
# as well as the name of the dynamic driver module to load at runtime.
 +
# The latter one can be changed by giving af File= directive in the
 +
# driver specific section.
 +
#
 +
# The following drivers are supported:
 +
#  bayrad, CFontz, CFontz633, CFontzPacket, curses, CwLnx, ea65,
 +
#  EyeboxOne, g15, glcdlib, glk, hd44780, icp_a106, imon, imonlcd, IOWarrior,
 +
#  irman, joy, lb216, lcdm001, lcterm, lirc, lis, MD8800, ms6931, mtc_s16209x,
 +
#  MtxOrb, mx5000, NoritakeVFD, picolcd, pyramid, sed1330, sed1520, serialPOS,
 +
#  serialVFD, shuttleVFD, sli, stv5730, svga, t6963, text, tyan, ula200,
 +
#  xosd
 +
Driver=imonlcd
 +
 +
# Tells the driver to bind to the given interface
 +
Bind=127.0.0.1
 +
 +
# Listen on this specified port; defaults to 13666.
 +
Port=13666
 +
 +
# Sets the reporting level; defaults to 2 (warnings and errors only).
 +
#ReportLevel=3
 +
 +
# Should we report to syslog instead of stderr ? [default: no; legal: yes, no]
 +
#ReportToSyslog=yes
 +
 +
# User to run as.  LCDd will drop its root priviledges, if any,
 +
# and run as this user instead.
 +
User=nobody
 +
 +
# The server will stay in the foreground if set to true.
 +
#Foreground=no
 +
 +
# Hello message: each entry represents a display line; default: builtin
 +
Hello=""
 +
#Hello="  LCDproc!"
 +
 +
# GoodBye message: each entry represents a display line; default: builtin
 +
GoodBye=""
 +
#GoodBye="  LCDproc!"
 +
 +
# Sets the default time in seconds to displays a screen.
 +
WaitTime=5
 +
 +
# If yes, the the serverscreen will be rotated as a usual info screen. If no,
 +
# it will be a background screen, only visible when no other screens are
 +
# active. The special value 'blank' is similar to no, but only a blank screen
 +
# is displayed. [default: on; legal: on, off, blank]
 +
ServerScreen=no
 +
 +
# Set master backlight setting. If set to 'open' a client may control the
 +
# backlight for its own screens (only). [default: open; legal: off, open, on]
 +
Backlight=open
 +
 +
# Set master heartbeat setting. If set to 'open' a client may control the
 +
# heartbeat for its own screens (only). [default: open; legal: off, open, on]
 +
#Heartbeat=open
 +
 +
# set title scrolling speed [default: 10; legal: 0-10]
 +
#TitleSpeed=10
 +
 +
# The "...Key=" lines define what the server does with keypresses that
 +
# don't go to any client.
 +
# These are the defaults:
 +
ToggleRotateKey=Enter
 +
PrevScreenKey=Left
 +
NextScreenKey=Right
 +
#ScrollUpKey=Up
 +
#ScrollDownKey=Down
 +
 +
# If you have only 4 keys, you can choose to use this:
 +
#ToggleRotateKey=Enter
 +
#PrevScreenKey=Up
 +
#NextScreenKey=Down
 +
 +
# If you have only 3 keys, you can choose to use this:
 +
#ToggleRotateKey=Enter
 +
#PrevScreenKey=Up
 +
 +
 +
 +
## The menu section. The menu is an internal LCDproc client. ##
 +
[menu]
 +
# You can configure what keys the menu should use. Note that the MenuKey
 +
# will be reserved exclusively, the others work in shared mode.
 +
 +
# The following works excellent with 4 keys or more.
 +
MenuKey=Escape
 +
EnterKey=Enter
 +
UpKey=Up
 +
DownKey=Down
 +
# If you have 6 keys you may define these as well
 +
#LeftKey=Left
 +
#RightKey=Right
 +
 +
# If you have only 3 keys, you could use something like this:
 +
#MenuKey=Escape
 +
#EnterKey=Enter
 +
#DownKey=Down
 +
 +
 +
 +
### Driver sections are below this line, in alphabetical order  ###
 +
 +
 +
## EMAC BayRAD driver ##
 +
[bayrad]
 +
 +
# Select the output device to use [default: /dev/lcd]
 +
Device=/dev/lcd
 +
 +
# Set the communication speed [default: 9600; legal:  1200, 2400, 9600, 19200]
 +
Speed=9600
 +
 +
 +
 +
## CrystalFontz driver (for CF632 & CF634) ##
 +
[CFontz]
 +
 +
# Select the output device to use [default: /dev/lcd]
 +
Device=/dev/ttyS0
 +
# Select the LCD size [default: 20x4]
 +
Size=20x4
 +
# Set the initial contrast [default: 560; legal: 0 - 1000]
 +
Contrast=350
 +
# Set the initial brightness [default: 1000; legal: 0 - 1000]
 +
Brightness=1000
 +
# Set the initial off-brightness [default: 0; legal: 0 - 1000]
 +
# This value is used when the display is normally
 +
# switched off in case LCDd is inactive
 +
OffBrightness=0
 +
# Set the communication speed [default: 9600; legal: 1200, 2400, 9600, 19200 or 115200]
 +
Speed=9600
 +
# Set the firmware version (New means >= 2.0) [default: no; legal: yes, no]
 +
NewFirmware=no
 +
# Reinitialize the LCD's BIOS [default: no; legal: yes, no]
 +
# normally you shouldn't need this
 +
Reboot=no
 +
 +
 +
 +
## CrystalFontz633 driver (for CF633 only) ##
 +
[CFontz633]
 +
 +
# Select the output device to use [default: /dev/lcd]
 +
Device=/dev/ttyS0
 +
# Select the LCD type (size) [default: 16x2]
 +
Size=16x2
 +
# Set the initial contrast [default: 560; legal: 0 - 1000]
 +
Contrast=350
 +
# Set the initial brightness [default: 1000; legal: 0 - 1000]
 +
Brightness=1000
 +
# Set the initial off-brightness [default: 0; legal: 0 - 1000]
 +
# This value is used when the display is normally
 +
# switched off in case LCDd is inactive
 +
OffBrightness=50
 +
# Set the communication speed [default: 9600; legal: 1200, 2400, 9600, 19200, 115200]
 +
Speed=19200
 +
# Set the firmware version (New means >= 2.0) [default: no; legal: yes, no]
 +
# Currently this flag is not in use, there is no such thing as NewFirmware. ;=)
 +
#NewFirmware=no
 +
# Reinitialize the LCD's BIOS [default: no; legal: yes, no]
 +
# I want to reboot the LCD to make sure we start from a known state
 +
Reboot=yes
 +
 +
 +
 +
## CrystalFontz packet driver (for CF631, CF633 & CF635) ##
 +
[CFontzPacket]
 +
 +
# Select the LCD model [default: 633; legal: 631, 633, 635]
 +
Model=635
 +
# Select the output device to use [default: /dev/lcd]
 +
Device=/dev/ttyUSB0
 +
# Select the LCD size [default: depending on model: 635: 20x4, 631: 20x2, 633: 16x2]
 +
Size=20x4
 +
# Set the initial contrast [default: 560; legal: 0 - 1000]
 +
Contrast=350
 +
# Set the initial brightness [default: 1000; legal: 0 - 1000]
 +
Brightness=1000
 +
# Set the initial off-brightness [default: 0; legal: 0 - 1000]
 +
# This value is used when the display is normally
 +
# switched off in case LCDd is inactive
 +
OffBrightness=50
 +
# Set the communication speed [default: 9600; legal: 1200, 2400, 9600, 19200, 115200]
 +
Speed=115200
 +
# Set the firmware version (New means >= 2.0) [default: no; legal: yes, no]
 +
# Currently this flag is not in use, there is no such thing as NewFirmware. ;=)
 +
#NewFirmware=no
 +
# Reinitialize the LCD's BIOS [default: no; legal: yes, no]
 +
# I want to reboot the LCD to make sure we start from a known state
 +
Reboot=yes
 +
 +
 +
 +
## Curses driver ##
 +
[curses]
 +
 +
# color settings
 +
# foreground color [default: blue]
 +
Foreground=blue
 +
# background color when "backlight" is off [default: cyan]
 +
Background=cyan
 +
# background color when "backlight" is on [default: red]
 +
Backlight=red
 +
 +
# display size [default: 20x4]
 +
Size=20x4
 +
 +
# What position (X,Y) to start the left top corner at...
 +
# Default: (7,7)
 +
TopLeftX=7
 +
TopLeftY=7
 +
 +
# use ASC symbols for icons & bars [default: no; legal, yes, no]
 +
UseACS=no
 +
 +
# draw Border [default: yes; legal: yes, no]
 +
DrawBorder=yes
 +
 +
 +
 +
## Cwlinux driver ##
 +
[CwLnx]
 +
 +
# Select the LCD model [default: 12232; legal: 12232, 12832, 1602]
 +
Model=12232
 +
 +
# Select the output device to use [default: /dev/lcd]
 +
Device=/dev/ttyUSB0
 +
 +
# Select the LCD size [default: depending on model: 12232: 20x4, 12832: 21x4, 1602: 16x2]
 +
Size=20x4
 +
 +
# Set the communication speed [default: 19200; legal: 9600, 19200]
 +
Speed=19200
 +
 +
# Reinitialize the LCD's BIOS [default: no; legal: yes, no]
 +
# normally you shouldn't need this
 +
Reboot=no
 +
 +
# If you have a keypad connected. Keypad layout is currently not
 +
# configureable from the config file.
 +
Keypad=yes
 +
 +
# If you have a non-standard keypad you can associate any keystrings to keys.
 +
# There are 6 input keys in the CwLnx hardware that generate characters
 +
# from 'A' to 'F'.
 +
#
 +
# The following is the built-in default mapping hardcoded in the driver.
 +
# You can leave those unchanged if you have a standard keypad.
 +
# You can change it if you want to report other keystrings or have a non
 +
# standard keypad.
 +
# KeyMap_A=Up
 +
# KeyMap_B=Down
 +
# KeyMap_C=Left
 +
# KeyMap_D=Right
 +
# KeyMap_E=Enter
 +
# KeyMap_F=Escape
 +
 +
# keypad_test_mode permits to test keypad assignement
 +
# Default value is no
 +
#keypad_test_mode=yes
 +
 +
 +
 +
## ea65 driver for the display in AOpen XC Cube AV EA65 media barebones ##
 +
[ea65]
 +
 +
# Device is fixed /dev/ttyS1
 +
# Width and Height are fixed 9x1
 +
 +
# As the VFD is self luminescent we don't have a backlight
 +
# But we can use the backlight functions to control the front LEDs
 +
# Brightness 0 to 299 -> LEDs off
 +
# Brightness 300 to 699 -> LEDs half bright
 +
# Brightness 700 to 1000 -> LEDs full bright
 +
Brightness=500
 +
# OffBrightness is the the value used for the 'backlight off' state
 +
OffBrightness=0
 +
 +
 +
 +
## EyeboxOne driver ##
 +
[EyeboxOne]
 +
 +
# Select the output device to use [default: /dev/ttyS1]
 +
#Device=/dev/cua01
 +
Device=/dev/ttyS1
 +
 +
# Set the display size [default: 20x4]
 +
Size=20x4
 +
 +
# Switch on the backlight? [default: yes]
 +
Backlight=yes
 +
 +
# Switch on the cursor? [default: no]
 +
Cursor=no
 +
 +
# Set the communication speed [default: 19200; legal: 1200, 2400, 9600, 19200]
 +
Speed=19200
 +
 +
# Enter Key is a \r character, so it's hardcoded in the driver
 +
LeftKey=D
 +
RightKey=C
 +
UpKey=A
 +
DownKey=B
 +
EscapeKey=P
 +
 +
# You can find out which key of your display sends which
 +
# character by setting keypad_test_mode to yes and running
 +
# LCDd. LCDd will output all characters it receives.
 +
# Afterwards you can modify the settings above and set
 +
# keypad_set_mode to no again.
 +
keypad_test_mode=no
 +
 +
 +
 +
## g15 driver for Logitech G15 Keyboard LCDs ##
 +
[g15]
 +
 +
# Display size (currently unused)
 +
size=20x5
 +
 +
 +
 +
## glcdlib meta driver for graphical LCDs ##
 +
[glcdlib]
 +
 +
## mandatory:
 +
 +
# which graphical display supported by graphlcd-base to use [default: image]
 +
# (see /etc/graphlcd.conf for possible drivers)
 +
Driver=noritake800
 +
 +
# no=use graphlcd bitmap fonts (they have only one size / font file)
 +
# yes=use fonts supported by FreeType2 (needs Freetype2 support in libglcdprocdriver and its dependants)
 +
UseFT2=yes
 +
 +
# text resolution in fixed width characters [default: 16x4]
 +
# (if it won't fit according to available physical pixel resolutioni
 +
# and the minimum available font face size in pixels, then
 +
# 'DebugBorder' will automatically be turned on)
 +
TextResolution=20x4
 +
 +
# path to font file to use
 +
FontFile=/usr/share/fonts/corefonts/courbd.ttf
 +
 +
## these only apply if UseFT2=yes:
 +
 +
# character encoding to use
 +
CharEncoding=iso8859-2
 +
 +
# minumum size in pixels in which fonts should be rendered
 +
MinFontFaceSize=7x12
 +
 +
## optional:
 +
Brightness=50                  # Brightness (in %) if applicable
 +
Contrast=50                    # Contrast (in %) if applicable
 +
Backlight=no                    # Backlight if applicable
 +
UpsideDown=no                  # flip image upside down
 +
Invert=no                      # invert light/dark pixels
 +
ShowDebugFrame=no              # turns on/off 1 pixel thick debugging
 +
                                # border whithin the usable text area,
 +
                                # for setting up TextResolution and
 +
                                # MinFontFaceSize (if using FT2);
 +
ShowBigBorder=no                # border around the unused area
 +
ShowThinBorder=yes              # border around the unused area
 +
PixelShiftX=0
 +
PixelShiftY=2
 +
 +
 +
 +
## Matrix Orbital GLK driver ##
 +
[glk]
 +
 +
# select the serial device to use [default: /dev/lcd]
 +
Device=/dev/lcd
 +
 +
# set the initial contrast value [default: 560; legal: 0 - 1000]
 +
Contrast=560
 +
 +
# set the serial port speed [default: 19200; legal: 9600, 19200, 38400]
 +
Speed=19200
 +
 +
 +
 +
## Hitachi HD44780 driver ##
 +
[hd44780]
 +
 +
# Select what type of connection. See documentation for types.
 +
ConnectionType=4bit
 +
 +
# Port where the LPT is [ususal: 0x278, 0x378 and 0x3BC]
 +
Port=0x378
 +
 +
# Device of the serial interface [default: /dev/lcd]
 +
Device=/dev/ttyS0
 +
 +
# Bitrate of the serial port (0 for interface default)
 +
Speed=0
 +
 +
# If you have a keypad connected.
 +
# You may also need to configure the keypad layout further on in this file.
 +
Keypad=no
 +
 +
# Set the initial contrast (bwctusb and lcd2usb) [default: 500; legal: 0 - 1000]
 +
Contrast=0
 +
 +
# Set brightness of the backlight (lcd2usb only) [default: 0; legal 0 - 1000]
 +
#Brightness=1000
 +
#OffBrightness=0
 +
 +
# If you have a switchable backlight.
 +
Backlight=no
 +
 +
# If you have the additional output port ("bargraph") and you want to
 +
# be able to control it with the lcdproc OUTPUT command
 +
OutputPort=no
 +
 +
# Specifies if the last line is pixel addressable or it controls an
 +
# underline effect. [default: true (= pixel addressable); legal: yes, no]
 +
#Lastline=true
 +
 +
# Specifies the size of the LCD.
 +
# In case of multiple combined displays, this should be the total size.
 +
Size=20x4
 +
 +
# For multiple combined displays: how many lines does each display have.
 +
# Vspan=2,2 means both displays have 2 lines.
 +
#vspan=2,2
 +
 +
# If you have an HD66712, a KS0073 or an other 'almost HD44780-compatible',
 +
# set this flag to get into extended mode (4-line linear).
 +
#ExtendedMode=yes
 +
 +
# In extended mode, on some controllers like the ST7036 (in 3 line mode)
 +
# the next line in DDRAM won't start 0x20 higher. [default: 0x20]
 +
#LineAddress=0x10
 +
 +
# Character map to to map ISO-8859-1 to the LCD's character set
 +
# [default: hd44780_default; legal: hd44780_default, hd44780_euro,
 +
#  ea_ks0073, sed1278f_0b ]
 +
CharMap=hd44780_default
 +
 +
# If your display is slow and cannot keep up with the flow of data from
 +
# LCDd, garbage can appear on the LCDd. Set this delay factor to 2 or 4
 +
# to increase the delays. Default: 1.
 +
#DelayMult=2
 +
 +
# Some displays (e.g. vdr-wakeup) need a message from the driver to that it
 +
# is still alive. When set to a value bigger then null the character in the
 +
# upper left corner is updated every <KeepAliveDisplay> seconds. Default: 0.
 +
#KeepAliveDisplay=0
 +
 +
# If you experience occasional garbage on your display you can use this
 +
# option as workaround. If set to a value bigger than null it forces a
 +
# full screen refresh <RefreshDiplay> seconds. Default: 0.
 +
#RefreshDisplay=5
 +
 +
# You can reduce the inserted delays by setting this to false.
 +
# On fast PCs it is possible your LCD does not respond correctly.
 +
# Default: true.
 +
DelayBus=true
 +
 +
# If you have a keypad you can assign keystrings to the keys.
 +
# See documentation for used terms and how to wire it.
 +
# For example to give directly connected key 4 the string "Enter", use:
 +
#  KeyDirect_4=Enter
 +
# For matrix keys use the X and Y coordinates of the key:
 +
#  KeyMatrix_1_3=Enter
 +
KeyMatrix_4_1=Enter
 +
KeyMatrix_4_2=Up
 +
KeyMatrix_4_3=Down
 +
KeyMatrix_4_4=Escape
 +
 +
 +
 +
## ICP A106 driver ##
 +
[icp_a106]
 +
Device=/dev/ttyS1
 +
 +
 +
 +
## Code Mercenaries IO-Warrior driver ##
 +
[IOWarrior]
 +
 +
# display dimensions
 +
Size=20x4
 +
 +
# serial number [exactly as listed by usbview]
 +
# (if not given, the 1st IOWarrior found gets used)
 +
#SerialNumber=00000674
 +
 +
# If you have an HD66712, a KS0073 or an other 'almost HD44780-compatible',
 +
# set this flag to get into extended mode (4-line linear).
 +
#ExtendedMode=yes
 +
 +
# Specifies if the last line is pixel addressable or it controls an
 +
# underline effect. [default: true (= pixel addressable); legal: yes, no]
 +
#Lastline=true
 +
 +
 +
 +
## Soundgraph/Ahanix/Silverstone/Uneed/Accent iMON driver ##
 +
[imon]
 +
 +
# select the device to use
 +
Device=/dev/lcd0
 +
 +
# display dimensions
 +
Size=16x2
 +
 +
 +
 +
## Soundgraph iMON LCD ##
 +
[imonlcd]
 +
# Specify which iMon protocol should be used [legal: 0=15c2:ffdc device,
 +
# 1=15c2:0038 device; default: 0]
 +
Protocol=1
 +
 +
# Set the exit behavior [legal: 0=leave shutdown message, 1=show the big clock,
 +
# 2=blank device; default: 1]
 +
OnExit=2
 +
 +
# Select the output device to use [default: /dev/lcd0]
 +
Device=/dev/lcd0
 +
 +
# Select the displays contrast [default: 200; legal: 0-1000]
 +
Contrast=200
 +
 +
# Specify the size of the display in pixels [default: 96x16]
 +
#Size=96x16
 +
 +
# Set the backlight state [default: on; legal: on, off]
 +
#Backlight=on
 +
 +
# Set the disc mode [legal: 0=spin the "slim" disc - two disc segments,
 +
# 1=their complement spinning; default: 0]
 +
#DiscMode=0
 +
 +
 +
 +
## IrMan driver ##
 +
[IrMan]
 +
# in case of trouble with IrMan, try the Lirc emulator for IrMan
 +
 +
# Select the input device to use
 +
#Device=/dev/irman
 +
 +
# Select the configuration file to use
 +
#Config=/etc/irman.cfg
 +
 +
 +
 +
## IRtrans driver ##
 +
[irtrans]
 +
 +
# Does the device have a backlight? [default: no; legal: yes, no]
 +
#Backlight=no
 +
 +
# IRTrans device to connect to [default: localhost]
 +
#Hostname=localhost
 +
 +
# display dimensions
 +
Size=16x2
 +
 +
 +
 +
## Joystick driver ##
 +
[joy]
 +
 +
# Select the input device to use [default: /dev/js0]
 +
Device=/dev/js0
 +
 +
# set the axis map
 +
Map_Axis1neg=Left
 +
Map_Axis1pos=Right
 +
Map_Axis2neg=Up
 +
Map_Axis2pos=Down
 +
 +
# set the button map
 +
Map_Button1=Enter
 +
Map_Button2=Escape
 +
 +
 +
 +
## LB216 driver ##
 +
[lb216]
 +
 +
# Select the output device to use [default: /dev/lcd]
 +
Device=/dev/lcd
 +
 +
# Set the initial brightness [default: 255; legal: 0 - 255]
 +
Brightness=255
 +
 +
# Set the communication speed [default: 9600; legal: 2400, 9600]
 +
Speed=9600
 +
 +
# Reinitialize the LCD's BIOS [default: no; legal: yes, no]
 +
Reboot=no
 +
 +
 +
 +
## LCDM001 driver ##
 +
[lcdm001]
 +
 +
Device=/dev/ttyS1
 +
 +
# keypad settings
 +
# Keyname      Function
 +
#              Normal context              Menu context
 +
# -------      --------------              ------------
 +
# PauseKey    Pause/Continue              Enter/select
 +
# BackKey      Back(Go to previous screen) Up/Left
 +
# ForwardKey  Forward(Go to next screen)  Down/Right
 +
# MainMenuKey  Open main menu              Exit/Cancel
 +
PauseKey=LeftKey
 +
BackKey=UpKey
 +
ForwardKey=DownKey
 +
MainMenuKey=RightKey
 +
 +
# You can rearrange the settings here.
 +
# If your device is broken, have a look at server/drivers/lcdm001.h
 +
 +
 +
 +
## HNE LCTerm driver ##
 +
[lcterm]
 +
Device=/dev/ttyS1
 +
Size=16x2
 +
 +
 +
 +
## LIRC input driver ##
 +
[lirc]
 +
 +
# Specify an alternative location of the lircrc file [default: ~/.lircrc]
 +
#lircrc=/etc/lircrc.lcdproc
 +
 +
# Must be the same as in your lircrc
 +
#prog=lcdd
 +
 +
 +
 +
## LIS MCE 2005 driver ##
 +
[lis]
 +
 +
# Set the initial brightness [default: 1000; legal: 0 - 1000]
 +
# 0-250 = 25%, 251-500 = 50%, 501-750 = 75%, 751-1000 = 100%
 +
#Brightness=1000
 +
 +
# Columns by lines [default: 20x2]
 +
#Size=20x2
 +
 +
# USB Vendor ID [default: 0x0403]
 +
# Change only if testing a compatible device.
 +
#VendorID=0x0403
 +
 +
# USB Product ID [default: 0x6001]
 +
# Change only if testing a compatible device.
 +
#ProductID=0x6001
 +
 +
 +
 +
##The driver for the VFD of the Medion MD8800 PC ##
 +
[MD8800]
 +
# device to use [default: /dev/ttyS1]
 +
#Device=/dev/ttyS1
 +
 +
# display size [default: 16x2]
 +
#Size=16x2
 +
 +
# Set the initial brightness [default: 1000; legal: 0 - 1000]
 +
Brightness=1000
 +
# Set the initial off-brightness [default: 0; legal: 0 - 1000]
 +
# This value is used when the display is normally
 +
# switched off in case LCDd is inactive
 +
OffBrightness=50
 +
 +
 +
 +
## MSI MS-6931 driver for displays in 1HU servers ##
 +
[ms6931]
 +
 +
# device to use [default: /dev/ttyS1]
 +
Device=/dev/ttyS1
 +
 +
# display size [default: 16x2]
 +
#Size=16x2
 +
 +
 +
 +
## MTC-S16209x driver ##
 +
[mtc_s16209x]
 +
 +
# Select the output device to use [default: /dev/lcd]
 +
Device=/dev/lcd
 +
 +
# Set the initial brightness [default: 255; legal: 0 - 255]
 +
Brightness=255
 +
 +
# Reinitialize the LCD's BIOS [default: no; legal: yes, no]
 +
Reboot=no
 +
 +
 +
 +
## Matrix Orbital driver ##
 +
[MtxOrb]
 +
 +
# Select the output device to use [default: /dev/lcd]
 +
Device=/dev/ttyS0
 +
 +
# Set the display size [default: 20x4]
 +
Size=20x4
 +
 +
# Set the display type [default: lcd; legal: lcd, lkd, vfd, vkd]
 +
Type=lkd
 +
 +
# Set the initial contrast [default: 480]
 +
# NOTE: The driver will ignore this if the display
 +
#      is a vfd or vkd as they don't have this feature
 +
Contrast=480
 +
 +
# Some old displays do not have an adjustable backlight but only can
 +
# switch the backlight on/off. If you experience randomly appearing block
 +
# characters, try setting this to false. [default: yes; legal: yes, no]
 +
hasAdjustableBacklight=no
 +
 +
# Set the initial brightness [default: 1000; legal: 0 - 1000]
 +
Brightness=1000
 +
# Set the initial off-brightness [default: 0; legal: 0 - 1000]
 +
# This value is used when the display is normally
 +
# switched off in case LCDd is inactive
 +
OffBrightness=0
 +
 +
# Set the communication speed [default: 19200; legal: 1200, 2400, 9600, 19200]
 +
Speed=19200
 +
 +
# The following table translates from MtxOrb key letters to logical key names.
 +
# By default no keys are mapped, meaning the keypad is not used at all.
 +
#KeyMap_A=Left
 +
#KeyMap_B=Right
 +
#KeyMap_C=Up
 +
#KeyMap_D=Down
 +
#KeyMap_E=Enter
 +
#KeyMap_F=Escape
 +
# See the [menu] section for an explanation of the key mappings
 +
 +
# You can find out which key of your display sends which
 +
# character by setting keypad_test_mode to yes and running
 +
# LCDd. LCDd will output all characters it receives.
 +
# Afterwards you can modify the settings above and set
 +
# keypad_set_mode to no again.
 +
keypad_test_mode=no
 +
 +
 +
 +
## mx5000 driver for LCD display on the Logitech MX5000 keyboard ##
 +
[mx5000]
 +
 +
# Select the output device to use [default: /dev/hiddev0]
 +
Device = /dev/hiddev0
 +
# Time to wait in ms after the refresh screen has been sent [default: 1000]
 +
WaitAfterRefresh = 1000
 +
 +
 +
 +
## Noritake VFD driver ##
 +
[NoritakeVFD]
 +
# device where the VFD is. Usual values are /dev/ttyS0 and /dev/ttyS1 [default: /dev/lcd]
 +
Device=/dev/ttyS0
 +
# Specifies the size of the LCD.
 +
Size=20x4
 +
# Set the initial brightness [default: 1000; legal: 0 - 1000]
 +
Brightness=1000
 +
# Set the initial off-brightness [default: 0; legal: 0 - 1000]
 +
# This value is used when the display is normally
 +
# switched off in case LCDd is inactive
 +
OffBrightness=50
 +
# set the serial port speed [default: 9600, legal: 1200, 2400, 9600, 19200, 115200]
 +
Speed=9600
 +
# Set serial data parity [default: 0 (None), legal: 0(=none), 1(=odd), 2(=even)]
 +
Parity=0
 +
# re-initialize the VFD [default: no; legal: yes, no]
 +
Reboot=no
 +
 +
 +
 +
## Mini-box.com picoLCD (usblcd) driver ##
 +
[picolcd]
 +
 +
# KeyTimeout is the time that LCDd spends waiting for a key press before cycling
 +
# through other duties.  Higher values make LCDd use less CPU time and make
 +
# key presses more detectable.  Lower values make LCDd more responsive but a
 +
# little prone to missing key presses.  500 (.5 second) is the default and a
 +
# balanced value.
 +
KeyTimeout=500
 +
 +
# Set the initial brightness [default: 1000; legal: 0 - 1000]
 +
Brightness=1000
 +
 +
# Set the initial contrast [default: 1000; legal: 0 - 1000]
 +
Contrast=1000
 +
 +
# Light the keys? i[default: on; legal: on, off]
 +
Keylights=on
 +
 +
# If Keylights is on, the you can unlight specific keys below:
 +
# Key0 is the directional pad.  Key1 - Key5 correspond to the F1 - F5 keys. 
 +
# There is no LED for the +/- keys.  This is a handy way to indicate to users
 +
# which keys are disabled.  [default: on; legal: on, off]
 +
Key0Light=on
 +
Key1Light=on
 +
Key2Light=on
 +
Key3Light=on
 +
Key4Light=on
 +
Key5Light=on
 +
 +
# Host name or IP address of the LIRC instance that is to receive IR codes
 +
# If not set, or set to an empty value, IR support is disabled.
 +
#LircHost=127.0.0.1
 +
 +
# UDP port on which LIRC is listening [default: 8765; legal: 1 - 65535]
 +
LircPort=8765
 +
 +
# Duration in jiffies of the synthesized sync pulse [default: 64; 0 to suppress]
 +
LircSync=64
 +
 +
# Duration in jiffies of the synthesized gap; 0 to suppress, default 2048.
 +
# This is really the fixed duration of an entire IR command; individual pulse/space
 +
# durations are deducted from this to determine the duration of the trailing gap.
 +
LircLength=2048
 +
 +
 +
 +
## Pyramid LCD driver ##
 +
[pyramid]
 +
 +
# device to connect to [default: /dev/lcd]
 +
Device=/dev/ttyUSB0
 +
 +
 +
 +
## Seiko Epson 1330 driver ##
 +
[sed1330]
 +
 +
# Port where the LPT is. Common values are 0x278, 0x378 and 0x3BC
 +
Port=0x378
 +
 +
# Type of LCD module (legal: G321D, G121C, G242C, G191D, G2446, SP14Q002)
 +
# Note: Currently only tested with G321D & SP14Q002.
 +
Type=G321D
 +
 +
# Width x Height of a character cell in pixels [legal: 6x7 - 8x16; default: 6x10]
 +
CellSize=6x10
 +
 +
# Select what type of connection [legal: classic, bitshaker; default: classic]
 +
ConnectionType=classic
 +
 +
 +
 +
## Seiko Epson 1520 driver ##
 +
[sed1520]
 +
 +
# Port where the LPT is. Usual values are 0x278, 0x378 and 0x3BC
 +
Port=0x378
 +
 +
 +
 +
## serial POS display driver ##
 +
[serialPOS]
 +
 +
# Device to use in serial modea [default: /dev/lcd]
 +
Device=/dev/lcd
 +
 +
# Specifies the size of the display in characters. [default: 16x2]
 +
Size=16x2
 +
 +
# Set the communication protocol to use with the POS display.
 +
# [default: AEDEX; legal: IEE, Epson, Emax, IBM, LogicControls, Ultimate]
 +
Type=AEDEX
 +
 +
# communication baud rate with the display [default: 9600; legal: 1200, 2400, 19200, 115200]
 +
Speed=9600
 +
 +
 +
 +
## Serial VFD driver ##
 +
## Drives various (see below) serial 5x7dot VFD's.  ##
 +
[serialVFD]
 +
 +
# Specifies the displaytype.[default: 0]
 +
# 0 NEC (FIPC8367 based) VFDs.
 +
# 1 KD Rev 2.1.
 +
# 2 Noritake VFDs (*).
 +
# 3 Futaba VFDs
 +
# 4 IEE S03601-95B
 +
# 5 IEE S03601-96-080 (*)
 +
# 6 Futaba NA202SD08FA (allmost IEE compatible)
 +
# 7 Samsung 20S207DA4 and 20S207DA6
 +
# 8 Nixdorf BA6x / VT100
 +
# (* most should work, not testet yet.)
 +
Type=0
 +
 +
# "no" if display connected serial, "yes" if connected parallel. [default: no(=serial)]
 +
use_parallel=no
 +
 +
# Number of Custom-Characters [default: displaytype dependent]
 +
#Custom-Characters=0
 +
 +
# Portaddress where the LPT is. Used in parallelmode only. Usual values are 0x278, 0x378 and 0x3BC
 +
Port=0x378
 +
 +
# Set parallel port timingdelay (us). Used in parallelmode only. [default: 2; legal: 0 - 255]
 +
#PortWait=2
 +
 +
# Device to use in serial mode. Usual values are /dev/ttyS0 and /dev/ttyS1
 +
Device=/dev/ttyS1
 +
 +
# Specifies the size of the VFD.
 +
Size=20x2
 +
 +
# Set the initial brightness [default: 1000; legal: 0 - 1000]
 +
# (4 steps 0-250, 251-500, 501-750, 751-1000)
 +
Brightness=1000
 +
# Set the initial off-brightness [default: 0; legal: 0 - 1000]
 +
# This value is used when the display is normally
 +
# switched off in case LCDd is inactive
 +
# (4 steps 0-250, 251-500, 501-750, 751-1000)
 +
OffBrightness=0
 +
 +
# set the serial port speed [default: 9600; legal: 1200, 2400, 9600, 19200, 115200]
 +
Speed=9600
 +
 +
# enable ISO 8859 1 compatibility [default: yes; legal: yes, no]
 +
#ISO_8859_1=yes
 +
 +
 +
 +
## shuttleVFD driver ##
 +
[shuttleVFD]
 +
# No options
 +
 +
 +
 +
## stv5730 driver ##
 +
[stv5730]
 +
 +
# Port the device is connected to [default: 0x378]
 +
Port=0x378
 +
 +
 +
 +
## SVGAlib driver ##
 +
[svga]
 +
 +
# svgalib mode to use [default: G320x240x256; legal: supported svgalib modes]
 +
#Mode=G640x480x256
 +
 +
# set display size [default: 20x4]
 +
Size=20x4
 +
 +
# Set the initial contrast [default: 500; legal: 0 - 1000]
 +
# Can be set but does not change anything internally
 +
Contrast=500
 +
 +
# Set the initial brightness [default: 1000; legal: 1 - 1000]
 +
Brightness=1000
 +
 +
# Set the initial off-brightness [default: 500; legal: 1 - 1000]
 +
# This value is used when the display is normally
 +
# switched off in case LCDd is inactive
 +
OffBrightness=500
 +
 +
 +
 +
## Text driver ##
 +
[text]
 +
# Set the display size [default: 20x4]
 +
Size=20x4
 +
 +
 +
 +
## Toshiba T6963 driver ##
 +
[t6963]
 +
 +
# set display size [default: 20x6]
 +
Size=20x6
 +
 +
# port to use [default: 0x378; legal: 0x200 - 0x400]
 +
Port=0x378
 +
 +
# Is ECP mode on? [default: yes; legal: yes, no]
 +
#ECPlpt=yes
 +
 +
# Use graphics? [default: no; legal: yes, no]
 +
#graphic=no
 +
 +
 +
 +
## Tyan Barebones LCD driver (GS10 & GS12 series) ##
 +
[tyan]
 +
 +
# Select the output device to use [default: /dev/lcd]
 +
Device=/dev/lcd
 +
 +
# Set the communication speed [default: 9600; legal: 4800, 9600]
 +
Speed=9600
 +
 +
# set display size [default: 16x2]
 +
Size=16x2
 +
 +
 +
 +
## ELV ula200 driver ##
 +
[ula200]
 +
 +
# Select the LCD size [default: 20x4]
 +
Size=20x4
 +
 +
# If you have a non standard keypad you can associate any keystrings to keys.
 +
# There are 6 input key in the CwLnx hardware that generate characters
 +
# from 'A' to 'F'.
 +
#
 +
# The following it the built-in default mapping hardcoded in the driver.
 +
# You can leave those unchanged if you have a standard keypad.
 +
# You can change it if you want to report other keystrings or have a non
 +
# standard keypad.
 +
# KeyMap_A=Up
 +
# KeyMap_B=Down
 +
# KeyMap_C=Left
 +
# KeyMap_D=Right
 +
# KeyMap_E=Enter
 +
# KeyMap_F=Escape
 +
 +
 +
 +
## Wirz SLI LCD driver ##
 +
[sli]
 +
 +
# Select the output device to use [default: /dev/lcd]
 +
Device=/dev/lcd
 +
 +
# Set the communication speed [default: 19200; legal: 1200, 2400, 9600, 19200, 38400, 57600, 115200]
 +
Speed=19200
 +
 +
 +
 +
## OnScreen Display using libxosd ##
 +
[xosd]
 +
 +
# set display size [default: 20x4]
 +
Size=20x4
 +
 +
# Offset in pixels from the top-left corner of the monitor [default: 0x0]
 +
Offset=200x200
 +
 +
# X font to use, in XLFD format, as given by "xfontsel"
 +
Font=-*-terminus-*-r-*-*-*-320-*-*-*-*-*
 +
 +
# EOF
 +
}}
 +
 +
Restart LCDd
 +
{{Code box|sudo /etc/init.d/LCDd restart|}}
 +
 +
You'll now have to change setting within MythTV to get the time to be displayed.  I'll post those instructions later.
 +
 +
Restart your computer if you still don't see the time.  Then all should work.
  
 
'''Good Luck!'''
 
'''Good Luck!'''

Revision as of 15:05, 11 June 2011

Info

This page contains all of the files and information I needed to get my Antec Fusion Case (Black finish, uses the newer iMon LCD 15c2:0038) and it's included Veris RM200 remote working. There is also a section describing how to setup a Logitech Harmony One Universal Remote Controller that works with this setup. Note that I used Mythbuntu 10.10, but any type of Ubuntu 10.10 should also work with this setup instructions.

It also includes instructions to get the LCD up and running.

LIRC

If you're doing a fresh install of Mythbuntu 10.10, there is no configuration to set what /dev/input/eventX device you want to utilize. So just follow the below directions to get you up and running.

Note on the Knob

The volume knob on the Antec Case should work right out of the box.

Directions to get Remote Working

Perform all of the following in order.

Step 1 - Uninstall LIRC and Reinstall it

Un-install LIRC so that any errors that were going on before won't come up. Open up a terminal, and type the following in:

Script.png sudo apt-get purge lirc


Then you want to reinstall LIRC so that we can have the configuration settings come up and we can configure lIRC. In the same terminal window, perform the following::

Script.png sudo apt-get install lirc


You'll get a configuration window within your terminal window. Here's what you are going to want to do.

First, select the Linux Dev Input:

Script.png Linux input layer (/dev/input/eventX)


If you have an IR transmitter (I didn't), go ahead and select that on the next screen

Now, in a separate terminal window (Open a new one by clicking on "File," "Open Terminal"), perform the following command to find out which event your remote is on:

Script.png cat /proc/bus/input/devices


Here is the information I got from running that (note the "event4" which is what I selected then):

Script.png cat /proc/bus/input/devices

I: Bus=0003 Vendor=15c2 Product=0038 Version=0002
N: Name="iMON Remote (15c2:0038)"
P: Phys=usb-0000:00:1d.1-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.1/usb7/7-1/7-1:1.0/rc/rc0/input4
U: Uniq=
H: Handlers=kbd mouse1 event4
B: EV=100007
B: KEY=fff 0 400000108c0320 2d5008200000000 30000 400119000 419614100801 809e168000000000 200000010004002
B: REL=103


Mine was "event4," so I selected that on the last screen. Select whatever event your is on (i.e. - The event under H: Handlers)

Now that we have finished the configuration for LIRC, type in "irw" (without the quotes) in the terminal, press the mouse/keyboard toggle button on your controller (mine was right below the stop button), and start pressing buttons on your remote.

If all goes well, you should be seeing key presses output. You're almost there.

Now, go to:


Script.png MythTV Frontend -> Utilities/Setup -> Setup -> General

Under the "Remote Control" screen, change the LIRC daemon socket to "/dev/lircd"

Step 2 - Button Configuration

After you have performed the above, you'll have to configure your buttons to work properly with MythTV. To do this, go ahead and edit this file: ~/.lirc/mythtv To edit, go to a terminal window and type "gedit ~/.lirc/mythtv" (without quotes), or if you use vim "vim ~/.lirc/mythtv"

Here is what my button configuration looks like, this should work for you as well:


Script.png ~/.lirc/mythtv

# LIRCRC
# Author(s): Mario Limonciello, Nick Fox, John Baab, Edited by Chris Murphy
# Created for use with Mythbuntu 10.10
begin
    remote = devinput
    prog = mythtv
    button = KEY_EXIT
    config = Escape
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_RECORD
    config = R
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_PLAY
    config = P
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_REWIND
    config = <
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_PAUSE
    config = P
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_FASTFORWARD
    config = >
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_PREVIOUS
    config = Up
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_STOP
    config = Escape
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NEXT
    config = Down
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NEXT
    config = Down
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_BACKSPACE
    config = Escape
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_SELECT
    config = Return
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_CONTEXT_MENU
    config = Q
    repeat = 0
    delay = 0
end 

begin
    remote = devinput
    prog = mythtv
    button = KEY_COMPOSE
    config = Z
    repeat = 0
    delay = 0
end 

begin
    remote = devinput
    prog = mythtv
    button = KEY_ENTER
    config = Return
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_UP
    config = Up
    repeat = 3
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_DOWN
    config = Down
    repeat = 3
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_LEFT
    config = Left
    repeat = 3
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_RIGHT
    config = Right
    repeat = 3
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_ESC
    config = Escape
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_DASHBOARD
    config = S
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_PROG1
    config = Return
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_CYCLEWINDOWS
    config = I
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_MUTE
    config = |
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_VOLUMEUP
    config = ]
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_VOLUMEDOWN
    config = [
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_CHANNELUP
    config = Up
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_CHANNELDOWN
    config = Down
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_TIME
    config = F8
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_1
    config = 1
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_2
    config = 2
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_3
    config = 3
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_4
    config = 4
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_5
    config = 5
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_6
    config = 6
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_7
    config = 7
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_8
    config = 8
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_9
    config = 9
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_0
    config = 0
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_POUND
    config = D
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_STAR
    config = ?
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_BOOKMARKS
    config = C
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_MEDIA
    config = O
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_ZOOM
    config = W
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_SCREEN
    config = F
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_MENU
    config = M
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_SUBTITLE
    config = T
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_LANGUAGE
    config = +
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_VIDEO
    config = \U
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_AUDIO
    config = \M
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_CAMERA
    config = \I
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_TV
    config = \T
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_DVD
    config = \D
    repeat = 0
    delay = 0
end


Now make a new file (or edit the old one) ~/.lirc/irexec with the following contents. Make sure to replace 'user' with your username (not mythtv).

Script.png ~/.lirc/irexec

# LIRCRC Auto Generated by Mythbuntu Lirc Generator
# Author(s): Mario Limonciello, Nick Fox, John Baab, edited by Chris Murphy
# Created for use with Mythbuntu

begin
    remote = devinput
    prog = irexec
    button = KEY_POWER
    config = /home/user/Scripts/runmyth.sh &
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = irexec
    button = KEY_EJECTCD
    config = /home/user/Scripts/eject.sh &
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = irexec
    button = KEY_EJECTCLOSECD
    config = /home/user/Scripts/eject.sh &
    repeat = 0
    delay = 0
end


A few notes about the above keys. They were adapted from a conversation on ubuntuforums.org:

   * The knob sends the same codes for volume up/down as the remote on devinput, so that part was dropped.
   * Videos, Music, Pictures, TV, and DVD are configured for JumpPoints. Step 4 discusses the procedures for this.
   * Menu Up (KEY_CONTEXT_MENU) and Menu Down (KEY_COMPOSE), the buttons to the left and right of the joystick, are commercial skip backward (Q) and forward (Z), respectively.
   * App Launcher (KEY_DASHBOARD) is the on-screen guide, and Task Switcher (KEY_CYCLEWINDOWS) is info.
   * Star (toggles channel favorites and hash (#) is Delete (D)

Step 3 - irexec Files

We need to setup two irexec scripts for use with irexec. These need to go in ~/Scripts and you need to chmod +x them. Note that if you have a strange setup and your main DVD drive is not /dev/sr0, you will need to change this accordingly.

Script.png ~/Scripts/eject.sh

#!/bin/bash
eject -T /dev/sr0


Script.png ~/Scripts/runmyth.sh

#!/bin/bash
if [ -z `ps -e -o pid,command | grep mythfrontend | grep -v grep` ]
then
    mythfrontend &
    (for i in $( seq 1 100 )
    do
        echo $i;
        sleep 0.1;
    done) | zenity --auto-close --progress --text="Starting MythTV. This may take longer than this dialog shows." --title="Starting MythTV"
else
    zenity --question --text="Are you sure you wish to exit MythTV?" --title="Exit MythTV?"
    if [ $? == 0 ]
    then
        for x in $( ps -e -o pid,command | grep mythfrontend | grep -v grep );
        do
            if [ `expr index "$x" "/"` == 1 ]
            then
                continue;
            else
                kill $x;
            fi
        done
    fi
fi


After you have completed all of the above, restart your computer (this is very important, otherwise your remote control buttons might not actually work).

Step 4 - Setup MythTV Special Keys

The last step is to make sure the coloured buttons on the remote work. To do this, go to Utilities/Setup -> Edit Keys and find the following keys under JumpPoints and set a new binding by pressing the corresponding button on the remote. Make sure you have already rebooted your computer to get the remote working right.

Live TV -> TV (Yellow)
MythGallery -> Pictures (Blue)
MythVideo -> Videos (Red)
Play DVD -> DVD (Purple)
Play music -> Music (Green)

Harmony One Universal Remote

Here are instructions on how to get a Harmony One Universal Remote control working with your MythTV box.

Note, using the configuration settings that I give with these instructions, require that you slightly change your ~/.lirc/mythtv file that we edited above. There is only a few changes which allow us to utilize an already created Logitech Harmony One remote control profile which has almost all buttons for the Antec Veris Controller.

First thing you'll want to do is open up the "Logitech Harmony Remote Software" on a Windows or Mac computer (basically the same one you used to configure your other devices to use the universal remote with). In there, you'll want to add a new device.

Use the Remote Control profile, under Media Center PC, called "Silverstone" with model number of "LC-20M"

Then created a Watch TV Activity with the proper devices (Mine had the TV, Receiver, and Media Center PC devices).

After creating that activity, I first edited it to change its name to "MythTV," then went to the "Customize Buttons" area to map the correct buttons (most of which were already correct, I just added some needed functions like the Live TV, Videos, etc.).

See below for the custom button settings:


Script.png Button Settings in Logitech Software

Standard Buttons:

Button		Device			Command
Menu		Media Center PC		Menu
Exit		Media Center PC		Esc
Up Arrow	Media Center PC		ChannelUp
Down Arrow	Media Center PC		ChannelDown
Info		Media Center PC		TaskSwitcher
Guide		Media Center PC		AppLauncher
Volume Up	AV Receiver		VolumeUp
Volume Down	AV Receiver		VolumeDown
Mute		AV Receiver		Mute
Up		Media Center PC		DirectionUp
Down		Media Center PC		DirectionDown
Left		Media Center PC		DirectionLeft
Right		Media Center PC		DirectionRight
OK		Media Center PC		Enter
Channel Up	Media Center PC		ChannelUp
Channel Down	Media Center PC		ChannelDown
Prev		Media Center PC		FullScreen
	(note, I didn't ever use the FullScreen button for anything,
	so I converted it to be used for previous channel instead)
Rewind		Media Center PC		Rewind
Skip Back	Media Center PC		SkipBack
Record		Media Center PC		Record
Play		Media Center PC		Play
Pause		Media Center PC		Pause
Fast Forward	Media Center PC		FastForward
Skip Forward	Media Center PC		SkipForward
Stop		Media Center PC		Stop
1		Media Center PC		1
2		Media Center PC		2
3		Media Center PC		3
4		Media Center PC		4
5		Media Center PC		5
6		Media Center PC		6
7		Media Center PC		7
8		Media Center PC		8
9		Media Center PC		9
Plus					
(note, I'm not utilizing the plus on the actual controller,
just on the color screen - custom button)
0		Media Center PC		0
E					(not utilizing the E button)


Additional Buttons:

Label		Device			Command
Toggle		Media Center PC		Mouse/Keyboard
	(Note: Toggles between the 2 modes)
Eject		Media Center PC		Eject
Favorite	Media Center PC		*
Commercial Skip	Media Center PC		RClickMenu
Delete		Media Center PC		#
App Exit	Media Center PC		AppExit
Live TV		Media Center PC		Yellow
Videos		Media Center PC		Red
Play Music	Media Center PC		Green
Play DVD	Media Center PC		DVD
Pictures	Media Center PC		Blue


Now, before you go and test this on your MythTV, make sure you change your ~/.lirc/mythtv file like below. Then restart your MythTV box and test your controller. You should be all set then.


Script.png ~/.lirc/mythtv - used with Harmony One Universal Remote and Soundgraph IR

# LIRCRC Auto Generated by Mythbuntu Lirc Generator
# Author(s): Mario Limonciello, Nick Fox, John Baab, edited by Chris Murphy
# Created for use with Mythbuntu 10.10
begin
    remote = devinput
    prog = mythtv
    button = KEY_EXIT
    config = Escape
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_RECORD
    config = R
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_PLAY
    config = P
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_REWIND
    config = <
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_PAUSE
    config = P
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_FASTFORWARD
    config = >
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_PREVIOUS
    config = Up
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_STOP
    config = Escape
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NEXT
    config = Down
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NEXT
    config = Down
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_BACKSPACE
    config = Escape
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_SELECT
    config = Return
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_CONTEXT_MENU
    config = Q
    repeat = 0
    delay = 0
end 

begin
    remote = devinput
    prog = mythtv
    button = KEY_COMPOSE
    config = Z
    repeat = 0
    delay = 0
end 

begin
    remote = devinput
    prog = mythtv
    button = KEY_ENTER
    config = Return
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_UP
    config = Up
    repeat = 3
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_DOWN
    config = Down
    repeat = 3
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_LEFT
    config = Left
    repeat = 3
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_RIGHT
    config = Right
    repeat = 3
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_ESC
    config = Escape
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_DASHBOARD
    config = S
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_PROG1
    config = Return
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_CYCLEWINDOWS
    config = I
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_MUTE
    config = |
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_VOLUMEUP
    config = ]
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_VOLUMEDOWN
    config = [
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_CHANNELUP
    config = Up
    repeat = 3
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_CHANNELDOWN
    config = Down
    repeat = 3
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_TIME
    config = F8
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_1
    config = 1
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_2
    config = 2
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_3
    config = 3
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_4
    config = 4
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_5
    config = 5
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_6
    config = 6
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_7
    config = 7
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_8
    config = 8
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_9
    config = 9
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_0
    config = 0
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_POUND
    config = D
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_NUMERIC_STAR
    config = ?
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_BOOKMARKS
    config = C
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_MEDIA
    config = O
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_ZOOM
    config = W
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_SCREEN
    config = H
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_MENU
    config = M
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_SUBTITLE
    config = T
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_LANGUAGE
    config = +
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_VIDEO
    config = \U
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_AUDIO
    config = \M
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_CAMERA
    config = \I
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_TV
    config = \T
    repeat = 0
    delay = 0
end

begin
    remote = devinput
    prog = mythtv
    button = KEY_DVD
    config = \D
    repeat = 0
    delay = 0
end

LCD Installation Instructions

Installation instructions to get LCD working on Soundgraph iMON Antec Veris

Install LCDd application:

Script.png sudo apt-get install lcdproc

Verify that you have an LCD and not a VFD:

Script.png lsusb
grep -i 15c2

If you get a device other than the :ffdc or :0038, it's likely not yet supported by lcdproc.

If lsusb returns nothing, then lirc isn't finding your device. Ensure that it's plugged in and powered up. Verify that the lirc_imon module is loaded:


Script.png lsmod
grep lirc

Edit LCDd.conf File

Edit the LCDd.conf file:

Script.png sudo gedit /etc/LCDd.conf

Look for the "Driver=" line around line 53. Change it to read:

Script.png '
{{{2}}}

Find the [imonlcd] section around line #557. Ensure that the "Protocol=" line matches your device. 0 for the :ffdc, 1 for the :0038 Set the "OnExit=" line to your liking. Ensure that the device on the "Device=" line exists:

Script.png ls /dev/lcd*


Script.png ~/etc/LCDd.conf - Here's what my LCDd.conf file looks like
{{{2}}}

Restart LCDd

Script.png sudo /etc/init.d/LCDd restart

You'll now have to change setting within MythTV to get the time to be displayed. I'll post those instructions later.

Restart your computer if you still don't see the time. Then all should work.

Good Luck!
And enjoy using your newly configured remote with MythTV!!!!