Re: TV Remote Control, Lirc under FreeBSD 6.1

2006-05-27 Thread Evgeny Solovyov

# ls -l /dev/ttyd0
crw---  1 root  wheel0,  53 May 26 23:20 /dev/ttyd0
#
Are you sure you're accessing that as root? Try adding world read 
permissions (and maybe world write permissions if the read permissions 
don't solve your problem) for the device because maybe lirc is being run 
by a secondary daemon user.


Yes, I'm sure.

Ok, i change permissions

# devfs rule apply path ttyd0 mode 0666
# ls -l /dev/ttyd0*
crw-rw-rw-  1 root  wheel   0,  53 May 27 12:25 /dev/ttyd0
crw---  1 root  wheel   0,  54 May 27 11:30 /dev/ttyd0.init
crw---  1 root  wheel   0,  55 May 27 11:30 /dev/ttyd0.lock
#
# irrecord -d /dev/ttyd0 /tmp/lirc.conf

irrecord -  application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus([EMAIL PROTECTED])

irrecord: could not open /dev/ttyd0
irrecord: irman_init(): No such file or directory
irrecord: could not init hardware (lircd running ? -- close it, check 
permissions)
#
#
# ps axu|grep lirc   rc
root   4556  0.0  0.0  1476   604  p1  R+   12:42PM   0:00.00 grep lirc
#
# truss irrecord -d /dev/ttyd0 /tmp/lirc.conf
mmap(0x0,3608,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 671576064 
(0x28077000)
munmap(0x28077000,0xe18) = 0 (0x0)
__sysctl(0xbfbfead8,0x2,0x28073998,0xbfbfead4,0x0,0x0) = 0 (0x0)
mmap(0x0,32768,(0x3)PROT_READ|PROT_WRITE,(0x1002)MAP_ANON|MAP_PRIVATE,-1,0x0) = 
671576064 (0x28077000)
issetugid()  = 0 (0x0)
open(/etc/libmap.conf,0x0,0666)= 3 (0x3)
fstat(3,0xbfbfe1f0)  = 0 (0x0)
read(0x3,0x2807b000,0x1000)  = 3661 (0xe4d)
read(0x3,0x2807b000,0x1000)  = 0 (0x0)
close(3) = 0 (0x0)
open(/var/run/ld-elf.so.hints,0x0,00)  = 3 (0x3)
read(0x3,0xbfbfeaa0,0x80)= 128 (0x80)
lseek(3,0x80,SEEK_SET)   = 128 (0x80)
read(0x3,0x2807e000,0x6c)= 108 (0x6c)
close(3) = 0 (0x0)
mmap(0x0,36864,(0x3)PROT_READ|PROT_WRITE,(0x1002)MAP_ANON|MAP_PRIVATE,-1,0x0) = 
671608832 (0x2807f000)
access(/lib/libc.so.6,0)   = 0 (0x0)
open(/lib/libc.so.6,0x0,00)= 3 (0x3)
fstat(3,0xbfbfeae0)  = 0 (0x0)
read(0x3,0x280728e0,0x1000)  = 4096 (0x1000)
mmap(0x0,884736,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,3,0x0) 
= 671645696 (0x28088000)
mprotect(0x28147000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mprotect(0x28147000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
mmap(0x28148000,20480,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,3,0xc)
 = 672432128 (0x28148000)
mmap(0x2814d000,77824,(0x3)PROT_READ|PROT_WRITE,(0x1012)MAP_ANON|MAP_FIXED|MAP_PRIVATE,-1,0x0)
 = 672452608 (0x2814d000)
close(3) = 0 (0x0)
sysarch(0xa,0xbfbfeb50)  = 0 (0x0)
mmap(0x0,736,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 672530432 
(0x2816)
munmap(0x2816,0x2e0) = 0 (0x0)
mprotect(0x28088000,786432,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0)
mmap(0x0,22208,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 672530432 
(0x2816)
munmap(0x2816,0x56c0)= 0 (0x0)
mprotect(0x28088000,786432,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0)
sigprocmask(0x1,0x28072820,0xbfbfeb20)   = 0 (0x0)
sigprocmask(0x3,0x28072830,0x0)  = 0 (0x0)
open(/tmp/lirc.conf,0x0,0666)  = 3 (0x3)
fstat(3,0xbfbfe5e0)  = 0 (0x0)
readlink(/etc/malloc.conf,0xbfbfe600,63)   ERR#2 'No such file or 
directory'
issetugid()  = 0 (0x0)
mmap(0x0,4096,(0x3)PROT_READ|PROT_WRITE,(0x1002)MAP_ANON|MAP_PRIVATE,-1,0x0) = 
672530432 (0x2816)
break(0x8057000) = 0 (0x0)
break(0x8058000) = 0 (0x0)
read(0x3,0x8057000,0x1000)   = 2406 (0x966)
break(0x8059000) = 0 (0x0)
break(0x805a000) = 0 (0x0)
break(0x805b000) = 0 (0x0)
break(0x805c000) = 0 (0x0)
read(0x3,0x8057000,0x1000)   = 0 (0x0)
close(3) = 0 (0x0)
open(/tmp/lirc.conf.conf,0x601,0666)   = 3 (0x3)
fstat(1,0xbfbfea90)  = 0 (0x0)
ioctl(1,TIOCGETA,0xbfbfead0) = 0 (0x0)

write(1,0x8057000,1) = 1 (0x1)
irrecord -  application for recording IR-codes for usage with lirc
write(1,0x8057000,67)= 67 (0x43)

write(1,0x8057000,1) = 1 (0x1)
Copyright (C) 1998,1999 Christoph Bartelmus([EMAIL PROTECTED])
write(1,0x8057000,63)   

TV Remote Control, Lirc under FreeBSD 6.1

2006-05-26 Thread Evgeny Solovyov

Anybody use lirc under FreeBSD 6.x? (/usr/ports/comms/lirc)

I have a Problems to use it:



# lircd -n --device=/dev/ttyd0 /tmp/lirc.conf
lircd 0.7.2: lircd(irman) ready
..

# irw /var/lirc/lircd

..
lircd 0.7.2: accepted new client on /var/lirc/lircd
lircd 0.7.2: could not open /dev/ttyd0
lircd 0.7.2: irman_init(): Operation timed out
lircd 0.7.2: caught signal
Terminated
#


Does anyone have any ideas? Please help me.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: TV Remote Control, Lirc under FreeBSD 6.1

2006-05-26 Thread Garrett Cooper

Evgeny Solovyov wrote:

Anybody use lirc under FreeBSD 6.x? (/usr/ports/comms/lirc)

I have a Problems to use it:



# lircd -n --device=/dev/ttyd0 /tmp/lirc.conf
lircd 0.7.2: lircd(irman) ready
..

# irw /var/lirc/lircd

..
lircd 0.7.2: accepted new client on /var/lirc/lircd
lircd 0.7.2: could not open /dev/ttyd0
lircd 0.7.2: irman_init(): Operation timed out
lircd 0.7.2: caught signal
Terminated
#


Does anyone have any ideas? Please help me.

What are the permissions for /dev/ttyd0? Also, what groups do you belong to?
-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: TV Remote Control, Lirc under FreeBSD 6.1

2006-05-26 Thread Evgeny Solovyov

Anybody use lirc under FreeBSD 6.x? (/usr/ports/comms/lirc)

I have a Problems to use it:



# lircd -n --device=/dev/ttyd0 /tmp/lirc.conf
lircd 0.7.2: lircd(irman) ready
..

# irw /var/lirc/lircd

..
lircd 0.7.2: accepted new client on /var/lirc/lircd
lircd 0.7.2: could not open /dev/ttyd0
lircd 0.7.2: irman_init(): Operation timed out
lircd 0.7.2: caught signal
Terminated
#


Does anyone have any ideas? Please help me.
What are the permissions for /dev/ttyd0? Also, what groups do you belong 
to?

-Garrett


with permissions is all Ok.

# ls -l /var/lirc/lircd
srw-r--r--  1 root  wheel  0 May 27 00:24 /var/lirc/lircd=


And i try it als root.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: TV Remote Control, Lirc under FreeBSD 6.1

2006-05-26 Thread Evgeny Solovyov

Anybody use lirc under FreeBSD 6.x? (/usr/ports/comms/lirc)

I have a Problems to use it:



# lircd -n --device=/dev/ttyd0 /tmp/lirc.conf
lircd 0.7.2: lircd(irman) ready
..

# irw /var/lirc/lircd

..
lircd 0.7.2: accepted new client on /var/lirc/lircd
lircd 0.7.2: could not open /dev/ttyd0
lircd 0.7.2: irman_init(): Operation timed out
lircd 0.7.2: caught signal
Terminated
#


Does anyone have any ideas? Please help me.
What are the permissions for /dev/ttyd0? Also, what groups do you 
belong to?

-Garrett


with permissions is all Ok.

# ls -l /var/lirc/lircd
srw-r--r--  1 root  wheel  0 May 27 00:24 /var/lirc/lircd=


And i try it als root.



Sorry i was to fast  :)

# ls -l /dev/ttyd0
crw---  1 root  wheel0,  53 May 26 23:20 /dev/ttyd0
#
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: TV Remote Control, Lirc under FreeBSD 6.1

2006-05-26 Thread Garrett Cooper

Evgeny Solovyov wrote:

Anybody use lirc under FreeBSD 6.x? (/usr/ports/comms/lirc)

I have a Problems to use it:



# lircd -n --device=/dev/ttyd0 /tmp/lirc.conf
lircd 0.7.2: lircd(irman) ready
..

# irw /var/lirc/lircd

..
lircd 0.7.2: accepted new client on /var/lirc/lircd
lircd 0.7.2: could not open /dev/ttyd0
lircd 0.7.2: irman_init(): Operation timed out
lircd 0.7.2: caught signal
Terminated
#


Does anyone have any ideas? Please help me.
What are the permissions for /dev/ttyd0? Also, what groups do you 
belong to?

-Garrett


with permissions is all Ok.

# ls -l /var/lirc/lircd
srw-r--r--  1 root  wheel  0 May 27 00:24 /var/lirc/lircd=


And i try it als root.



Sorry i was to fast  :)

# ls -l /dev/ttyd0
crw---  1 root  wheel0,  53 May 26 23:20 /dev/ttyd0
#
Are you sure you're accessing that as root? Try adding world read 
permissions (and maybe world write permissions if the read permissions 
don't solve your problem) for the device because maybe lirc is being run 
by a secondary daemon user.

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]