Sunday, January 01, 2006

Configure your Internal Modem on Linux

How to configure your Internal Modem Driver on Linux

In my Laptop Compaq Presario - M2002AL Model

I am Running Mandrake 9.2

#lspci |grep Modem

00:1f.6 Modem: Intel Corp. 82801DB AC'97 Modem Controller (rev 03)


You need to install smartlink driver for this to work.

Kernel Used in my system
2.4.22-21mdk-i686-up-4GB


I downloaded the smartlink driver from

http://linmodems.technion.ac.il/packages/smartlink/

slmodem-2.9.6.tar.gz

I unpacked it in /home/sriram

#tar -zxvf slmodem-2.9.6.tar.gz

#cd slmodem-2.9.6

For installing, do

#make clean
#make
#make install

Once it is installed without any error, you will have to load the module.

1. Load modem driver.

Load your modem hardware specific kernel module:

# modprobe slamr

if you are using AMR/CNR/PCI modem, or

# modprobe slusb

if you are using SmartUSB56 Modem.

Note: this will be done automatically when modules were
configured for 'loading on demand'

Note: this is safe to load both 'alamr' and 'slusb' modules.


2. Run soft modem application.

# /usr/sbin/slmodemd [options]

Where device name is appropriate device node for your modem
(look at output of 'dmesg' command).
Run '/usr/sbin/slmodemd --help' for details.

Examples:

# /usr/sbin/slmodemd --country=USA /dev/slamr0

, or for SmartUSB56 Modems:

# /usr/sbin/slmodemd --country=ITALY /dev/slusb0


3. Using the modem.

When 'slmodemd' is running this creates PTY (pseudo-terminal) to
emulate modem port device, also this creates symbolic link
like '/dev/ttySL0' (shown at startup).

Config your application to use this link '/dev/ttySL0' (or PTY node
itself) as modem port.

Note: Some application want 'to know' that they are working with
pseudo-terminal and may require additional configurations.

Known application notes:

- 'wvdial' requires option 'Carrier Check = no' in config file

No comments: