Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
IrDA issues
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
mingnut
n00b
n00b


Joined: 28 Apr 2002
Posts: 11
Location: Surburbiton

PostPosted: Fri Jul 26, 2002 11:27 am    Post subject: IrDA issues Reply with quote

Hi,
I want to connect my mobile phone to my laptop via infrared and since my laptop is not connected to the 'Net I chose to download the irda-utils package directly from Sourceforge and compile it myself. The problem is that the install does not create an /etc/irda directory with all the necessary files in it. Also the start-up script does not work on Gentoo since it was designed with a standard RH/Debian layout. Can anyone provide me with the IrDA start-up script and a basic layout of the /etc/irda dir ? Thanks in advance.
_________________
Mingnut
Gentoo slaptop: P4 2.53, 512 MB DDR2100, 40 GB, GeForce 4 Go 64 MB, Realtek 8139 10/100 NIC.
Back to top
View user's profile Send private message
RMXO
n00b
n00b


Joined: 06 Jul 2002
Posts: 31
Location: Silicon Valley, CA

PostPosted: Fri Jul 26, 2002 10:49 pm    Post subject: Reply with quote

i might be wrong but did u add Irda module in your kernel compile?
_________________
Once you go SMP you never wanna go back!
Back to top
View user's profile Send private message
mingnut
n00b
n00b


Joined: 28 Apr 2002
Posts: 11
Location: Surburbiton

PostPosted: Mon Jul 29, 2002 6:34 pm    Post subject: IrDA Reply with quote

IrDA has been compiled into the kernel.
Only things such as the IRtty and IRcomm are modules.
I have made a breakthrough though. Once I loaded the IRcomm module and used the command
Code:
irattach irda0 -d 1

I was able to discover my Nokia 6310 mobile. The command "irdadump" confirmed it. I wonder if it were possible to see a basic IrDA config file for Gentoo. Does anybody have this ? Thanks in advance.
_________________
Mingnut
Gentoo slaptop: P4 2.53, 512 MB DDR2100, 40 GB, GeForce 4 Go 64 MB, Realtek 8139 10/100 NIC.
Back to top
View user's profile Send private message
kdf
n00b
n00b


Joined: 24 Jul 2002
Posts: 11
Location: Leuven, Belgium

PostPosted: Mon Jul 29, 2002 7:27 pm    Post subject: Re: IrDA Reply with quote

mingnut wrote:
I wonder if it were possible to see a basic IrDA config file for Gentoo. Does anybody have this ? Thanks in advance.


Hi there,

I created a file /etc/init.d/irda that looks like:
Code:

#!/sbin/runscript

start() {
        ebegin "Starting irda"
        modprobe serial
        modprobe irda
        modprobe ircomm
        modprobe irnet
        start-stop-daemon --start --quiet --pidfile /var/run/irattach.pid \
                --startas /usr/sbin/irattach -- /dev/ttyS1 -s
        eend $?
}

stop() {
        ebegin "Stopping irda"
        start-stop-daemon --stop --quiet --pidfile /var/run/irattach.pid
        eend $?
}



Ofcourse, you may need to change the device in this file, or do it
properly using some other configuration file? And if you do that,
you probably could submit it as a patch to the irda-utils ebuild?

cu,
kdf
Back to top
View user's profile Send private message
mingnut
n00b
n00b


Joined: 28 Apr 2002
Posts: 11
Location: Surburbiton

PostPosted: Wed Jul 31, 2002 11:12 am    Post subject: Thanks !! Reply with quote

Nice one. That is exactly what I am looking for. In my case, I will have to make changes to the modprobe lines, in order to make them more Toshiba-specific and change the switches for the irattach command.
Thanks again for the help. I will test the script and report any changes here.
_________________
Mingnut
Gentoo slaptop: P4 2.53, 512 MB DDR2100, 40 GB, GeForce 4 Go 64 MB, Realtek 8139 10/100 NIC.
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