<div dir="ltr">Hi,<div><br></div><div>I'm building a MythTV front-end using an Intel NUC. There is a known problem with the infra-red receiver, for which Intel's advice (<a href="http://www.intel.com/support/motherboards/desktop/sb/CS-034779.htm">http://www.intel.com/support/motherboards/desktop/sb/CS-034779.htm</a>) is to make a script containing:</div>
<div><br></div><div><ul style="font-family:verdana,sans-serif;color:rgb(85,85,85);font-size:13px;list-style-type:none"><li>#bin/sh</li><li>modprobe -r nuvoton-cir</li><li>echo "auto" > "/sys/bus/acpi/devices/NTN0530:00/physical_node/resources"</li>
<li>modprobe nuvoton-cir</li></ul></div><div>Entering these commands as root seems to get the IR working better (the key mappings are wrong, but I can play with those).</div><div><br></div><div>Now for the bit I don't understand. Intel's advice is to name this script <font face="courier new, monospace">autostart.sh</font>, and put it in the <font face="courier new, monospace">.config</font> directory. OK, but as which user? Since the script only works when run as root, I guess it must go into root's <font face="courier new, monospace">.config</font> directory. But would that only run when root logs in? Surely it needs to run when the computer starts up?</div>
<div><br></div><div>Or to put it another way, where is the best place to put these <i>modprobe </i>commands? Should it not go somewhere in <font face="courier new, monospace">/etc/init.d</font>?</div><div><br></div><div>As you can probably tell, I am not confident in my Linux skills, so all advice is most welcome.</div>
<div><br></div><div>Thanks in advance,</div><div><br></div><div>Stephen Franks</div></div>