LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Strange behavior of IrDA on ThinkPad T60 with Slackware 12.1 (http://www.linuxquestions.org/questions/slackware-14/strange-behavior-of-irda-on-thinkpad-t60-with-slackware-12-1-a-680512/)

w1k0 11-01-2008 03:08 PM

Strange behavior of IrDA on ThinkPad T60 with Slackware 12.1
 
I'm trying hard to configure IrDA on my ThinkPad T60 with Slackware 12.1. On my old T41 IrDA seems to work well -- on my new T60 I noticed strange behavior of IrDA. Both machines use the same Slackware 12.1 with the same configuration of IrDA. I tested it on both machines with 2.4.24.5-smp generic kernel.

On T60 IrDA sometimes works and sometimes doesn't work. If it works gammu and irdadump recognize my mobile phone. If it doesn't work nor gammu nor irdadump recognize my mobile. Moreover in such situations irdadump works very slowly with huge timeouts.

The only method to force IrDA to work on that machine is to reboot it, to set up IrDA, and to test if it works. If it doesn't work once again reboot, set up, and test. And again, and again, until IrDA starts to work.

I have no idea what should I do to force IrDA to work after every reboot. Any help will be welcomed.

Below are some highlights of the system configuration and tests I did...

1. IrDA doesn't work

# lsmod | grep ir
Code:

nsc_ircc              19344  0
ircomm_tty            23944  0
ircomm                14340  1 ircomm_tty
irtty_sir              8960  0
sir_dev                14596  1 irtty_sir
irda                  114360  4 nsc_ircc,ircomm_tty,ircomm,sir_dev
crc_ccitt              5760  1 irda

# gammu identify
Code:

No response in specified timeout. Probably phone not connected.
# irdadump -d -x -s 256
Code:

18:24:50.233226 (66897.63 ms) xid:cmd 3f6a604e > ffffffff S=6 s=2 (14)
        ff3f014e606a3fffffffff010200
        . ? . N ` j ? . . . . . . .
18:26:58.094345 (127861.12 ms) xid:cmd 3f6a604e > ffffffff S=6 s=3 (14)
        ff3f014e606a3fffffffff010300
        . ? . N ` j ? . . . . . . .
18:29:05.964235 (127869.89 ms) xid:cmd 3f6a604e > ffffffff S=6 s=4 (14)
        ff3f014e606a3fffffffff010400
        . ? . N ` j ? . . . . . . .
18:31:13.850179 (127885.94 ms) xid:cmd 3f6a604e > ffffffff S=6 s=5 (14)
        ff3f014e606a3fffffffff010500
        . ? . N ` j ? . . . . . . .
18:33:21.741539 (127891.36 ms) xid:cmd 3f6a604e > ffffffff S=6 s=* home6 hint=0400 [ Computer ] (21)
        ff3f014e606a3fffffffff01ff000400686f6d6536
        . ? . N ` j ? . . . . . . . . . h o m e 6

5 packets received by filter

2. IrDA works

# lsmod | grep ir
Code:

nsc_ircc              19344  0
ircomm_tty            23944  0
ircomm                14340  1 ircomm_tty
irtty_sir              8960  0
sir_dev                14596  1 irtty_sir
irda                  114360  4 nsc_ircc,ircomm_tty,ircomm,sir_dev
crc_ccitt              5760  1 irda

# gammu identify
Code:

Manufacturer        : Nokia
Model                : 6021 (RM-94)
Firmware            : 04.10 B (07-09-05)
Hardware            : 4055
IMEI                : <cut>
Original IMEI        : <cut>
Manufactured        : 02/2006
Product code        : 0524874
UEM                  : 400

# irdadump -d -x -s 256
Code:

18:39:54.210159 (0985.80 ms) xid:cmd 3940b7d3 > ffffffff S=6 s=0 (14)
        ff3f01d3b74039ffffffff010000
        . ? . . . @ 9 . . . . . . .
18:39:54.298053 (0087.89 ms) xid:cmd 3940b7d3 > ffffffff S=6 s=1 (14)
        ff3f01d3b74039ffffffff010100
        . ? . . . @ 9 . . . . . . .
18:39:54.386055 (0088.00 ms) xid:cmd 3940b7d3 > ffffffff S=6 s=2 (14)
        ff3f01d3b74039ffffffff010200
        . ? . . . @ 9 . . . . . . .
18:39:54.466639 (0080.58 ms) xid:rsp 3940b7d3 < 0000f67d S=6 s=2 Nokia 6021 hint=b125 [ PnP Modem Fax Telephony IrCOMM IrOBEX ]
(27)
        febf017df60000d3b74039010200b125004e6f6b69612036303231
        . . . } . . . . . @ 9 . . . . % . N o k i a  6 0 2 1
18:39:54.474022 (0007.38 ms) xid:cmd 3940b7d3 > ffffffff S=6 s=3 (14)
        ff3f01d3b74039ffffffff010300
        . ? . . . @ 9 . . . . . . .
18:39:54.562065 (0088.04 ms) xid:cmd 3940b7d3 > ffffffff S=6 s=4 (14)
        ff3f01d3b74039ffffffff010400
        . ? . . . @ 9 . . . . . . .
18:39:54.650066 (0088.00 ms) xid:cmd 3940b7d3 > ffffffff S=6 s=5 (14)
        ff3f01d3b74039ffffffff010500
        . ? . . . @ 9 . . . . . . .
18:39:54.738072 (0088.01 ms) xid:cmd 3940b7d3 > ffffffff S=6 s=* home6 hint=0400 [ Computer ] (21)
        ff3f01d3b74039ffffffff01ff000400686f6d6536
        . ? . . . @ 9 . . . . . . . . . h o m e 6
18:39:57.210152 (2472.08 ms) xid:cmd 3940b7d3 > ffffffff S=6 s=0 (14)
        ff3f01d3b74039ffffffff010000
        . ? . . . @ 9 . . . . . . .
18:39:57.298154 (0088.00 ms) xid:cmd 3940b7d3 > ffffffff S=6 s=1 (14)
        ff3f01d3b74039ffffffff010100
        . ? . . . @ 9 . . . . . . .
18:39:57.386157 (0088.00 ms) xid:cmd 3940b7d3 > ffffffff S=6 s=2 (14)
        ff3f01d3b74039ffffffff010200
        . ? . . . @ 9 . . . . . . .
18:39:57.474153 (0088.00 ms) xid:cmd 3940b7d3 > ffffffff S=6 s=3 (14)
        ff3f01d3b74039ffffffff010300
        . ? . . . @ 9 . . . . . . .
18:39:57.554792 (0080.64 ms) xid:rsp 3940b7d3 < 0000f67d S=6 s=3 Nokia 6021 hint=b125 [ PnP Modem Fax Telephony IrCOMM IrOBEX ]
(27)
        febf017df60000d3b74039010300b125004e6f6b69612036303231
        . . . } . . . . . @ 9 . . . . % . N o k i a  6 0 2 1
18:39:57.562146 (0007.35 ms) xid:cmd 3940b7d3 > ffffffff S=6 s=4 (14)
        ff3f01d3b74039ffffffff010400
        . ? . . . @ 9 . . . . . . .
18:39:57.650167 (0088.02 ms) xid:cmd 3940b7d3 > ffffffff S=6 s=5 (14)
        ff3f01d3b74039ffffffff010500
        . ? . . . @ 9 . . . . . . .
18:39:57.738174 (0088.01 ms) xid:cmd 3940b7d3 > ffffffff S=6 s=* home6 hint=0400 [ Computer ] (21)
        ff3f01d3b74039ffffffff01ff000400686f6d6536
        . ? . . . @ 9 . . . . . . . . . h o m e 6

16 packets received by filter


General Failure 11-01-2008 03:38 PM

I have no idea about your actual problem, but I'd remove the IMEI if I were you. Not exactly shure why I would, but I would.

General Failure 11-01-2008 03:39 PM

Ooooooops...

w1k0 11-01-2008 04:01 PM

Well... Done... Thanks!

w1k0 11-02-2008 01:16 AM

I invented some strange test and I performed it. The results are compatible to my hypothesis. Unfortunately I couldn't interpret them...

1. I turned my machine on and tried generic 2.6.24.5-smp kernel and after consecutive reboot custom 2.6.24.5-smp kernel -- IrDA worked in both cases.

2. I rebooted machine and tried custom 2.6.27-smp kernel -- IrDA doesn't work.

3. I rebooted machine and tried once again generic 2.6.24.5-smp kernel and after consecutive reboot custom 2.6.24.5-smp kernel -- IrDA doesn't work in both cases.

4. I turned machine off, turned it on and tried both 2.6.24.5-smp kernels -- IrDA worked.

5. After reboot I tried 2.4.27 kernel -- IrDA doesn't work as well as after two consecutive reboots with both 2.6.24.5 kernels.

I repeated those procedures for a three times. IrDA works with both 2.6.24.5-smp kernels. IrDA doesn't work with 2.6.27-smp kernel. When I switch the system from 2.6.27 kernel to 2.6.24.5 kernels IrDA still doesn't work. It starts to work when I turn machine off and then turn it on.

It looks like 2.6.27 kernel spoils something in the system or in my machine and that error persists after consecutive reboots until I halt my machine.

I wonder why 2.6.27 kernel works wrong with IrDA -- I used to compile it the same configuration file I used to compile custom 2.6.24.5 kernel. But much more I wonder what 2.6.27 kernel spoils in such serious manner that that error persists after reboot.

I can live without my 2.6.27 kernel but I'd like to know what's the reason of that illogical from my point of view behavior of my machine. I'm sure there is some logical explanation of it but I can't guess it.

zezoivanov 11-26-2008 05:35 AM

IrDA is broken in 2.6.27 because of network stack rewrite.

The new code does not handle control frames and the stack works only at 9600 bps.

You could make it run with "echo 9600 > /proc/sys/net/irda/max_baud_rate", but it is pain at that speed.


All times are GMT -5. The time now is 07:45 PM.