Acer 3400LMI User Manual
Size:
756.04 Kb
Download

F8­x86_64 on the Acer Ferrari 3400LMi

#/sbin/modprobe irtty­sir 2>/dev/null /sbin/modprobe irnet 2>/dev/null setserial /dev/ttyS1 uart none

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

...

That is about it, You are done with the configuration.

14.2 Testing IrDA

Now start the IrDA service and watch the system log. Hopefully, you should see something similar the the following:

# service

irda start

 

Starting IrDA:

[ OK ]

# dmesg |

tail

 

...

 

 

ttyS1: LSR safety check

engaged!

pnp: Device 00:09 activated.

nsc­ircc,

chip­>init

 

nsc­ircc,

Found chip at base=0x02e

nsc­ircc,

driver loaded

(Dag Brattli)

IrDA: Registered device

irda0

nsc­ircc,

Using dongle:

IBM31T1100 or Temic TFDS6000/TFDS6500

This verifies that you have got the proper modules in place. The last step is to verify that we are able both of transmitting and receiving traffic. So activate IR on the remote device, e.g. your phone, and place the two IR­ports eye­to­eye. Then do a dump of the traffic:

# irdadump

­i irda0

 

...xid:cmd

62a9cc0d > ffffffff S=6 s=5 (14)

 

...xid:cmd

62a9cc0d > ffffffff S=6 s=* redneck hint=0400 [ Computer ]

(23)

 

 

...xid:cmd

ffffffff < 6f700c8d S=1 s=0 (14)

 

...xid:rsp

62a9cc0d > 6f700c8d S=1 s=0 redneck hint=0400 [ Computer ]

(23)

 

 

...xid:cmd

ffffffff < 6f700c8d S=1 s=* P900

hint=9325 [ PnP PDA/Palmtop

Modem Telephony IrCOMM IrOBEX ] (21)

You're all set! The first I did after this was to use irobex_palm3 <SIS­file> to upload and install GnuBox and some other programs on my phone. To do this you need to have theopenobex andopenobex­apps packages installed and your phone must supports the OBEX protocol. Pretty neat!

15 Modem

The Ferrari 3400 has a Smart Link soft modem installed. After the Ferrari 3400 was produced Smart Link was acquired by Conexant. Conexant has a strange policy when it comes to providing drivers for it products. Linux drivers are not

38

F8­x86_64 on the Acer Ferrari 3400LMi

provided by Conexant, but by Linuxant. If you want all the features, fax, 56k, etc., they will charge you for it. Although, a crippled version is free. I do not like that philosophy at all. First you pay for the product, then they make you pay again if you want to use it...

Fedora x86_64 has the ALSA kernel module snd_via82xx_modem pre­compiled. That module is capable of handling the internal soft­modem. Furthermore, this module is properly loaded at startup. However, the modem is still a Smart Link soft­modem so we need a corresponding user space daemon that utilize this ALSA support for our modem.

Notice that the source code distributed by Linuxant is divided in two parts, one general modem daemon and hardware specific drivers in the form of kernel modules. Since we already have an ALSA driver for our model we only need the modem daemon compiled with ALSA support.

That part is provided by Linmodems (http://linmodems.technion.ac.il). They do a great job in providing binary modem daemons, by regular compiles of the Linuxant code. This daemon may very well be compiled as a 32­bit executable. Even if we are running on a 64­bit platform.

Note: Unfortunately the modem support is still unstable. Depending on the versions of the modem daemon and the kernel it might work. Even though, it is very fragile and might very well break on the next kernel update.

Since I do not use the modem I can live with this situation, but I am not happy about it. The installation is not too complicated and is outlined below.

15.1 Installing daemon

Here are the basic steps to get the modem daemon up and running: 1. Start by checking that the alsa­utils package is installed:

# rpm ­q alsa­utils alsa­utils­1.0.15­1.fc8

otherwise install it like this:

#yum install alsa­utils

2.Verfiy that the proper ALSA kernel module is loaded and recognizes the modem:

#aplay ­l

...

card 1: modem [VIA 82XX modem], device 0: VIA 82XX modem [VIA 82XX modem]

Subdevices: 1/1

Subdevice #0: subdevice #0

3. Download the compiled modem daemon, SLMODEMD.gcc4.2.tar.gz, or

39

F8­x86_64 on the Acer Ferrari 3400LMi

later from http://linmodems.technion.ac.il/packages/smartlink/. 4. Unpack and install the daemon:

# tar zxf SLMODEMD.gcc4.2.tar.gz

# cd SLMODEMD.gcc4.2

#install ­m 755 slmodemd /usr/sbin/slmodemd

5.Verify that the SmartLink driver is able to find and configure an interface for the modem:

# slmodemd ­­country=SWEDEN ­­alsa ­­nortpriority symbolic link `/dev/ttySL0' ­> `/dev/pts/5' created. modem `modem:1' created. TTY is `/dev/pts/5'

Use `/dev/ttySL0' as modem device, Ctrl+C for termination.

You may see a complete list of recognized countries by:

#slmodemd ­­countrylist

6.For convenience I want the modem driver configured as a service that is started by the Sys V init system. However, the scripts/slmodemd file shipped with the package needs to be modified a bit in order to accomplish this. You will find my modified version inAppendix D.

7.Download and add this script as a service to the Sys V system:

#wget http://ferrari.databa.se/3400/f8/slmodemd­sysv­init.sh

# chmod u+x slmodemd­sysv­init.sh

#./slmodemd­sysv­init.sh install

8.Now edit your configuration options in /etc/sysconfig/slmodemd:

#A list of all supported country names can be retrieved

#by calling "slmodemd ­­countrylist" from the shell prompt. SLMODEMD_COUNTRY="SWEDEN"

#No additional device needed for ALSA mode

SLMODEMD_DEVICE=

#If set to yes the Advanced Linux Sound Architecture

#subsystem is used to make your modem working.

USE_ALSA="yes"

#Other options, see slmodemd ­­help for details SLMODEMD_OPTS="­­nortpriority"

9.Verify that the new service starts correctly:

#service slmodemd start

Starting

SmartLink

Modem driver:

[ OK ]

# service slmodemd

status

 

slmodemd

(pid 8356) is running...

 

40