[mythtv-users] LIRCD will load as root.. But not as mythtv?
Michael Jones
m_g_j at michaelandholly.com
Mon May 1 17:16:20 UTC 2006
Tried this..(and a few other permutations) Still doesn't work. When I start
from the rc.local file things seem to start, but the service seems to become
inaccessible. If I run irw nothing happens.
The only way this seems to work is if I "manually" start it from the command
line..
> From: Nick <knowledgejunkie at gmail.com>
> Reply-To: Discussion about mythtv <mythtv-users at mythtv.org>
> Date: Mon, 24 Apr 2006 08:41:09 +0100
> To: Discussion about mythtv <mythtv-users at mythtv.org>
> Subject: Re: [mythtv-users] LIRCD will load as root.. But not as mythtv?
>
> On 24/04/06, Michael Jones <m_g_j at michaelandholly.com> wrote:
>> Devan,
>>
>> Thanks for the response.. But..
>>
>> Rebooting the system and running lsmod doesn't show anything lirc.
>>
>> When I run modprobe lirc_i2c as root, it works perfectly. When I run it as
>> mythtv it fails.
>>
>> Before the modprobe lirc_i2c as root, the file /var/run/lirc.pid doesn't
>> exist.
>>
>> Before modprobe lirc_i2c there's an entry /dev:
>>
>> srw-rw-rw- 1 root root 0 Apr 23 23:48 lircd
>>
>> If I run (logged in as mythtv rather than root)
>>
>> # sudo modprobe lirc_i2c
>>
>> It works, and in /dev:
>>
>> crw------- 1 root root 61, 0 Apr 23 23:52 lirc
>> crw------- 1 root root 61, 0 Apr 23 23:52 lirc0
>> srw-rw-rw- 1 root root 0 Apr 23 23:48 lircd
>>
>> If I enter:
>>
>> # sudo service lircd start
>>
>> Things work just fine.
>>
>> If I put the sudo'd commands in the startup script.. Things don't work.
>>
>> I'm having a hard time believing that it's strictly permission related.
>> Especially since I didn't change any permissions after updating from .18 to
>> .19 (at least not intentionally).
>
> In your /etc/rc.local file, add
>
> /sbin/modprobe lirc_i2c
> sleep 2
> chmod 777 /dev/lirc*
> service lircd start
>
>
> You don't need to sudo (to root) commands in rc.local as the file is
> executed as root at startup. The second command will give rwx
> permssions to all users before starting LIRC. You also don't need to
> keep executing depmod unless you are changing installed driver
> modules.
>
> Nick
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
More information about the mythtv-users
mailing list