jeudi 26 novembre 2009

Utiliser son modem CDMA/EVDO sur Ubuntu 9.10 (Karmic Koala)

Presque trois semaines que je me suis absenté. C'est un peu la galère en ce moment à la fac avec les cours qui vont à 100 à l'heure. Mais ne vous en faites pas je prépare minutieusement plusieurs chapitres sur "La maîtrise de la console". Je les met en ligne dès que je termine, mais pour casser l'ambiance cimetière du moment, voici un tuto (que j'ai écrit rapidement) pour configurer les modems CDMA.   


Mon passage il y a quelques temps sous Karmic ne s'est pas effectué sans encombre. Ma messagerie Evolution m'a lâché à plusieurs reprises sans que je ne sache trop pourquoi, je fais une recherche dans mes mails et ça plante (Le pire, c'est que ça dépend grave de ses humeurs!!!). La série de bugs ne s'est malheureusement pas arrêtée là. Je teste peu de temps après la connexion CDMA d'une amie (un LG ldu-1900d qui marchait pourtant sur ma 9.04 ), et l'horreur, le modem n'est pas reconnu par NetworkManager.
La première chose qui me vient a l'esprit est de vérifier si lors de mon upgrade je n'ai pas perdu la règle qui me permettais de transformer le périphérique usb de départ en modem. Je vérifie avec un lsusb et je remarque que le modem est bien monté. Qu'est ce qui peut bien se passer dans cette boite???

J'obtiens le pid 1004:6107 qui indique que je suis bien en présence du modem et non du périphérique usb (sinon j'aurai eu plutôt un truc du genre 1004:1000).

Là je suis un peu embêté jusqu'à ce que je découvre grâce à un Google rapide que c'est un bug de NetworkManager. Je bidouille/google un peu par ci et par là et au final deux solutions s'offrent à moi:

  • La plus simple, c'est d'installer wvdial
Lancez la commande suivante


# sudo apt-get install wvdial


Ensuite éditez le fichier de config


# sudo gedit /etc/wvdial.conf


Puis changez la ligne avec phone par le numéro de téléphone de l'opérateur.
Changez le nom d'utilisateur (username) et mot de passe (password). Chez moi on se retrouve avec ce fichier.



[Dialer Defaults]
Modem Type = LG EVDO Rev.A USB Modem
Modem = /dev/ttyUSB1
Baud = 9600
ISDN = 0
Init1 = AT
Init2 = ATE0V1&D2&C1S0=0
Init3 = ATS7=60
Init4 = ATS0=0
Phone = *99#
Carrier Check = no
New PPPD = yes
Username =
Password = 


(Pour ceux qui ont un ldu-1900d faire un lsusb. Si le modem est reconnu c'est à dire un truc comme 1004:6701 apparaît, sautez cette étape, sinon si vous obtenez 1004:1000 continuez la lecture)

installez usb_modeswitch ici ou grâce à APT.

Ensuite lancez la commande suivante:


# sudo gedit /etc/udev/rules.d/45-lg-evdo-reva-usbmodem.rules


et copiez y les lignes en dessous.


SUBSYSTEM=="usb", SYSFS{idProduct}=="1000", SYSFS{idVendor}=="1004", RUN+="/usr/sbin/usb_modeswitch -v 0x1004 -p 0x1000 -m 0x08 -M 55534243
SUBSYSTEM=="usb", SYSFS{idProduct}=="6107", SYSFS{idVendor}=="1004", RUN+="/sbin/modprobe usbserial vendor=0x1004 product=0x6107"


Après pour se connecter, il faut faire


# sudo wvdial


  • La moins simple, c'est de downgrader la version de NetworkManager de la 0.8 vers la 0.7 (Méthode que j'ai obtenu grâce au tutoriel de tantos. in english :D)
On y va!!

Tuez les processus Network-manager et  l'applet Network-manager.


# sudo killall nm-applet
# sudo killall NetworkManager


Désinstallez Network-manager et modemanager


