<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 10, 2013 at 9:21 AM, Stephen Worthington <span dir="ltr"><<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sat, 10 Aug 2013 08:04:08 -0400, you wrote:<br>
<br>
>On Fri, Aug 9, 2013 at 11:24 PM, Stephen Worthington <<br>
><a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>> wrote:<br>
><br>
>> On Fri, 9 Aug 2013 22:46:44 -0400, you wrote:<br>
>><br>
>> >On Fri, Aug 9, 2013 at 9:01 PM, Stephen Worthington <<br>
>> ><a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>> wrote:<br>
>> ><br>
>> >> On Fri, 9 Aug 2013 19:22:09 -0400, you wrote:<br>
>> >><br>
>> >> >I'm in the middle of setting up my STB and LIRC, I've been following<br>
>> the<br>
>> >> >link at "<br>
>> >> ><br>
>> <a href="https://help.ubuntu.com/community/Motorola_DCT700_Channel_Change_Script" target="_blank">https://help.ubuntu.com/community/Motorola_DCT700_Channel_Change_Script</a>"<br>
>> >> >and when I get to the test the blaster part this is what the terminal<br>
>> >> >returns...<br>
>> >> ><br>
>> >> >daryl@daryl-A780L3C:~$ sudo /etc/init.d/lirc restart<br>
>> >> >[sudo] password for daryl:<br>
>> >> > * Stopping remote control daemon(s): LIRC<br>
>> [<br>
>> >> >OK ]<br>
>> >> > * Loading LIRC modules<br>
>> [<br>
>> >> >OK ]<br>
>> >> > * Starting remote control daemon(s) : LIRC<br>
>> [<br>
>> >> >OK ]<br>
>> >> >daryl@daryl-A780L3C:~$ irsend SEND_ONCE DCT700 info<br>
>> >> >irsend: command failed: SEND_ONCE DCT700 info<br>
>> >> >irsend: unknown remote: "DCT700"<br>
>> >> >daryl@daryl-A780L3C:~$ irsend SEND_START DCT700 info<br>
>> >> >irsend: command failed: SEND_START DCT700 info<br>
>> >> >irsend: unknown remote: "DCT700"<br>
>> >> >daryl@daryl-A780L3C:~$<br>
>> >> ><br>
>> >> >The emitter remained unlit throughout the test, I'm guessing that myth<br>
>> >> >doesn't know what serial port I'm using? I've configured LIRC in Myth<br>
>> >> >Control Center, by enabling an IR transmitter and selected "Serial port<br>
>> >> >(UART) Motorola cable box". What have I missed? Also I have not<br>
>> configured<br>
>> >> >nor do I use a remote for live TV viewing, I just need to control the<br>
>> STB<br>
>> >> >for recording. I run a single box front and back end connected to a TV<br>
>> via<br>
>> >> >HDMI, so live TV is very simple.<br>
>> >> ><br>
>> >> >Daryl<br>
>> >><br>
>> >> That error message normally means that lirc can not find a<br>
>> >> configuration with a "name DCT700" line. So where did you put the<br>
>> >> file with your DCT700 definition that you coped from that web page?<br>
>> >> Does your /etc/lirc/lircd.conf file point to it?<br>
>> >><br>
>> >> This is what I have in my lircd.conf:<br>
>> >><br>
>> >> #This configuration has been automatically generated via<br>
>> >> #the Ubuntu LIRC package maintainer scripts.<br>
>> >> #<br>
>> >> #It includes the default configuration for the remote and/or<br>
>> >> #transmitter that you have selected during package installation.<br>
>> >> #<br>
>> >> #Feel free to add any custom remotes to the configuration<br>
>> >> #via additional include directives or below the existing<br>
>> >> #Ubuntu include directives from your selected remote and/or<br>
>> >> #transmitter.<br>
>> >><br>
>> >> #Configuration for the Windows Media Center Transceivers/Remotes (all)<br>
>> >> remote:<br>
>> >> include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"<br>
>> >><br>
>> >> #Configuration for the Microsoft Windows Media Center V2 (usb) : SkyTV<br>
>> >> New Zealand transmitter:<br>
>> >> include "/usr/share/lirc/extras/transmitters/skynz/general.conf"<br>
>> >><br>
>> >> The last include line points to where I have the configuration file<br>
>> >> for my transmitter.<br>
>> >> _______________________________________________<br>
>> >> mythtv-users mailing list<br>
>> >> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
>> >> <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
>> ><br>
>> ><br>
>> >This is my last line in lircd.conf: #Configuration for the Motorola<br>
>> DCT700<br>
>> >Set Top Box IR codes:<br>
>> >include "/etc/lirc/DCT700.conf"<br>
>> ><br>
>> >Daryl<br>
>><br>
>> OK, that looks OK, so how did you make the DCT700.conf file? If you<br>
>> made it on a Windows PC, it will likely have the wrong end-of-line<br>
>> characters and that will make it fail to work on Linux. Also, check<br>
>> the permissions on the DCT700.conf file - use the same permissions as<br>
>> the /etc/lirc/lircd.conf file.<br>
>> _______________________________________________<br>
>> mythtv-users mailing list<br>
>> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
>> <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
>><br>
><br>
>I made the file with Ubuntu's home file GUI, then moved it with the<br>
>terminal. When I list the etc/lirc directory the DCT700 file is in blue<br>
>print while all other doc's are white print. Do I need to give<br>
>"DCT700.conf" to root? Should it remain in a folder, or be removed and<br>
>appear as a doc like the others in that directory? Another thought, should<br>
>the last line in my lircd.conf be separated by an empty line space?<br>
<br>
</div></div>Since you used a Linux program to create it, the file should have the<br>
correct line termination characters. There should be no need for<br>
extra empty lines. But the different colour in the file list shows<br>
that the file has different permissions or ownership from the other<br>
files. So it might need the ownership or permissions changed. Use<br>
"ls -al" to see what it has now. I am running Mythbuntu 12.04 and all<br>
the files I have in /etc/lirc (and the files included from those<br>
files) are all owned by root, so from a terminal prompt I would do<br>
this to make sure it has the correct setup:<br>
<br>
cd /etc/lirc<br>
sudo chown root:root DCT700.conf<br>
sudo chmod a=r,u=rw DCT700.conf<br>
<br>
After that, ls -al should show something like this:<br>
<br>
-rw-r--r-- 1 root root 0 Aug 11 01:09 DCT700.conf<br>
<br>
and will only be able to be edited with root access, which is how most<br>
config files under /etc should be.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a></div></div></blockquote><div><br></div><div>Copious kudos Mr. Worthington, with your help I think I've graduated from a newbie level -10 to newbie level -9. Most of the problems I had stemmed from creating a directory, when the wiki said create a file, secondly creating it outside the terminal caused the ownership issue. DCT700.conf is now only a file inside /etc/lirc and is owned by root, and even though I didn't see any light emitting from the IR blaster on the initial tests (I didn't see error messages either), with one hand holding the emitter on the STB and the other hitting "enter" for a preloaded channel change command, shazam! it did it! Again many thanks Stephen. More research and more tweaking in my immediate future, but I'm over what seemed a major hurdle 24 hours ago.</div>
<div><br></div><div>Daryl</div><div> </div></div><br></div></div>