Автор Гілка: USB External Modem GM56USB  (Прочитано 7245 раз)

Відсутній Sandr

  • Графоман
  • ****
  • дописів: 461
  • Карма: +0/-0
  • Мій вибір — Лінукс!
    • ФОП Осипенко
Re: USB External Modem GM56USB
« Відповідей #30 : 2009-08-31 02:01:33 »
Завантажую модулі agrmodem і agrserial в ядро:
# modprobe agrmodem
# modprobe agrserial

Переконуюся в наявності завантажених модулів:
> lsmod
Цитата
ModuleSizeUsed by
agrserial106160
agrmodem11852201 agrserial
Перевіряю заодно, чи з’явився пристрій програмного модему:
> ls -l /dev/ttyA*
Цитата
crw-rw---- 1 root uucp 62, 67 вер  1 00:28 /dev/ttyAGS3
Створюю додаткові посилання на цей пристрій:
# ln -s /dev/ttyAGS3 /dev/ttySAGR
# ln -s /dev/ttyAGS3 /dev/modem

Переконуюся, чи створені посилання:
> ls -l /dev/ttyAGS3 /dev/modem
Цитата
lrwxrwxrwx 1 root root     12 вер  1 00:36 /dev/modem -> /dev/ttyAGS3
lrwxrwxrwx 1 root root     12 вер  1 00:35 /dev/ttySAGR -> /dev/ttyAGS3
openSUSE + KDE

Відсутній Sandr

  • Графоман
  • ****
  • дописів: 461
  • Карма: +0/-0
  • Мій вибір — Лінукс!
    • ФОП Осипенко
Re: USB External Modem GM56USB
« Відповідей #31 : 2009-08-31 02:30:36 »
Теоретично начебто вже драйвер встановлений і модем повинен запрацювати, але при тестуванні ось що виходить насправді.

Тестуємо модем такою командою:
# wvdialconf /etc/wvdial-test.conf
Цитата
Editing `/etc/wvdial-test.conf'.

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- �`
ttyS0<*1>: failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<Info>: Device or resource busy
Modem Port Scan<*1>: S1   S2   S3   S4   S5   S6   S7   Segmentation fault
Тобто, як бачимо, програма начебто і не визначає нашого програмного модема.

Але, якщо перевірити стан модулів, то модуль agrserial вже буде використовуватися двома програмами (питання: чому двома і якими саме програмами?):
Цитата
ModuleSizeUsed by
agrserial106162
agrmodem11852201 agrserial
При повторному виконанні тестування програма просто зависає:
Цитата
Editing `/etc/wvdial-test.conf'.

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- �`
ttyS0<*1>: failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<Info>: Device or resource busy
Modem Port Scan<*1>: S1   S2   S3   S4   S5   S6   S7  
При цьому навіть комбінація Cntr+C не виводить програму із зависання і доводиться просто закривати вікно консолі...  :o

Стан модулів після цього стає таким:
Цитата
ModuleSizeUsed by
agrserial106163
agrmodem11852201 agrserial
openSUSE + KDE

Відсутній Sandr

  • Графоман
  • ****
  • дописів: 461
  • Карма: +0/-0
  • Мій вибір — Лінукс!
    • ФОП Осипенко
Re: USB External Modem GM56USB
« Відповідей #32 : 2009-08-31 02:38:32 »
Думав, що можливо помилково зібраний пакунок. Видалив його, скомпілював і установив модулі з вихідних кодів і отримав таке ж зависання...

Далі спробува ще цю ж процедуру на Ubuntu 9.04 і теж аналогічне зависання.  :(

Що робити далі вже не розумію...
openSUSE + KDE

Відсутній yurchor

  • Видавець
  • *******
  • дописів: 3630
  • Карма: +2/-0
  • Grateful for our Iron Lung
    • Вікі користувачів KDE
Re: USB External Modem GM56USB
« Відповідей #33 : 2009-08-31 11:54:18 »
Думав, що можливо помилково зібраний пакунок. Видалив його, скомпілював і установив модулі з вихідних кодів і отримав таке ж зависання...

Далі спробува ще цю ж процедуру на Ubuntu 9.04 і теж аналогічне зависання.  :(

Що робити далі вже не розумію...
Цитата
A failure will include lines like:
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1   S2   S3  
Sorry, no modem was detected!

In this case there are a few Remedies to try.
R1) edit your grub or lilo parameter to the kernel with the option "pci=noacpi"
For example in a Ubuntu system, gedit can be used to modify the file             /boot/grub/menu.lst
with command:
      sudo gedit /boot/grub/menu.lst

The middle of menu.lst includes sections correponding to each bootup choice like:

title            Ubuntu 7.10, kernel 2.6.22-14-generic
root            (hd0,0)
kernel            /boot/vmlinuz-2.6.22-14-generic ro quiet splash
initrd            /boot/initrd.img-2.6.22-14-generic
quiet

Make a copy of this section, and edit to:
title            Ubuntu 7.10, kernel 2.6.22-14-generic without acpi
root            (hd0,0)
kernel            /boot/vmlinuz-2.6.22-14-generic ro quiet splash pci=noacpi
initrd            /boot/initrd.img-2.6.22-14-generic
quiet

Save the edit
Restart the computer.
Among the bootup options, make the new choice:
     Ubuntu 7.10, kernel 2.6.22-14-generic without acpi
Test for modem detection, through steps  1,2 and 3
Go to the dialout test if successful.

R2) If not, try to disable the sound in the bootup BIOS.
R2a) Note a success can sometimes be achieved by moving the modem card to other PCI slot. But this option is not available on laptops.
See success report: http://linmodems.technion.ac.il/bigarch/archive-eighth/msg00304.html

Follow prior steps 1,2 and 3 for testing, retaining the bootup acpi=off parameter.
Denounce the demagogues
King diamonds to discard
Deploy the dialogue
Your word against the law