Acer 3400LMI User Manual
Size:
756.04 Kb
Download

F8­x86_64 on the Acer Ferrari 3400LMi

13.5.5 Transfer files

The Bluetooth OBEX Object Push client may be used to transfer files from the computer to your phone or other bluetooth device.

14 Infrared

IrDA support is provided by means of the package irda­utils, so first make sure that this package is installed on your system.

My first attempt started with changing the DEVICE in/etc/sysconfig/irda to

/dev/ttyS1 and fire up the IrDA service (/etc/init.d/irda start). Voilà! Watching the log messages verified that all modules were loaded and I had got a new device,irda0, to play with. The device showed up withifconfig as well. It was just too easy! And yes, although all looked perfect it did not work. Trying theirdadump reviled just a big silence.

14.1 Configuring IrDA

To make a long story short, the IR­chip in the Ferrari supports FIR (as well as SIR) and FIR is the default, while IrDA by default uses SIR. FIR is what you want

36

F8­x86_64 on the Acer Ferrari 3400LMi

to go for since it is faster than SIR and there is a stable Linux FIR driver available for this IR­chip. Below I'll walk you through the steps that got it working for me.

1.Start with grabbing a pen and a piece of paper and restart your Precious. Yes, this is one of those few occasions when you need to restart you Linux system. PressF2 during boot­up to enter the BIOS and note the settings for your IR­port. You do not need to change anything, but you need to know your exact setting. I will use my own setting through out this example:

Base I/O address:

[2F8]

Interrupt:

[IRQ

3]

DMA channel:

[DMA

1]

Once you have noticed your corresponding setting just exit the BIOS without saving and start your system.

2.Make sure that no other services use IRQ 3. Most likely your setting is also IRQ 3, so start looking in the /etc/pcmcia/config.opts file. Here you need to uncomment or insert the line

exclude irq 3

to prevent the pcmcia service from intervening.

3.Now we want a module capable of handling FIR on the Ferrari chip to be loaded when the IrDA service is started. The module of choice is nsc­ircc, so add the following two lines in/etc/modprobe.conf:

alias irda0 nsc­ircc

options nsc­ircc dongle_id=0x09 io=0x2f8 irq=3 dma=1

Pay attention to use the settings from your own BIOS for the last three parameters.

4.We also need to tell the IrDa service to attach directly to the device for our FIR capable module, so make sure to change the DEVICE setting in

/etc/sysconfig/irda to:

DEVICE=irda0

5.Then we do not want the generic Linux serial driver to interfere. One way of doing that is to add the following line in /etc/init.d/irda:

setserial /dev/ttyS1 uart none

The line should be place just before

daemon /usr/sbin/irattach ${DEVICE} ${ARGS}

6.While you are at it you might as well disable SIR by commenting out the tty lines. A short snippet of the final /etc/init.d/irda:

...

# /sbin/modprobe ircomm­tty 2>/dev/null

37