LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-01-2008, 04:08 PM   #1
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,244

Rep: Reputation: 197Reputation: 197
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

Last edited by w1k0; 11-01-2008 at 05:00 PM.
 
Old 11-01-2008, 04:38 PM   #2
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 384

Rep: Reputation: 34
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.

Last edited by General Failure; 11-01-2008 at 04:40 PM.
 
Old 11-01-2008, 04:39 PM   #3
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 384

Rep: Reputation: 34
Ooooooops...
 
Old 11-01-2008, 05:01 PM   #4
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,244

Original Poster
Rep: Reputation: 197Reputation: 197
Well... Done... Thanks!

Last edited by w1k0; 11-02-2008 at 02:24 AM.
 
Old 11-02-2008, 02:16 AM   #5
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,244

Original Poster
Rep: Reputation: 197Reputation: 197
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.
 
Old 11-26-2008, 06:35 AM   #6
zezoivanov
LQ Newbie
 
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ThinkPad T60 freezes while on battery statguy Suse/Novell 3 01-14-2008 08:28 AM
ThinkPad T60 Suspend h3xis Linux - Laptop and Netbook 3 11-30-2007 10:12 PM
Slackware on ThinkPad T60 nsp Slackware - Installation 10 07-24-2007 10:01 AM
Installing ThinkFinger on ThinkPad T60 alkos333 Slackware 8 06-17-2007 01:07 PM
Two NICs - Slackware 10.2 - Strange behavior ScottReed Linux - Networking 2 02-09-2007 05:14 PM


All times are GMT -5. The time now is 08:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration