On Wed, Aug 12, 2009 at 11:22 PM, Duncan Webb <[email protected]> wrote:
> On 29/07/2009 06:52, Bernard Mentink said the following:
> >
> >
> > On Wed, Jul 29, 2009 at 3:14 PM, Bernard Mentink <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >
> >
> > On Wed, Jul 29, 2009 at 9:46 AM, Jason Tackaberry <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> > On Tue, 2009-07-28 at 17:15 +1200, Bernard Mentink wrote:
> > > It seems like freevo is looking at the wrong device (I have
> > > a /dev/lirc0 and a /dev/lirc_01)
> > > Is there some configuration file where I need to tell freevo
> the
> > > device?
> >
> > Freevo (via pylirc) doesn't talk to the lirc device, but rather
> > through
> > lircd. Is /dev/lircd readable by the user running freevo?
> >
> >
> > Hi,
> >
> > The device has 666 permissions .... anything else I should check.
> >
> > Cheers,
> > Bernie
> >
> >
> > Ok, I am in a right pickle now. I can't even run irw as a normal user, I
> > have to run it as root.
> > Really confused over the permission thing.
> >
> > At the moment /dev/lircd, /dev/lirc0 all have 666 permissions, all have
> > owner as root.root /usr/local/sbin/lircd has 777 permissions owner
> > root.root...
> >
> > When I try to run lircd as a normal user, I get this error:
> >
> > lircd -d /dev/lirc0
> > lircd: can't open or create /var/run/lirc/lircd.pid
> > lircd: Permission denied
> >
> > I have set /var/run/lirc and /var/run/lirc/lircd to 666 permissions as
> well.
>
> /var/run/lirc is a directory so it will need the 'x' permission as well,
> so as over kill you can set the permission to 777
>
> > Do I have to set all the above programes to user root.myuser as well?
> >
> > Any help appreciated.
>
> One useful trick is to use strace on programs that you have no idea
> about what is going on. So for example:
> strace -o lircd.strace lircd -d /dev/lirc0
> will create a log called lircd.strace that you can look at to see what
> is happening.
>
> Duncan
>
> --------
>
Hi Duncan,
Thanks for the tip. I found the problem though. I had to provide an output
argument to lircd to create the socket device.
First I had to create the /var/run/lirc directory as root(a new boot removes
this dir), then I gave the command "lircd -d /dev/lirc0 -o /dev/lircd" as
root and everything started working ok.
I did not have to change permissions of anything in the end..
So these two command in a startup file as root does the trick.
Cheers,
Bernie
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users