[mythtv-users] Upgraded to Fedora 22 and lirc is misbehaving

Hika van den Hoven hikavdh at gmail.com
Wed May 27 13:33:02 UTC 2015


Hoi Jerry,

Wednesday, May 27, 2015, 1:46:57 PM, you wrote:

> On Tue, May 26, 2015 at 9:48 PM, Hika van den Hoven <hikavdh at gmail.com>
> wrote:

> <big snip>

> A few things. First about the rule. A single '=' means assign and a
>> double compare. So the rule should be:
>>
>> KERNEL=="lirc0", NAME=="lirc0", GROUP="lirc", MODE="0660"
>>
>> in stead of
>>
>> KERNEL=="lirc0", NAME=="lirc0", GROUP="lirc", MODE=="0660"
>>
>> Since the mode isn't 0660 it compares false and fails.
>>
>> Have you double checked that the group for user lirc is indeed lirc?
>>
>> Try to set the owner too. Also if I check, I only see KERNEL and
>> SUBSYSTEM and to be save change KERNEL to 'lirc*'. You can add a
>> DRIVERS part (e.g. DRIVERS=="lirc_serial" or whatever your driver is.
>> Check with: udevadm info --attribute-walk --name /dev/lirc0)
>>
>> KERNEL=="lirc*", SUBSYSTEM=="lirc", OWNER="lirc", GROUP="lirc", MODE="0660"
>>

> Hi Hika,

> Okay, I changed the rule to the last one above, and it worked well,
> changing the permissions and ownership of /dev/lirc0.  The remote control
> only works when I set the MODE to 0666.  I don't know who is trying to
> access the device!  Maybe it is okay as 0666?

> [root at htpc ~]# groups lirc
> lirc : lirc

> Right now, I have the rule as

> KERNEL=="lirc0", SUBSYSTEM=="lirc", MODE="0666"

> just to shorten it.  I had the GROUP and OWNER as lirc and the remote
> control didn't work with MODE at 0660.  Strange.

> Here is the result of the udevadm command:

> looking at device
> '/devices/pci0000:00/0000:00:1d.1/usb7/7-2/7-2:1.0/rc/rc0/lirc0':
>     KERNEL=="lirc0"
>     SUBSYSTEM=="lirc"
>     DRIVER==""

>   looking at parent device
> '/devices/pci0000:00/0000:00:1d.1/usb7/7-2/7-2:1.0/rc/rc0':
>     KERNELS=="rc0"
>     SUBSYSTEMS=="rc"
>     DRIVERS==""
>     ATTRS{protocols}=="other unknown rc-5 nec rc-6 jvc sony rc-5-sz sanyo
> sharp mce_kbd [lirc] xmp"

>   looking at parent device
> '/devices/pci0000:00/0000:00:1d.1/usb7/7-2/7-2:1.0':
>     KERNELS=="7-2:1.0"
>     SUBSYSTEMS=="usb"

>     DRIVERS=="mceusb"
So you could add this line to make it more specific. Just in case you
at any time have more lirc devices. You then also can give it a more
clear name: e.g. SYMLINK+="lircMCE"

>     ATTRS{bInterfaceClass}=="ff"
>     ATTRS{bInterfaceSubClass}=="ff"
>     ATTRS{bInterfaceProtocol}=="ff"
>     ATTRS{bNumEndpoints}=="02"
>     ATTRS{supports_autosuspend}=="0"
>     ATTRS{bAlternateSetting}==" 0"
>     ATTRS{bInterfaceNumber}=="00"


> Thanks for your help!
> Jerry




Tot mails,
  Hika                            mailto:hikavdh at gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens



More information about the mythtv-users mailing list