Tag Archives: 12.10

Mobile Broadband Modem Huawei e173 / e173s on Ubuntu 12.10 Quantal

Recently, I have been using the mobile broadband modem HUAWEI E173S in order to connect to Internet through 3G Cellular UMTS network.

It worked fine in Ubuntu 12.04 Precise Pangolin, but did not in 12.10 Quantal Quetzal.

I was though able to connect the modem thanks to the 3G utility : SAKIS3G and later through the Gnome Network Manager using a former version of Modem Manager packaged for Ubuntu.

  1. Download sakis3g : http://www.sakis3g.org/
  2. Uncompress the downloaded archive and put sakis3g file in your desktop directory.
  3. copy the sakis3g script to /usr/bin/ in order to execute it from Terminal: sudo cp ~/Desktop/sakis3g /usr/bin/
  4. Give it execution rights : sudo chmod 777 /usr/bin/sakis3g
  5. create a configuration file for your modem: gksudo gedit /etc/sakis3g.conf
  6. Append the following on the following on the newly created file:
    APN=CUSTOM_APN
    CUSTOM_APN="internet2.meditel.ma"
    APN_USER="MEDINET"
    APN_PASS="MEDINET"
    USBDRIVER="option"
    USBMODEM="12d1:1c05"
    OTHER="USBMODEM"
    MODEM="OTHER"

    These settings are for the Operator Meditel so you have to modify the custom APN, the username, the password that correspond to your Mobile Operator and eventually the USBMODEN identification depending on whether you own the e173 or e173s model.

    To identify your moden while plugged (Notice that when you plug the modem, you need to wait for several seconds before it gets recognized – probably because modem-manager switches the USB stick key from USB Storage to USB Modem), type in Terminal :

    lsusb

    This will give you something like this :

    Bus 002 Device 008: ID 12d1:1c05 Huawei Technologies Co., Ltd. E173s 3G broadband stick (modem on)

    Copy the vendor ID and Product ID. (E173 & E173s have different product Ids).

  7. save the file and run sakis3g: sudo sakis3g connect
  8. In order to disconnect, run : sudo sakis3g disconnect
  9. If you want to be assisted through an interactive configuration, run: sudo sakis3g --interactive
sakis3G

sakis3g

However, if though you succeed in connecting with sakis3G, Ubuntu Software Center, Empathy IM and Software Updater will not be able to connect to Internet because they get Internet route from Network Manager. In order to loop the route, create a new Wireless Network and connect to it. This wireless network must be AD-HOC and SHARED to OTHER COMPUTERS.

————————————————————————————————–

And oh Gosh! In order to activate the Mobile Broadband Internet connection, I must send an SMS to a certain operator number. So how coud I send SMS with the Mobile Broadband Modem?

Hopefully, there is gammu and its graphical interface wammu.

