<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">&lt;<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>&gt;</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>
&gt;On Fri, Aug 9, 2013 at 11:24 PM, Stephen Worthington &lt;<br>
&gt;<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; On Fri, 9 Aug 2013 22:46:44 -0400, you wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt;On Fri, Aug 9, 2013 at 9:01 PM, Stephen Worthington &lt;<br>
&gt;&gt; &gt;<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; On Fri, 9 Aug 2013 19:22:09 -0400, you wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;I&#39;m in the middle of setting up my STB and LIRC, I&#39;ve been following<br>
&gt;&gt; the<br>
&gt;&gt; &gt;&gt; &gt;link at &quot;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; <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>&quot;<br>
&gt;&gt; &gt;&gt; &gt;and when I get to the test the blaster part this is what the terminal<br>
&gt;&gt; &gt;&gt; &gt;returns...<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;daryl@daryl-A780L3C:~$ sudo /etc/init.d/lirc restart<br>
&gt;&gt; &gt;&gt; &gt;[sudo] password for daryl:<br>
&gt;&gt; &gt;&gt; &gt; * Stopping remote control daemon(s): LIRC<br>
&gt;&gt;   [<br>
&gt;&gt; &gt;&gt; &gt;OK ]<br>
&gt;&gt; &gt;&gt; &gt; * Loading LIRC modules<br>
&gt;&gt;    [<br>
&gt;&gt; &gt;&gt; &gt;OK ]<br>
&gt;&gt; &gt;&gt; &gt; * Starting remote control daemon(s) : LIRC<br>
&gt;&gt;    [<br>
&gt;&gt; &gt;&gt; &gt;OK ]<br>
&gt;&gt; &gt;&gt; &gt;daryl@daryl-A780L3C:~$ irsend SEND_ONCE DCT700 info<br>
&gt;&gt; &gt;&gt; &gt;irsend: command failed: SEND_ONCE DCT700 info<br>
&gt;&gt; &gt;&gt; &gt;irsend: unknown remote: &quot;DCT700&quot;<br>
&gt;&gt; &gt;&gt; &gt;daryl@daryl-A780L3C:~$ irsend SEND_START DCT700 info<br>
&gt;&gt; &gt;&gt; &gt;irsend: command failed: SEND_START DCT700 info<br>
&gt;&gt; &gt;&gt; &gt;irsend: unknown remote: &quot;DCT700&quot;<br>
&gt;&gt; &gt;&gt; &gt;daryl@daryl-A780L3C:~$<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;The emitter remained unlit throughout the test, I&#39;m guessing that myth<br>
&gt;&gt; &gt;&gt; &gt;doesn&#39;t know what serial port I&#39;m using? I&#39;ve configured LIRC in Myth<br>
&gt;&gt; &gt;&gt; &gt;Control Center, by enabling an IR transmitter and selected &quot;Serial port<br>
&gt;&gt; &gt;&gt; &gt;(UART) Motorola cable box&quot;. What have I missed? Also I have not<br>
&gt;&gt; configured<br>
&gt;&gt; &gt;&gt; &gt;nor do I use a remote for live TV viewing, I just need to control the<br>
&gt;&gt; STB<br>
&gt;&gt; &gt;&gt; &gt;for recording. I run a single box front and back end connected to a TV<br>
&gt;&gt; via<br>
&gt;&gt; &gt;&gt; &gt;HDMI, so live TV is very simple.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;Daryl<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; That error message normally means that lirc can not find a<br>
&gt;&gt; &gt;&gt; configuration with a &quot;name DCT700&quot; line.  So where did you put the<br>
&gt;&gt; &gt;&gt; file with your DCT700 definition that you coped from that web page?<br>
&gt;&gt; &gt;&gt; Does your /etc/lirc/lircd.conf file point to it?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; This is what I have in my lircd.conf:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; #This configuration has been automatically generated via<br>
&gt;&gt; &gt;&gt; #the Ubuntu LIRC package maintainer scripts.<br>
&gt;&gt; &gt;&gt; #<br>
&gt;&gt; &gt;&gt; #It includes the default configuration for the remote and/or<br>
&gt;&gt; &gt;&gt; #transmitter that you have selected during package installation.<br>
&gt;&gt; &gt;&gt; #<br>
&gt;&gt; &gt;&gt; #Feel free to add any custom remotes to the configuration<br>
&gt;&gt; &gt;&gt; #via additional include directives or below the existing<br>
&gt;&gt; &gt;&gt; #Ubuntu include directives from your selected remote and/or<br>
&gt;&gt; &gt;&gt; #transmitter.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; #Configuration for the Windows Media Center Transceivers/Remotes (all)<br>
&gt;&gt; &gt;&gt; remote:<br>
&gt;&gt; &gt;&gt; include &quot;/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb&quot;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; #Configuration for the Microsoft Windows Media Center V2 (usb) : SkyTV<br>
&gt;&gt; &gt;&gt; New Zealand transmitter:<br>
&gt;&gt; &gt;&gt; include &quot;/usr/share/lirc/extras/transmitters/skynz/general.conf&quot;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; The last include line points to where I have the configuration file<br>
&gt;&gt; &gt;&gt; for my transmitter.<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; mythtv-users mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt;&gt; &gt;&gt; <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;This is my last line in lircd.conf:  #Configuration for the Motorola<br>
&gt;&gt; DCT700<br>
&gt;&gt; &gt;Set Top Box IR codes:<br>
&gt;&gt; &gt;include &quot;/etc/lirc/DCT700.conf&quot;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Daryl<br>
&gt;&gt;<br>
&gt;&gt; OK, that looks OK, so how did you make the DCT700.conf file?  If you<br>
&gt;&gt; made it on a Windows PC, it will likely have the wrong end-of-line<br>
&gt;&gt; characters and that will make it fail to work on Linux.  Also, check<br>
&gt;&gt; the permissions on the DCT700.conf file - use the same permissions as<br>
&gt;&gt; the /etc/lirc/lircd.conf file.<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; mythtv-users mailing list<br>
&gt;&gt; <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
&gt;&gt; <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;I made the file with Ubuntu&#39;s home file GUI, then moved it with the<br>
&gt;terminal. When I list the etc/lirc directory the DCT700 file is in blue<br>
&gt;print while all other doc&#39;s are white print. Do I need to give<br>
&gt;&quot;DCT700.conf&quot; to root? Should it remain in a folder, or be removed and<br>
&gt;appear as a doc like the others in that directory? Another thought, should<br>
&gt;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>
&quot;ls -al&quot; 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&#39;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&#39;t see any light emitting from the IR blaster on the initial tests (I didn&#39;t see error messages either), with one hand holding the emitter on the STB and the other hitting &quot;enter&quot; 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&#39;m over what seemed a major hurdle 24 hours ago.</div>
<div><br></div><div>Daryl</div><div> </div></div><br></div></div>