NOTE: the R6 based how to is at:
http://knoppmyth.net/phpBB2/viewtopic.p ... 259#126259
I was determined to get the IMON/LCD to work on the Antec Fusion Black 430 and I can now confirm it is possible with the very latest LIRC and LCDd components.
This procedure will allow you to have Myth present info on the LCD and for you to use an MCE RC6 based remote with the built in IR sensor. Other remotes may work but I have not tested this.
Included here are the steps you require to make it happen and based on feedback from others on optimizing certain steps I will update this.
Enjoy!
Christ.
============
What you will require:
lirc 0.8.4a or higher
lcdproc 0.5.2 (or higher)
lcdproc-0.5.2-imonlcd-0.3.patch (for lcdproc 0.5.2)
check
http://codeka.com/forums/viewtopic.php?f=3&t=22 for latest versions.
I provide examples of the following files after the instructions. I appologize for quoting the files in line below but I couldn't figure out how to attach them yet these files are critical to your success.
/etc/lcdproc/LCDd.conf file (verify /etc/init.d/LCDd has this for config path)
/etc/lirc/hardware.conf (maps device, driver, and conf file)
/etc/lirc/lircd.conf (maps IMON IR codes for LIRC)
/home/mythtv/.mythtv/lircrc (maps lirc tags to myth actions)
PREPARING:
---------------
move the old lirc_imon.ko out of the way or it will interfere with loading the new one:
Code:
mv /lib/modules/2.6.23-chw-4/misc/lirc_imon.ko /lib/modules/2.6.23-chw-4/misc/lirc_imon.ko.old
In part as referenced in the how-to:
http://www.knoppmythwiki.org/index.php?page=LIRCHowToCode:
cd /usr/src
verify sources point to stable and update apt.
Code:
vi /etc/apt/sources.list
apt-get update
Now get rid of the old stuff:
Code:
apt-get remove lirc lcdproc
Code:
m-a update
m-a prepare
You also need to link the headers to the linux directory:
Code:
ln -s linux-headers-2.6.23-chw-4 linux
Double check that no ".ko" or ".so" files exist for lirc_imon or imonlcd
Code:
find / -name lirc\_imon\* -print
find / -name imonlcd\* -print
If you find some, move them out of the way by adding say ".old" to the file name. But the above procedures should have removed anything.
LIRC:
-------
Get and unpack the latest lirc:
Code:
cd /usr/src
wget http://prdownloads.sourceforge.net/lirc/lirc-0.8.4a.tar.bz2
tar jxvf lirc-0.8.4a.tar.bz2
cd lirc-0.8.4a
Configure it by executing the following and choose "Driver Configuration" then "USB Devices" then "Soundgraph iMON IR/LCD"
Code:
./setup.sh
Now make and install:
Code:
make
make install
Now you can copy the hardware.conf, lircd.conf, and lircrc files to:
Code:
/etc/lirc/hardware.conf
/etc/lirc/lircd.conf
/home/mythtv/.mythtv/lircrc
and modify them as you see fit.
LCD PROC:
--------------
Obtain the latest files:
Code:
cd /usr/src
wget http://internap.dl.sourceforge.net/sourceforge/lcdproc/lcdproc-0.5.2.tar.gz
tar -zxvf lcdproc-0.5.2.tar.gz
For 0.5.2 you will need a patch for the IMON/LCD
Code:
wget http://codeka.com/blogs/imon/lcdproc-0.5.2-imonlcd-0.3.patch
Now let's build, patch, and install
Code:
cd lcdproc-0.5.2
patch -p1 < ../lcdproc-0.5.2-imonlcd-0.3.patch
aclocal
autoconf
automake
./configure --enable-drivers=imonlcd
make
make install
Now you will need to modify /etc/lcdproc/LCDd.conf as follows:
Under [server], change "Driver" to "imonlcd"
Code:
Driver=imonlcd
and "DriverPath" to "/usr/local/lib/lcdproc/" (or whatever is appropriate for you).
Code:
DriverPath=/usr/local/lib/lcdproc/
Next, add a section in the driver section called [imonlcd] with the following contents (contrast of 200 worked well for me but adjust to taste):
Code:
[imonlcd]
Device=/dev/lcd0
Contrast=200
Modify /etc/default/LCDd so that:
Code:
START=yes
and /etc/init.d/LCDd so that:
Code:
DAEMON=/usr/local/sbin/$NAME
Now modprobe the new lirc module:
Code:
modprobe lirc_imon
Now finally, go into Myth and configure it to use the LCD for rmessages (in the set up menus)
Restart your Knoppmyth box and the LCD should light up with the default messages and eventually with the myth information (usually date and time to start).
Myth should also respond to any RC6 MCE remote. I happen to do this via my Harmony 880 but it also worked with the MCE remote that came with my PVR500.
But to be clear even though you use an RC6 remote the codes provided to LIRC do noth resemble RC6 hence the need for a new lircd.conf.
DEFAULT FILES:
-------------------
These are for reference, modify to suit.
/etc/lirc/hardware.conf:
Code:
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="/etc/lirc/lircd.conf"
#Don't start lircmd even if there seems to be a good config file
START_LIRCMD=false
#Try to load appropriate kernel modules
LOAD_MODULES=true
# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0
# udev uses /dev/lirc0 will be automatically used instead
DEVICE="/dev/lirc0"
MODULES="lirc_imon"
/etc/lirc/lircd.conf:
Code:
# model no. of remote control:
# devices being controlled by this remote:
#
begin remote
name mceusb_antec_knob
bits 32
eps 30
aeps 100
one 0 0
zero 0 0
gap 203989
toggle_bit_mask 0x8000
begin codes
# Top control buttons
Zoom 0x800F0427
Power 0x800F040C
MyRadio 0x800F0450
MyMusic 0x800F0447
MyPictures 0x800F0449
MyVideos 0x800F044A
RecordedTV 0x800F0448
Guide 0x800F0426
LiveTV 0x800F0425
DVDMenu 0x800F0424
# Player Controls (DVD, VCR, etc)
Play 0x800F0416
Pause 0x800F0418
Stop 0x800F0419
Record 0x800F0417
Rewind 0x800F0415
Forward 0x800F0414
Replay 0x800F041B
Skip 0x800F041A
# Nvigation Buttons
Up 0x800F041E
Left 0x800F0420
Down 0x800F041F
Right 0x800F0421
OK 0x800F0422
Back 0x800F0423
More 0x800F040F
# Standard Controls
VolumeUp 0x800F0410
VolumeDown 0x800F0411
ChannelUp 0x800F0412
ChannelDown 0x800F0413
Mute 0x800F040E
Start 0x800F040D
One 0x800F0401
Two 0x800F0402
Three 0x800F0403
Four 0x800F0404
Five 0x800F0405
Six 0x800F0406
Seven 0x800F0407
Eight 0x800F0408
Nine 0x800F0409
Zero 0x800F0400
Star 0x800F041D
Hash 0x800F041C
Clear 0x800F040A
Enter 0x800F040B
# Lower color buttons
Red 0x800F045B
Green 0x800F045C
Yellow 0x800F045D
Blue 0x800F045E
# Antec Volume Control Knob
KnobCCW 0x01000000
KnobCW 0x00010000
end codes
end remote
/home/mythtv/.mythtv/lircrc:
Code:
# /home/mythtv/.mythtv/lircrc
#
# Media Center Edition Remote Control and Remote Control Keys on Media Center Keyboard
########################################################################################
# For use with the USB MCE ir receiver
# MythTV LIRC config file for the mceusb2 or lirc_mod_mce module
# Info about lircrc statment
#begin
# prog = ... Program controlled, irxevent, irexec, mythtv, mplayer, xine, or others
# remote = ... mceusb, or what ever you happen to have or want to call it
# button = ... remote keys names from your lircd.conf file
# repeat = ... repeat = 2 is fast, repeat = 4 is slower
# delay = ... delay before repeat, 1 is short, 4 is longer
# config = ... output key presses to key bindings editor
# mode = ...
# flags = ...
#end
# Test your new Lirc settings
# /etc/init.d/lirc restart To restart Lirc
# ctrl-alt-backspace To restart the frontend
# Updated January 30th 2008 BAK
# for the Knoppmyth project
######################################################## irexec ####################
# the lirc irexec program must be running for this section
# Will perform a complete shutdown
#begin
# prog = irexec
# button = Power
# config = /usr/bin/sudo halt
#end
#
################################################ Mythtv Section ####################
# MythTV Key Binding Editor location
# Mythtv Menu >>Utilities / Setup >>Edit Keys
# Key Bindings can also be found in Myth Web
# Record
begin
prog = mythtv
button = Record
config = R
end
# Stop
begin
prog = mythtv
button = Stop
config = Esc
end
# Pause
begin
prog = mythtv
button = Pause
config = P
end
# Rewind (while viewing)
begin
prog = mythtv
button = Rewind
repeat = 0
delay = 1
config = <
end
# Fast forward (while viewing)
begin
prog = mythtv
button = Forward
repeat = 0
delay = 1
config = >
end
# Play
begin
prog = mythtv
button = Play
config = L
end
# Skip backward (1 min default)
begin
prog = mythtv
button = Replay
repeat = 4
delay = 4
config = PgUp
end
# Skip forward (1 min default)
begin
prog = mythtv
button = Skip
repeat = 4
delay = 4
config = PgDown
end
#<><><><><><><><><><><> Mythtv Control <><><><>
# Escape/Exit/Back
begin
prog = mythtv
button = Back
config = Esc
end
# Bring up OSD info
begin
prog = mythtv
button = More
config = I
end
begin
prog = mythtv
button = Left
repeat = 3
delay = 4
config = Left
end
begin
prog = mythtv
button = Right
repeat = 3
delay = 4
config = Right
end
begin
prog = mythtv
button = Up
repeat = 3
delay = 4
config = Up
end
begin
prog = mythtv
button = Down
repeat = 3
delay = 4
config = Down
end
# OK/Select
begin
prog = mythtv
button = OK
config = Return
end
# The Start Button is really just a Menu key
begin
prog = mythtv
button = Start
config = M
end
#<><><><><><><><><><><><><><><>
# Volume-Up
begin
prog = mythtv
button = VolumeUp
repeat = 2
config = ]
end
# Volume-Down
begin
prog = mythtv
button = VolumeDown
repeat = 2
config = [
end
# Mute
begin
prog = mythtv
button = Mute
config = |
end
# Channel Up
begin
prog = mythtv
button = ChannelUp
repeat = 3
# delay = 1
config = Up
end
# Channel Down
begin
prog = mythtv
button = ChannelDown
config = Down
repeat = 3
# delay = 1
end
# Numbers 0-9 <><><><><><><><><><><>
begin
prog = mythtv
button = One
# repeat = 2
config = 1
end
begin
prog = mythtv
button = Two
# repeat = 2
config = 2
end
begin
prog = mythtv
button = Three
# repeat = 2
config = 3
end
begin
prog = mythtv
button = Four
# repeat = 2
config = 4
end
begin
prog = mythtv
button = Five
# repeat = 2
config = 5
end
begin
prog = mythtv
button = Six
# repeat = 2
config = 6
end
begin
prog = mythtv
button = Seven
# repeat = 2
config = 7
end
begin
prog = mythtv
button = Eight
# repeat = 2
config = 8
End
begin
prog = mythtv
button = Nine
# repeat = 2
config = 9
end
begin
prog = mythtv
button = Zero
# repeat = 2
config = 0
end
#<><><><><><><><><><><><><><><><><><><><>
# Seek to previous commercial cut point
# or remove all cut points from the Editing Cutlist
begin
prog = mythtv
button = Star
config = Q
end
# Seek to next commercial cut point
# or add commericial cut points to the Editing Cutlist
begin
prog = mythtv
button = Hash
config = Z
end
# Brings up the delete box
begin
prog = mythtv
button = Clear
repeat = 0
config = D
end
# Toggle Editing Cutlist on or off
begin
prog = mythtv
button = Enter
repeat = 0
config = E
end
#<><><><><><><><> Additional Remote Commands <><><><><><><><>
# All buttons in this section must be configured using
# MythTV's KeyBindings JumpPoints editor.
# >>> Utilities/ Setup >>> Edit Keys >>> JumpPoints >>>
# Listen to Myth Music
begin
prog = mythtv
button = MyMusic
config = Ctrl+Alt+M
end
# at this time connects to MythStreem
begin
prog = mythtv
button = MyRadio
config = Ctrl+Alt+S
end
# View Pictures
begin
prog = mythtv
button = MyPictures
config = Ctrl+Alt+P
end
# Watch Videos
begin
prog = mythtv
button = MyVideos
config = Ctrl+Alt+V
end
# Watch Live TV with Live TV Guide open
begin
prog = mythtv
button = MyTV
config = Ctrl+Alt+K
end
# Watch Live TV
begin
prog = mythtv
button = LiveTV
config = Ctrl+Alt+L
end
# Recorded TV Programs
begin
prog = mythtv
button = RecordedTV
config = Ctrl+Alt+R
end
# Program Guide
begin
prog = mythtv
button = Guide
config = Ctrl+Alt+G
end
# Play DVD
# There must be a disk in the DVD drive or it dos nothing
begin
prog = mythtv
button = DVDMenu
config = Ctrl+Alt+D
end
# unused key
#begin
# prog = mythtv
# button = Messenger
# config = Ctrl+Alt+A
#end
# <><><><><><><><><><><><><> Teletext Buttons <><><><><><><><><><><>
# Teletext = Show interactive MHEG screens
begin
prog = mythtv
button = Teltext
config = F7
end
# Red = Red button for interactive screens.
begin
prog = mythtv
button = Red
config = F2
end
# Green = Green button for interactive screens.
begin
prog = mythtv
button = Green
config = F3
end
# Yellow = Yellow button for interactive screens.
begin
prog = mythtv
button = Yellow
config = F4
end
# Blue = Blue button for interactive screens.
begin
prog = mythtv
button = Blue
config = F5
end
#
#
######################################################################### MPlayer Section #####
# "mplayer -input keylist" Prints all keys that can be bound to commands.
# "mplayer -input cmdlist" Prints all commands that can be bound to keys
# "man mplayer" Prints documentation for MPlayer
# Show OSD
begin
prog = mplayer
button = OK
config = osd
end
# Pause playback
begin
prog = mplayer
button = Pause
config = pause
end
# If paused, resume playing
begin
prog = mplayer
button = Play
config = pause
end
# Stop playback and exit
begin
prog = mplayer
button = Stop
config = quit
end
# Volume-Up
begin
prog = mplayer
button = VolumeUp
repeat = 2
config = volume +1
end
# Volume-Down
begin
prog = mplayer
button = VolumeDown
repeat = 2
config = volume -1
end
# Mute
begin
prog = mplayer
button = Mute
config = mute
end
# Seek back 60 seconds
begin
prog = mplayer
button = Left
repeat = 2
config = seek -60
end
# Seek forward 60 seconds
begin
prog = mplayer
button = Right
repeat = 2
config = seek +60
end
# Seek back 10 seconds
begin
prog = mplayer
button = Rewind
repeat = 2
config = seek -10
end
# Seek forward 30 seconds
begin
prog = mplayer
button = Forward
repeat = 2
config = seek +30
end
# Quit
begin
prog = mplayer
button = Back
config = quit
end
# Seek forward 10 minutes
begin
prog = mplayer
button = Skip
repeat = 2
config = seek +600
end
# Seek backward 10 minutes
begin
prog = mplayer
button = Replay
repeat = 2
config = seek -600
end
# increase brightness
begin
button = ChannelUp
prog = mplayer
repeat = 2
config = brightness +1
end
# decrease brightness
begin
button = ChannelDown
prog = mplayer
repeat = 2
config = brightness -1
end
# Toggle full-screen
#begin
# prog = mplayer
# button = #???????????????????????????
# repeat = 2
# config = vo_fullscreen
#end
######################################################################## XINE Section ##########
# For a compleate list of Xine's Lirc Keybindings use comand
# xine --keymap=lirc>.lircrc.xine.keybindings
# This creates a file in current directory called ".lircrc.xine.keybindings"
# Note: Xine has diferent sets of keybindings for lirc and keyboard
## 01/14/2008
# xine key bindings.
# Automatically generated by xine-ui version 0.99.6cvs.
#<><><><><><><><><><> Xine Video Movement <><><><>
# start playback
begin
prog = xine
button = Play
config = Play
end
# playback pause toggle
begin
prog = xine
button = Pause
config = Pause
end
# stop playback
begin
prog = xine
button = Stop
config = Stop
end
# take a snapshot
#begin
# prog = xine
# button = Record
# repeat = 2
# config = Snapshot
#end
begin
prog = xine
button = Forward
repeat = 2
# delay = 1
config = SeekRelative+7
end
begin
prog = xine
button = Rewind
repeat = 2
# delay = 1
config = SeekRelative-7
end
# set position to -60 seconds in current stream
begin
prog = xine
button = Replay
repeat = 2
delay = 1
config = SeekRelative-60
end
# set position to +60 seconds in current stream
begin
prog = xine
button = Skip
repeat = 2
delay = 1
config = SeekRelative+60
end
#<><><><><><><><><><><><>Xine Control<><><><><><><><><>
# quit the program
begin
prog = xine
button = Back
config = Quit
end
#display stream information using OSD
begin
prog = xine
button = More
config = OSDStreamInfos
end
# menu navigate up
begin
prog = xine
button = Up
repeat = 2
delay = 2
config = EventUp
end
# menu navigate down
begin
prog = xine
button = Down
repeat = 2
delay = 2
config = EventDown
end
# menu navigate left
begin
prog = xine
button = Left
repeat = 2
delay = 2
config = EventLeft
end
# menu navigate right
begin
prog = xine
button = Right
repeat = 2
delay = 2
config = EventRight
end
# menu select
begin
prog = xine
button = OK
config = EventSelect
end
# jump to Root Menu
begin
prog = xine
button = Start
config = Menu
end
#<><><><><><><><><><><><><><><><><><><> Xine Volume / Channel <><><><><><><><>
# increment audio volume
begin
prog = xine
button = VolumeUp
repeat = 1
config = Volume+
end
# decrement audio volume
begin
prog = xine
button = VolumeDown
repeat = 1
config = Volume-
end
# audio muting toggle
begin
prog = xine
button = Mute
config = Mute
end
# increase brightness by 10
begin
prog = xine
button = ChannelUp
config = BrightnessControl+
end
# decrease brightness by 10
begin
prog = xine
button = ChannelDown
config = BrightnessControl-
end
#<><><><><><><><><><><><><><><><><> Xine Menu <><><><>
# unused key
#begin
# prog = xine
# button = RecordedTV
# config = ????????
#end
# visibility toggle of stream info window
begin
prog = xine
button = Guide
config = SetupShow
end
# unused key
#begin
# prog = xine
# button = LiveTV
# config = ????????
#end
# jump to Title Menu
begin
prog = xine
button = DVDMenu
config = RootMenu
end
#<><><><><><><><><><><><><><><><><> Xine Stream Position <><><><>
# set position in current stream
begin
prog = xine
button = Zero
config = SetPosition0%
end
begin
prog = xine
button = One
config = SetPosition10%
end
begin
prog = xine
button = Two
config = SetPosition20%
end
begin
prog = xine
button = Three
config = SetPosition30%
end
begin
prog = xine
button = Four
config = SetPosition40%
end
begin
prog = xine
button = Five
config = SetPosition50%
end
begin
prog = xine
button = Six
config = SetPosition60%
end
begin
prog = xine
button = Seven
config = SetPosition70%
end
begin
prog = xine
button = Eight
config = SetPosition80%
end
begin
prog = xine
button = Nine
config = SetPosition90%
end
#<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
# decrement playback speed (slow motion slowdown)
begin
prog = xine
button = Star
config = SpeedSlower
end
# increment playback speed (slow motion speedup)
begin
prog = xine
button = Hash
config = SpeedFaster
end
# reset playback speed
begin
prog = xine
button = clear
config = SpeedReset
end
# unused key
#begin
# prog = xine
# button = clear
# config = ?????????
#end
# set position to -30 seconds in current stream config = SeekRelative-30
# set position to +30 seconds in current stream config = SeekRelative+30
# eject the current medium config = Eject
# zoom in config = ZoomIn
# zoom out config = ZoomOut
# fullscreen toggle config = ToggleFullscreen
##
# End of xine .
##