Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
IrDA / LIRC problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Thu Oct 10, 2002 3:24 pm    Post subject: IrDA / LIRC problems Reply with quote

Hi,

I'm having problems getting IrDA to work on my Asus A7V-E mobo. I have a "internal" IR-dongle connected to the mobo and set the BIOS UART2 use Infra red to "enabled".
(COM2 is configured on IRQ=3 / IO=0x02f8

Now this is what I I did:
Code:

  671  modprobe serial
  672  modprobe irtty
  673  echo 1 > /proc/sys/net/irda/discovery
  674  echo 10 > /proc/sys/net/irda/debug
  675  irattach /dev/ttyS1

The kernel log responds:
Code:

Oct 10 17:05:18 [kernel] Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
Oct 10 17:05:31 [kernel] irda_init()
Oct 10 17:06:49 [kernel] irlmp_discovery_timer_expired()
Oct 10 17:06:52 [kernel] irlmp_discovery_timer_expired()
...
Oct 10 17:07:06 [kernel] hashbin_insert_R3gig_a410d036()
Oct 10 17:07:06 [kernel] IrDA: Registered device irda0
Oct 10 17:07:07 [kernel] irlmp_discovery_timer_expired()
Oct 10 17:07:07 [kernel] irda_create()
Oct 10 17:07:07 [kernel] hashbin_find()
Oct 10 17:07:07 [kernel] hashbin_find()
Oct 10 17:07:07 [kernel] irias_delete_value_R3gig_b9394173()
Oct 10 17:07:08 [kernel] irda_device_set_media_busy_R3gig_3aff7f9c(FALSE)
Oct 10 17:07:10 [kernel] irlmp_discovery_timer_expired()
Oct 10 17:07:10 [kernel] irtty_write_wakeup(), finished with frame!
Oct 10 17:07:10 [kernel] irda_task_timer_expired()
Oct 10 17:07:10 [kernel] irda_task_timer_expired()
Oct 10 17:07:10 [kernel] irda_task_timer_expired()
Oct 10 17:07:10 [kernel] irlap_do_event(), event = SLOT_TIMER_EXPIRED, state = LAP_QUERY
Oct 10 17:07:10 [kernel] irtty_write_wakeup(), finished with frame!
Oct 10 17:07:10 [kernel] irlap_do_event(), event = SLOT_TIMER_EXPIRED, state = LAP_QUERY
Oct 10 17:07:10 [kernel] irtty_write_wakeup(), finished with frame!
...


And now, when I press a button on my remote-control, I see:
Code:

Oct 10 17:07:13 [kernel] irtty_write_wakeup(), finished with frame!
Oct 10 17:07:13 [kernel] irda_device_set_media_busy_R3gig_3aff7f9c(TRUE)
Oct 10 17:07:13 [kernel] irda_device_set_media_busy_R3gig_3aff7f9c(TRUE)
Oct 10 17:07:13 [kernel] irda_device_set_media_busy_R3gig_3aff7f9c(TRUE)
Oct 10 17:07:13 [kernel] irtty_write_wakeup(), finished with frame!
Oct 10 17:07:14 [kernel] irlap_do_event(), event = SLOT_TIMER_EXPIRED, state = LAP_QUERY
...


This is a reaction, but it seems rather obscure. And it is the only response I'm getting from my IR.
Doing this doesn't work:
Code:

diannao irda # irdadump -i /dev/ttyS1
Using interface: /dev/ttyS1
ioctl: No such device

Doing this:
Code:

diannao irda # irdadump /dev/ttyS1
15:13:25.713132 xid:cmd 3b517319 > ffffffff S=6 s=0 (14)
15:13:25.803114 xid:cmd 3b517319 > ffffffff S=6 s=1 (14)
15:13:25.893114 xid:cmd 3b517319 > ffffffff S=6 s=2 (14)
15:13:25.983117 xid:cmd 3b517319 > ffffffff S=6 s=3 (14)
15:13:26.073116 xid:cmd 3b517319 > ffffffff S=6 s=4 (14)
15:13:26.163115 xid:cmd 3b517319 > ffffffff S=6 s=5 (14)
15:13:26.253122 xid:cmd 3b517319 > ffffffff S=6 s=* diannao hint=0400 [ Computer ] (23)

gives the same response every second or so, regardless of my pressing buttons on my remote-control or not...
So this seems to suck... :cry:

Now a try with lirc:
First:
Code:

killall irattach
rmmod irtty irda serial

Now I load the lirc_serial driver:
Code:

diannao irda # modprobe lirc_serial irq=3 io=0x02f8

Oct 10 17:19:19 [kernel] lirc_serial: auto-detected active high receiver


.. but I can't get any info out of it, both irw and mode2 do nothing:
Code:

diannao irda # mode2 -d /dev/lirc

<pushing  buttons> => <nothing>

or:
Code:

diannao irda # lircd -d /dev/lirc
diannao irda # irw

<pushing  buttons> => <nothing>


The lircd daemon seems to work ok:
Code:

diannao root # tail -f /var/log/lircd
...
Oct 10 17:21:24 diannao.cygnusnet.dyndns.org lircd-0.6.5: lircd(any) ready
Oct 10 17:23:18 diannao.cygnusnet.dyndns.org lircd-0.6.5: accepted new client on /dev/lircd
...

(that "new client" was irw)

I'm out of ideas :roll:
Anybody help me :?:
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
passepoil
n00b
n00b


Joined: 12 Jul 2002
Posts: 8
Location: Quebec, QC, Canada

PostPosted: Thu Jan 09, 2003 2:07 pm    Post subject: Which internal IR dongle ??? Reply with quote

Hello !

I'm wondering which IR dongle you are using, and where can I get one ?

When you say it's internal, do you mean it's connected using the onboard connectors ?

thanks,

Passe-Poil
Back to top
View user's profile Send private message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Thu Jan 09, 2003 8:51 pm    Post subject: Reply with quote

Yes, as I recall it's a 4 (or 5?) pin onboard connector, to which you can attach a small IR "eye" on a cable that you can buy separately.
I actually forgot about the whole thing, so still didn't get it to work. I might try later when in need.... (or if anyone still has info?)
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
undrwater
Guru
Guru


Joined: 28 Jan 2003
Posts: 314
Location: Caucasia

PostPosted: Fri Apr 04, 2003 10:44 pm    Post subject: Reply with quote

I have the same dongle and an Asus A7v333. I wasn't able to get irda to work in windows using this mobo, but i was using an earlier iwill mobo, which had more config options in the bios including the choice of duplex/half-duplex, COM, etc...

The asus really only has the choice to enable/disable irda...no other options...

i emailed asus for support on this but never got a response. i forgot about it until i saw this post! :)
_________________
Open-mindedness is painful...
Back to top
View user's profile Send private message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Fri Jun 13, 2003 10:34 pm    Post subject: SOLVED! Reply with quote

I picked the issue up, and solved it in an hour or so :D

The trick: use the right kernel module :wink:

Anyway, on my A7V-E mobo I selected (in the BIOS) uart2: io=0x2f8 irq=3 and enable IrDA.
Then, as root:
Code:

modprobe lirc_sir irq=3 io=0x2f8

and from that point onward the instructions on http://www.lirc.org/html/install.html#testing worked for me :)

Good luck :!:
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Sat Jun 14, 2003 8:40 am    Post subject: Reply with quote

UPDATE:
if for some reason the lirc_sir module fails to load, it migth be because io 0x2f8 and/or irq 3 are in use (check kernel log for that).
After rebooting I couldn't load lirc_sir anymore; this did the trick:
Code:

rmmod serial
modprobe lirc_sir irq=3 io=0x2f8
modprobe serial


In other words: apparently you should load serial (if desired at all) after lirc_sir
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
undrwater
Guru
Guru


Joined: 28 Jan 2003
Posts: 314
Location: Caucasia

PostPosted: Sat Jun 14, 2003 5:14 pm    Post subject: Reply with quote

Hmm...thanks! I don't use serial, so it should work fine. I'll try this weekend and see how it works...
_________________
Open-mindedness is painful...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum