ok let me se if I can give you the whole picture now that I know where most thinks are.
Step one In mythtv go to remote settings pick mcusb remote then for ir blaster pick ttys0 and for sat box pick motorola_dsr315
Step Twoedit /usr/MythVantage/templates/change_chan.sh and add mceusb as follows in bold. Then add the location of the shange channel script in mythtv-settings.
#!/bin/sh
REMOTE_NAME=
mceusbcmd="$1"
case $cmd in
[0-9]*)
for digit in $(echo $1 | sed -e 's/./& /g'); do
irsend SEND_ONCE $REMOTE_NAME $digit
sleep 0.5
# If things work OK with sleep 1, try this for faster channel changes:
# sleep 0.3
done
;;
*)
irsend SEND_ONCE $REMOTE_NAME $cmd
;;
esac
# /usr/bin/fix_audio.sh &
Step threeverify what /etc/lircd.conf
include "/usr/MythVantage/templates/remotes/mceusb/lircd.conf.mceusb"
include "/usr/MythVantage/templates/transmit/motorola_dsr315/lircd.conf"
the contents of borth are as follows
#
# RC-6 config file
#
# source:
http://home.hccnet.nl/m.majoor/projects ... ontrol.htm#
http://home.hccnet.nl/m.majoor/pronto.pdf#
# used by: Philips
#
#########
#
# Philips Media Center Edition remote control
# For use with the USB MCE ir receiver
#
# Dan Conti dconti|acm.wwu.edu
#
# Updated with codes for MCE 2005 Remote additional buttons
# *, #, Teletext, Red, Green, Yellow & Blue Buttons
# Note: TV power button transmits no code until programmed.
# Updated 12th September 2005
# Graham Auld - mce|graham.auld.me.uk
#
# Radio, Print, RecTV are only available on the HP Media Center remote control
#
begin remote
name mceusb
bits 16
flags RC6|CONST_LENGTH
eps 30
aeps 100
header 2667 889
one 444 444
zero 444 444
pre_data_bits 21
pre_data 0x37FF0
gap 105000
toggle_bit 22
rc6_mask 0x100000000
begin codes
#-------------------------------------------------------------b9
Testb90 0x00007b90
Testb91 0x00007b91
Testb92 0x00007b92
Testb93 0x00007b93
Testb94 0x00007b94
Testb95 0x00007b95
Testb96 0x00007b96
Testb97 0x00007b97
Testb98 0x00007b98
Testb99 0x00007b99
TV????? 0x00007b9a
Messenger 0x00007b9b
Testb9c 0x00007b9c
Testb9d 0x00007b9d
Testb9e 0x00007b9e
Testb9f 0x00007b9f
#-------------------------------------------------------------ba
Testba0 0x00007ba0
Blue 0x00007ba1
Yellow 0x00007ba2
Green 0x00007ba3
Red 0x00007ba4
Teletext 0x00007ba5
Testba6 0x00007ba6
Testba7 0x00007ba7
Testba8 0x00007ba8
Testba9 0x00007ba9
Testbaa 0x00007baa
Testbab 0x00007bab
Testbac 0x00007bac
Testbad 0x00007bad
Testbae 0x00007bae
Radio 0x00007baf
#-------------------------------------------------------------bb
Testbb0 0x00007bb0
Print 0x00007bb1
Testbb2 0x00007bb2
Testbb3 0x00007bb3
Testbb4 0x00007bb4
Videos 0x00007bb5
Pictures 0x00007bb6
RecordedTV 0x00007bb7
Music 0x00007bb8
TV 0x00007bb9
Testbba 0x00007bba
Testbbb 0x00007bbb
Testbbc 0x00007bbc
Testbbd 0x00007bbd
Testbbe 0x00007bbe
Testbbf 0x00007bbf
#-------------------------------------------------------------- bc
Testbc0 0x00007bc0
Testbc1 0x00007bc1
Testbc2 0x00007bc2
Testbc3 0x00007bc3
Testbc4 0x00007bc4
Testbc5 0x00007bc5
Testbc6 0x00007bc6
Testbc7 0x00007bc7
Testbc8 0x00007bc8
Testbc9 0x00007bc9
Testbca 0x00007bca
Testbcb 0x00007bcb
Testbcc 0x00007bcc
Testbcd 0x00007bcd
Testbce 0x00007bce
Testbcf 0x00007bcf
#---------------------------------------------------------------bd
Testbd0 0x00007bd0
Testbd1 0x00007bd1
Testbd2 0x00007bd2
Testbd3 0x00007bd3
Testbd4 0x00007bd4
Testbd5 0x00007bd5
Testbd6 0x00007bd6
Testbd7 0x00007bd7
Testbd8 0x00007bd8
Guide 0x00007bd9
LiveTV 0x00007bda
DVDMenu 0x00007bdb
Back 0x00007bdc
OK 0x00007bdd
Right 0x00007bde
Left 0x00007bdf
#--------------------------------------------------------------be
Down 0x00007be0
Up 0x00007be1
Star 0x00007be2
Hash 0x00007be3
Replay 0x00007be4
Skip 0x00007be5
Stop 0x00007be6
Pause 0x00007be7
Record 0x00007be8
Play 0x00007be9
Rewind 0x00007bea
Forward 0x00007beb
ChannelDown 0x00007bec
ChannelUp 0x00007bed
VolumeDown 0x00007bee
VolumeUp 0x00007bef
#---------------------------------------------------------------bf
More 0x00007bf0
Mute 0x00007bf1
Start 0x00007bf2
Power 0x00007bf3
Enter 0x00007bf4
Clear 0x00007bf5
Nine 0x00007bf6
Eight 0x00007bf7
Seven 0x00007bf8
Six 0x00007bf9
Five 0x00007bfa
Four 0x00007bfb
Three 0x00007bfc
Two 0x00007bfd
One 0x00007bfe
Zero 0x00007bff
end codes
end remote
And the sat box
#
# this config file was automatically generated
# using lirc-0.8.0(serial) on Wed Apr 12 13:07:22 2006
#
# contributed by
#
# brand: Motorola
# model no. of remote control: IRC451 (PN:515301-002) Modes 0000,0001,0002,0003
# devices being controlled by this remote: Motorola (DSR205 & DSR315) StarChoice receiver
#
begin remote
name Motorola_dsr_series
bits 12
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 5082 1878
one 1102 2874
zero 1102 884
ptrail 1107
gap 99386
min_repeat 1
toggle_bit 0
begin codes
POWER 0x605
UP 0xC4F
DOWN 0x045
LEFT 0xB88
RIGHT 0x80C
ENTER 0x384
GOBACK 0x68F
EXIT 0xA0F
INFO 0xE4C
GUIDE 0x782
REWIND 0x944
PLAY 0x74D
FORWARD 0x148
RECORD 0x54E
PAUSE 0x34B
STOP 0xB47
CH_UP 0xD07
CH_DOWN 0x08A
LAST 0x187
INTERESTS 0x581
BROWSE 0x849
PPV 0xB02
FUTURE 0x443
OPTIONS 0x289
1 0xF04
2 0x886
3 0x48C
4 0xE83
5 0x98B
6 0xD8D
7 0x50B
8 0x901
9 0x708
0 0x246
HELP 0xF8E
end codes
end remote
begin remote
name Motorola_IRC451_0001
bits 12
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 5074 1909
one 1086 2902
zero 1086 906
ptrail 1090
gap 99708
min_repeat 1
toggle_bit 0
begin codes
POWER_1 0x62B
UP_1 0xC61
DOWN_1 0x06B
LEFT_1 0xBA6
RIGHT_1 0x822
ENTER_1 0x3AA
GOBACK_1 0x6A1
EXIT_1 0xA21
INFO_1 0xE62
GUIDE_1 0x7AC
REWIND_1 0x96A
PLAY_1 0x763
FORWARD_1 0x166
RECORD_1 0x560
PAUSE_1 0x365
STOP_1 0xB69
CH_UP_1 0xD29
CH_DOWN_1 0x0A4
LAST_1 0x1A9
INTERESTS_1 0x5AF
BROWSE_1 0x867
PPV_1 0xB2C
FUTURE_1 0x46D
OPTIONS_1 0x2A7
1_1 0xF2A
2_1 0x8A8
3_1 0x4A2
4_1 0xEAD
5_1 0x9A5
6_1 0xDA3
7_1 0x525
8_1 0x92F
9_1 0x726
0_1 0x268
HELP_1 0xFA0
end codes
end remote
begin remote
name Motorola_IRC451_0002
bits 12
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 5048 1936
one 1055 2934
zero 1055 941
ptrail 1054
gap 99772
toggle_bit 0
begin codes
POWER_2 0x612
UP_2 0xC58
DOWN_2 0x052
LEFT_2 0xB9F
RIGHT_2 0x81B
ENTER_2 0x393
GOBACK_2 0x698
EXIT_2 0xA18
INFO_2 0xE5B
GUIDE_2 0x795
REWIND_2 0x953
PLAY_2 0x75A
FORWARD_2 0x15F
RECORD_2 0x559
PAUSE_2 0x35C
STOP_2 0xB50
CH_UP_2 0xD10
CH_DOWN_2 0x09D
LAST_2 0x190
INTERESTS_2 0x596
BROWSE_2 0x85E
PPV_2 0xB15
FUTURE_2 0x454
OPTIONS_2 0x29E
1_2 0xF13
2_2 0x891
3_2 0x49B
3_2 0x49B
4_2 0xE94
5_2 0x99C
6_2 0xD9A
7_2 0x51C
8_2 0x916
9_2 0x71F
0_2 0x251
HELP_2 0xF99
end codes
end remote
begin remote
name Motorola_IRC451_0003
bits 12
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 5052 1934
one 1047 2943
zero 1047 949
ptrail 1041
gap 99759
toggle_bit 0
begin codes
POWER_3 0x63C
UP_3 0xC76
DOWN_3 0x07C
LEFT_3 0xBB1
RIGHT_3 0x835
ENTER_3 0x3BD
GOBACK_3 0x6B6
EXIT_3 0xA36
INFO_3 0xE75
GUIDE_3 0x7BB
REWIND_3 0x97D
PLAY_3 0x774
FORWARD_3 0x171
RECORD_3 0x577
PAUSE_3 0x372
STOP_3 0xB7E
CH_UP_3 0xD3E
CH_DOWN_3 0x0B3
LAST_3 0x1BE
INTERESTS_3 0x5B8
BROWSE_3 0x870
PPV_3 0xB3B
FUTURE_3 0x47A
OPTIONS_3 0x2B0
1_3 0xF3D
2_3 0x8BF
3_3 0x4B5
4_3 0xEBA
5_3 0x9B2
6_3 0xDB4
7_3 0x532
8_3 0x938
9_3 0x731
0_3 0x27F
HELP_3 0xFB7
end codes
end remote
One thing I notice is in the Motorola_dsr315 there are a few name fields with duplicate settings. I wonder if I have to pick what one to use. I alos don't know where the file is that has my serial settings I set from the gui. Lets hope someone can spot my mistake.