# sudo apt-get purge modemmanager network-manager


Installez les dépendances


# sudo apt-get install libpolkit-dbus2 libpolkit2 libpolkit-gnome0 libpolkit-grant2


Désactivez toutes les lignes dans votre source.list
système -> Administration -> Gestionnaire de paquets Synaptic
Dans Synaptic:
Configuration -> Dépôts
Décochez toutes les cases dans les deux premiers onglets (Logiciels de Ubuntu et logiciels de tieces parties).

Ajoutez ces deux lignes dans le deuxième onglet


deb http://ppa.launchpad.net/network-manager/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/network-manager/ppa/ubuntu karmic main


Mettez à jours votre source.list


# sudo apt-get update


Installez NetworkManager 0.7


# sudo apt-get install network-manager network-manager-gnome


Redémarrez votre machine


# sudo reboot



Et voilà ;)


PS: N'oubliez pas de réactiver vos dépôts dans votre source.list

29 commentaires:

Martin a dit…

Merci pour ce super tutoriel !
J'ai utilisé la première méthode et ça a marché du premier coup.
Le lendemain je réessaye et là rien à faire ça marche plus !!!
Aurais tu une idée pourquoi?
Le modem est semble t'il reconnu (lsusb positif et il apparait dans l'USB controller) mais quand je fais
sudo wvdial j'obtiens le message suivant :
mart@mart-laptop:~$ sudo wvdial
[sudo] password for mart:
--> Ignoring malformed input line: "l# Dialer configuration for LG EVDO Rev.A USB Modem"
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: AT
OK
--> Sending: ATE0V1&D2&C1S0=0
ERROR
--> Bad init string.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: AT
OK
--> Sending: ATE0V1&D2&C1S0=0
ERROR
--> Bad init string.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: AT
OK
--> Sending: ATE0V1&D2&C1S0=0
ERROR
--> Bad init string.
mart@mart-laptop:~$

Aurais tu une piste de réponse?
Je suis totalement novice sur linux et je m'arrache les cheveux !!
Merci

Unknown a dit…

j'ai le même problème est ce que qlq peut nous aider

Anonyme a dit…

I absolutely love your blog and find almost all of your post's to be exactly I'm looking for.
can you offer guest writers to write content for yourself?
I wouldn't mind writing a post or elaborating on a number of the subjects you write regarding here. Again, awesome website!

Feel free to visit my web site Wholesale NFL Jerseys

Anonyme a dit…

You really make it appear really easy together with your presentation however I find this topic to be actually something which I believe
I might by no means understand. It sort of feels too complex and extremely huge for me.
I am taking a look forward to your subsequent post, I'll attempt to get the cling of it!

Also visit my web blog - Sidney Crosby Authentic Jersey

Anonyme a dit…

Awesome article.

my page; http://www.earlylearningpreschool.com/

Anonyme a dit…

I was wondering if you ever thought of changing the page layout of your website?
Its very well written; I love what youve got
to say. But maybe you could a little more in the way of content so people could connect with it better.
Youve got an awful lot of text for only having one or 2 images.
Maybe you could space it out better?

Look at my web blog; Abercrombie Et Fitch

Anonyme a dit…

I blog often and I truly thank you for your content. Your
article has truly peaked my interest. I will bookmark your site and keep checking for new information about once a week.
I opted in for your Feed too.

My homepage ... Michael Kors Handbags

Anonyme a dit…

Piece of writing writing is also a excitement, if you be acquainted with afterward you can write if not it is complicated to write.


Also visit my web page; Chaussure De Foot Pas Cher

Anonyme a dit…

whoah this weblog is wonderful i love reading your posts. Stay up the great work!
You understand, a lot of people are hunting around
for this information, you could help them greatly.


Look into my homepage :: NFL Jerseys Cheap

Anonyme a dit…

Hey there! I just wanted to ask if you ever have any issues with hackers?

My last blog (wordpress) was hacked and I ended up losing several weeks of hard work due to no data backup.

