martedì 8 gennaio 2013

Softmodem on HP G72 under Linux [SOLVED]

I have been struggling one hour (or more, ehm...) in order to have the onboard software modem on my HP-G72, so I decided to leave a note for myself (goldfish syndrome) and hopefully for others.
Note that the modem capability wasn't detected by aplay -l
But lsmod gave me some interesting modules loaded
snd_atiixp_modem       19044  0
snd_via82xx_modem      18601  0
snd_ac97_codec        134316  3 snd_atiixp_modem,snd_via82xx_modem,snd_intel8x0m


ENVIRONMENT:
Ubuntu 12.10 (kernel 3.5)

HOWTO:
sudo  service sl-modem-manager start
sudo ulimit -l 8192 && slmodemd -c ITALY --alsa hw:0

(in another console)
 sudo wvdialconf  /etc/wvdial.conf 

output:
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0   S1   S2   S3   S4   S5   S6   S7  
Modem Port Scan<*1>: S8   S9   S10  S11  S12  S13  S14  S15 
Modem Port Scan<*1>: S16  S17  S18  S19  S20  S21  S22  S23 
Modem Port Scan<*1>: S24  S25  S26  S27  S28  S29  S30  S31 
WvModem<*1>: Cannot get information for serial port.
ttySL0<*1>: ATQ0 V1 E1 -- OK
ttySL0<*1>: ATQ0 V1 E1 Z -- OK
ttySL0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttySL0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttySL0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttySL0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttySL0<*1>: Modem Identifier: ATI -- SmartLink Soft Modem
ttySL0<*1>: Speed 4800: AT -- OK
ttySL0<*1>: Speed 9600: AT -- OK
ttySL0<*1>: Speed 19200: AT -- OK
ttySL0<*1>: Speed 38400: AT -- OK
ttySL0<*1>: Speed 57600: AT -- OK
ttySL0<*1>: Speed 115200: AT -- OK
ttySL0<*1>: Speed 230400: AT -- OK
ttySL0<*1>: Speed 460800: AT -- OK
ttySL0<*1>: Max speed is 460800; that should be safe.
ttySL0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttySL0.
Modem configuration written to /etc/wvdial.conf.
ttySL0: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
Without ulimit command the output was
error: mixer setup: Off-hook switch not found for card hw:0
SmartLink Soft Modem: version 2.9.11 May 27 2012 20:09:21
symbolic link `/dev/ttySL0' -> `/dev/pts/1' created.
modem `hw:0' created. TTY is `/dev/pts/1'
error: locked memory limit too low:
error: need 8388608 bytes, have 65536 bytes
error: try 'ulimit -l 8192'

A patch to address this issue was discussed here lhttp://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg616496.html
where, btw, it seems that the error is raised only when slmodemd is started manually...

Nessun commento:

Posta un commento