<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, May 27, 2015 at 2:29 PM, Alec Leamas <span dir="ltr"><<a href="mailto:leamas.alec@gmail.com" target="_blank">leamas.alec@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 27/05/15 15:33, Hika van den Hoven wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hoi Jerry,<br>
<br>
Wednesday, May 27, 2015, 1:46:57 PM, you wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On Tue, May 26, 2015 at 9:48 PM, Hika van den Hoven <<a href="mailto:hikavdh@gmail.com" target="_blank">hikavdh@gmail.com</a>><br>
wrote:<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<big snip><br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
A few things. First about the rule. A single '=' means assign and a<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
double compare. So the rule should be:<br>
<br>
KERNEL=="lirc0", NAME=="lirc0", GROUP="lirc", MODE="0660"<br>
<br>
in stead of<br>
<br>
KERNEL=="lirc0", NAME=="lirc0", GROUP="lirc", MODE=="0660"<br>
<br>
Since the mode isn't 0660 it compares false and fails.<br>
<br>
Have you double checked that the group for user lirc is indeed lirc?<br>
<br>
Try to set the owner too. Also if I check, I only see KERNEL and<br>
SUBSYSTEM and to be save change KERNEL to 'lirc*'. You can add a<br>
DRIVERS part (e.g. DRIVERS=="lirc_serial" or whatever your driver is.<br>
Check with: udevadm info --attribute-walk --name /dev/lirc0)<br>
<br>
KERNEL=="lirc*", SUBSYSTEM=="lirc", OWNER="lirc", GROUP="lirc", MODE="0660"<br>
<br>
</blockquote></blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi Hika,<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Okay, I changed the rule to the last one above, and it worked well,<br>
changing the permissions and ownership of /dev/lirc0.  The remote control<br>
only works when I set the MODE to 0666.  I don't know who is trying to<br>
access the device!  Maybe it is okay as 0666?<br>
</blockquote></blockquote>
<br>
<br></span>
On a sane lirc setup the only thing accessing /dev/lirc0  is the lircd<br>
daemon.  The question is how this is run. Out of the top of my head I<br>
think the default configuration starts it as root:root, dropping it's<br>
privileges after opening devices and such.<br>
<br>
Have you modified the lircd.service setup e. g., by creating your own<br>
/etc/systemd/system/lircd.service? Or are you starting it by some other<br>
means? The default configuration is supposed top work out of the box w r<br>
t this.<br>
<br>
BTW, the distribution contains a similar rule as an example in the<br>
contrib/ directory. In the fedora package, this is /usr/share/lirc/contrib.<br>
<br></blockquote><div> <br></div><div>This is what I have right now:<br></div><div><br></div></div>[root@htpc ~]# more /usr/lib/systemd/system/lircd.service<br>[Unit]<br>Description=LIRC Infrared Signal Decoder<br>After=network.target<br><br>[Service]<br>Type=simple<br>ExecStart=/usr/sbin/lircd --nodaemon<br><br>[Install]<br>WantedBy=multi-user.target<br>[root@htpc ~]# ls /etc/systemd/system/lirc*<br>ls: cannot access /etc/systemd/system/lirc*: No such file or directory<br>[root@htpc ~]# more /etc/udev/rules.d/80-lirc.rules<br>KERNEL=="lirc0", SUBSYSTEM=="lirc", MODE="0666"<br>[root@htpc ~]#<br><br></div><div class="gmail_extra">looking in /usr/share/lirc/contrib:<br><br>[root@htpc contrib]# more 60-lirc.rules<br># Installing this udev rule will make the /dev/lirc* devices accessible<br># for users in the group "lirc". To enable, copy to /etc/udev/rules.d or<br># /usr/lib/udev/rules.d.<br>KERNEL=="lirc[0-9]*", SUBSYSTEM=="lirc", GROUP="lirc", MODE="0660"<br>[root@htpc contrib]#<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">If I use the above rule, lircd doesn't function until I chmod to 0666.<br><br></div><div class="gmail_extra">Not to repeat myself, but just for clarity:<br></div><div class="gmail_extra"><br>[root@htpc ~]# ps aux | grep lirc<br>lirc       877  0.0  0.0  57956  3828 ?        Ss   12:39   0:00 /usr/sbin/lircd --nodaemon<br>root     18449  0.0  0.0 114332  2392 pts/0    S+   15:20   0:00 grep --color=auto lirc<br>[root@htpc ~]#<br><br></div><div class="gmail_extra">Thanks!<br></div><div class="gmail_extra">Jerry<br></div></div>