<div dir="ltr">That was fast and helpful. <img src="cid:330@goomoji.gmail" goomoji="330" style="margin: 0px 0.2ex; vertical-align: middle;"> Thanks!<div><br></div><div>Oh, and sorry I forgot to mention which distro I'm using (Ubuntu 14), I thought I had said but now I look it isn't there.</div>
<div><div><br></div><div>Stephen</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 May 2014 14:44, John Leach <span dir="ltr"><<a href="mailto:john@johnleach.co.uk" target="_blank">john@johnleach.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 20/05/14 14:33, Stephen Franks wrote:<br>
> I'm building a MythTV front-end using an Intel NUC. There is a known<br>
> problem with the infra-red receiver, for which Intel's advice<br>
> (<a href="http://www.intel.com/support/motherboards/desktop/sb/CS-034779.htm" target="_blank">http://www.intel.com/support/motherboards/desktop/sb/CS-034779.htm</a>) is<br>
> to make a script containing:<br>
><br>
</div>> * #bin/sh<br>
> * modprobe -r nuvoton-cir<br>
> * echo "auto" > "/sys/bus/acpi/devices/NTN0530:00/physical_node/resources"<br>
> * modprobe nuvoton-cir<br>
<div class="">><br>
> Entering these commands as root seems to get the IR working better (the<br>
> key mappings are wrong, but I can play with those).<br>
><br>
> Now for the bit I don't understand. Intel's advice is to name this<br>
> script autostart.sh, and put it in the .config directory. OK, but as<br>
> which user? Since the script only works when run as root, I guess it<br>
> must go into root's .config directory. But would that only run when root<br>
> logs in? Surely it needs to run when the computer starts up?<br>
><br>
</div>> Or to put it another way, where is the best place to put these /modprobe<br>
> /commands? Should it not go somewhere in /etc/init.d?<br>
<br>
hi Stephen,<br>
<br>
sticking the commands in /etc/rc.local is probably the simplest - most<br>
distros should have that file and it gets executed "at the end of each<br>
multiuser runlevel" (so on boot :)<br>
<br>
John.<br>
<br>
<br>
_______________________________________________<br>
Wylug-help mailing list<br>
<a href="mailto:Wylug-help@wylug.org.uk">Wylug-help@wylug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/wylug-help" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/wylug-help</a><br>
</blockquote></div><br></div>