Do you have any solutions to prevent hackers?

my blog :: Abercrombie & Fitch

Anonyme a dit…

Your mode of explaining everything in this article is
really good, every one be capable of easily be aware of it, Thanks a lot.


Check out my web site ... Louis Vuitton Purses

Anonyme a dit…

Wow, superb blog format! How long have you ever been blogging for?
you make running a blog look easy. The full glance
of your web site is fantastic, as neatly as the content
material!

Also visit my blog post: Michael Kors

Anonyme a dit…

I all the time emailed this blog post page to all my contacts, since if like to
read it afterward my friends will too.

Feel free to surf to my web site; Louis Vuitton Outlet

Anonyme a dit…

I'm really impressed with your writing skills as well as with the layout on your blog. Is this a paid theme or did you customize it yourself? Either way keep up the excellent quality writing, it's rare to
see a nice blog like this one nowadays.

Also visit my site ... Louis Vuitton Handbags Outlet

Anonyme a dit…

My brother suggested I might like this blog. He was entirely right.
This post truly made my day. You cann't imagine just how much time I had spent for this information! Thanks!

my webpage - Louis Vuitton Outlet

Anonyme a dit…

Hi there excellent blog! Does running a blog like this take a
lot of work? I have absolutely no expertise in coding however I had been hoping to start my own blog soon.
Anyways, if you have any suggestions or tips for new blog owners please
share. I know this is off topic but I just needed
to ask. Kudos!

Check out my site ... Evgeni Malkin Authentic Jersey

Anonyme a dit…

Hello everyone, it's my first pay a visit at this web page, and post is truly fruitful in support of me, keep up posting these articles or reviews.

Look at my blog; officielairjordan2013.com

Anonyme a dit…

We're a gaggle of volunteers and opening a brand new scheme in our community. Your website offered us with useful information to work on. You've done
an impressive process and our entire group can
be grateful to you.

Look at my web page: Air Max

Anonyme a dit…

It's really a nice and helpful piece of information. I am happy that you simply shared this helpful info with us. Please stay us informed like this. Thanks for sharing.

Here is my webpage: Air Max Pas Cher

Anonyme a dit…

Wonderful site. A lot of useful information here. I'm sending it to some buddies ans also sharing in delicious. And obviously, thank you for your effort!

my web site NFL Jerseys Wholesale

Anonyme a dit…

Ahaa, its pleasant conversation concerning this
article here at this weblog, I have read all that, so at this time
me also commenting here.

Check out my page - Sac a main Guess

Anonyme a dit…

What's up all, here every person is sharing these knowledge, thus it's good to read this web site, and I used
to go to see this webpage daily.

Here is my homepage; look at This

Anonyme a dit…

Usually I don't read article on blogs, however I wish to say that this write-up very forced me to check out and do so! Your writing style has been amazed me. Thank you, very nice article.

Also visit my web-site ... extra resources

Anonyme a dit…

Hello to every , because I am in fact keen of reading
this web site's post to be updated regularly. It contains fastidious information.

my web page - Cheap Oakley Sunglasses

Anonyme a dit…

I want to to thank you for this good read!! I absolutely enjoyed every little bit of it.

I've got you book-marked to look at new things you post…

My homepage ... Louis Vuitton Pas Cher

Anonyme a dit…

Hello to every body, it's my first pay a quick visit of this weblog; this webpage contains awesome and in fact excellent material for visitors.

My webpage; Air Max Pas Cher

Anonyme a dit…

whoah this weblog is excellent i really like reading your articles.
Keep up the good work! You know, a lot of individuals are hunting round for
this info, you can aid them greatly.

my page: Air Max

Anonyme a dit…

I have read so many content about the blogger lovers except this post is genuinely a fastidious article,
keep it up.

Feel free to visit my blog post; Going Here

Anonyme a dit…

e cig, e cigarette, best e cigarette, electronic cigarettes, e cigarette forum, best electronic cigarette