So first thing to do is : sudo apt-get nstall gammu wammu
Then create a configuration file for gammu : gedit .gammurc
and append the following (reference : http://wammu.eu/phones/huawei/4562/):
port = /dev/ttyUSB0
model=auto
connection = at115200
synchronizetime = yes
logfile = ~/gammu.log
logformat = textalldate
use_locking =
gammuloc =
name=e173s

Info: Make sure that the attached port is correct. You can use the command
dmesg|grep tty

Network Manager must be killed in order to liberate the port ttyUSB0:
sudo stop network-manager
then, start wammu:
gksudo wammu
Then, from the menu: PHONE -> Connect

wammu

wammu

Info: You can achieve a manual configuration through the Phone Wizard in WAMMU. But be sure before that Network-Manager is killed.

———————————————————————

What if you did not like SAKIS3G and want to use the Network Manager.

For now Ubuntu Packaged version of ModemManager 0.6.0.0 is buggy and is responsible for Huawei e173 connection failure.

All you need to do is replace this version by a former one. Get it from LAUNCHPAD, through this link (this amd64 package, if you have a 32bits system, replace amd64 by i368 in the link below):

http://launchpadlibrarian.net/98148167/modemmanager_0.5.2.0-0ubuntu2_amd64.deb

– Uninstall the current installed version (0.6):

sudo apt-get remove modemmanager

and install the downloaded version (0.5.2) by double cliking on the debian file.
Reboot. Plug your modem, wait for 30 seconds. Connect through the Network Manager applet. You’re done.
You will be later prompted to update modemmanager. Don’t, untill the bug is fixed.
To make sure you installed version 5.2, run this command:
dpkg -s modemmanager
 

Ubuntu 12.10 Quantal on Dell XPS 15 L502X

This Post discusses further information about installing Ubuntu 12.10 Quantal on a Dell XPS 15 L502X.

Following the former post “Ubuntu 12.04 Precise Pangolin on Dell XPS 15″, There is no need for redundancy, so we’d like to put only what might be different and mention some issues that come only with Quantal.

1- One can follow all information on the previous post that applies to 12.04. It also applies t 12.10 (Optimus Support by Bumblebee project, etc).

ISSUES

If you fresh-installed Ubuntu 12.10 ou just updated, you likely now have a sound issue.

AUDIO SOUND ISSUE

– When you open your user session, sound is enabled, but you hear nothing except sometimes, tiny power explosions that indicates, the internal speakers are powered. Besides, the sound is back only when you plug in your headphones. It’s a matter of plug/unplug and sound routing awareness.
You might experience this issue also after a wake-up from a suspend.

Fortunately you can work around it :

On TERMINAL type: alsamixer

an interface will be displayed showing volume bars. Check the last one if it’s enabled or not (AUTO MUTE MO). It should be disabled.

alsamixer

alsamixer

If enabled, disable it and exit.

Type again : sudo alsa force-reload

You’re done. SOund should be back to normal.

But what if the above does not work? Don’t panic, let’s try some more advanced commands:

Follow these commands one by one :


sudo add-apt-repository -y ppa:ubuntu-audio-dev/ppa
 sudo apt-get update
 sudo apt-get dist-upgrade

 sudo apt-get -y install linux-sound-base alsa-base alsa-utils libasound2

 sudo apt-get -y install gdm ubuntu-desktop linux-image-`uname -r`

 sudo apt-get -y --reinstall install libasound2 linux-sound-base alsa-base alsa-utils

 sudo apt-get -y --reinstall lightdm ubuntu-desktop linux-image-`uname -r`

 killall pulseaudio

 rm -r ~/.pulse*

 sudo usermod -aG `cat /etc/group | grep -e '^pulse:' -e '^audio:' -e '^pulse-access:' -e '^pulse-rt:' -e '^video:' | awk -F: '{print $1}' | tr '\n' ',' | sed 's:,$::g'` `whoami`

DISTORTED AUDIO SOUND

Some folks may encounter this issue: When playing audio files, sound gets distorted, chunky and creeky. You might not notice it untill you increase the volume of your speakers.
Even though they are JBL, sound might get distorted and ugly. It’s a software issue rather.

Solution 1:

On Terminal enter: gksudo gedit /etc/modprobe.d/alsa-base.conf
the alsa-base.conf will be opened in your Gedit text editor.
Then, add the following line to the content of the file:
options snd-hda-intel model=generic
At last, reboot.

Solution 2:

If you have VLC installed on your system, try playing your audio files in totem instead of VLC and see if the audio sound is still distorted. If not, then uninstalling VLC likely should fix the problem.
—————————————————————-

HDMI Video/Audio Support

Thanks to ‘Reverse Prime’, HDMI Support for Nouveau Driver is now partially supported. It’s promised that it gets full support by the release of 13.10.
See:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/904476
See also Bumblbee Github Issue tracker for more information.
—————————————————————

CONKY

conky on ubuntu

Conky on Ubuntu Quantal

1- First install conky
sudo apt-get install conky conky-all
2- Download the customized script: https://www.dropbox.com/s/6shmby2dm3ond2t/conky.tar.gz?dl=0
3- uncompress it and you should have a folder with the following content : two hidden folders (.conky & .lua) and a hidden file .conkyrc.
4- Copy these three files to your home directory.
5- then: killall conky && conky
6- open the DASH and type “startup“; this will open start up applications applet.
7- Add another entry for conky : conky -p 10
8- Now Conky should be launched on every login in (10 seconds of delay after user session is unlocked).
9- Optionally open the .conkyrc or lua scripts for more tweaking that suits your taste.

PS: Notice we modified slightly conkyrc script so that conky fits better in the xps 15 screen while you still have space for your desktop icons.
————————-BUGS ———————————————-
Intel GPU : https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1140716

—————-

We’ll continue soon, by adding other issues and tips.