Ubuntu 8.10 and the Sony Ericsson MD300 modem

November 17, 2008

Since the 3G network is growing fast here in Brazil I decided to give it a try. My carrier offered me a Sony Ericsson MD300 modem as part of the service. Then I had the mission to make it work under Linux, in specific the Ubuntu 8.10 (my current distribution).

The MD300 modem is not officially supported but as I will show bellow, it is quite well compatbile with the Ubuntu 8.10. This USB device comes with 3 different operation modes. The defaul mode is the 1, which the device acts like a flash drive and of course we are not interested. Then we have to tell the Linux to switch to the mode 3 (serial modem) when the new device is plugged. To do so, we create an udev rule. It is quite easy.

Create a udev rule’s file (on the /etc/udev/rules.d) for the device

sudo gedit /etc/udev/rules.d/50-md300modem.rules

Then put the following content on the rule’s file:

ACTION!=”add”, GOTO=”3G_End”
BUS==”usb”, SYSFS{idProduct}==”d0cf”, SYSFS{idVendor}==”0fce”, NAME=”%k”,SYMLINK=”modem3G-%n”, PROGRAM=”/bin/sh -c ‘echo 3 > /sys/%p/device/bConfigurationValue'”

Be careful with the like breaks. The text above has only 3 lines.

After those steps, reboot your machine so the new rules can be applied and connect your modem at an USB port. Now it should be working and two devices must have appeader (/dev/ttyACM0 and /dev/ttyACM1)


e1000e driver is back on Intrepid

October 6, 2008

Since my last kernel update the driver e1000e was not blacklist anymore. I am not sure if it is the final solution. This is the bug fix solution (from kernel.org):

Set the hardware to ignore all write/erase cycles to the GbE region in the ICHx NVM. This feature can be disabled by the WriteProtectNVM module parameter (enabled by default) only after a hardware reset, but the machine must be power cycled before trying to enable writes.

Although the e1000e was unblacklisted I had to modprobe it again to work on my Ubuntu Intrepid. On a terminal:

sudo modprobe e1000e

Flash High CPU Usage on Intrepid: a better solution

September 27, 2008

There is a better alternative to solve the Flash High CPU usage on the Ubuntu Intrepid 8.10, using a possible official patch. This patch will generate a new .deb that can be installed and removed using the Debian’s Package Manager. To quickly install just follow the commands below on a Terminal (Applications -> Accessories -> Terminal).

sudo apt-get install build-essential fakeroot devscripts
cd /tmp
wget http://launchpadlibrarian.net/17178225/flashplugin-nonfree_10.0.1.218%2B10.0.0.569ubuntu1.debdiff
apt-get source flashplugin-nonfree
sudo apt-get build-dep flashplugin-nonfree
cd flashplugin-nonfree-
patch -p1 < ../flashplugin-nonfree_10.0.1.218+
debuild -uc -us
sudo dpkg -i ../flashplugin-nonfree_10.0.1.218+

This will generate a .deb and install it.

Update: patch was misspelled. Thanks Doug!

Flash 10 High CPU usage on Ubuntu 8.10 Intrepid

September 22, 2008

When I try to use the Flash 10 that comes in the repository I suffer from a very high CPU usage on websites that contain Flash animations.

A temporary solution while the version in the repository is not fixed is to use the Adobe’s version installed manually. To do so, follow the steps bellow:

  1. Go to http://labs.adobe.com/downloads/flashplayer10.html
  2. Download the Linux .tar.gz version
  3. Extract it to a temporary directory
  4. Execute the flashplayer-installer
  5. Answer the questions

Now the issues related to the high cpu usage shall disappear.

PS: The FlashBlock still doesn’t work

Multimedia Keys on Amarok

September 17, 2008

I always try to use Gnome applications, however sometimes KDE applications do not have good alternatives. Amarok is one of those applications, and to improve the integration on the Gnome enviroment there is an Amarok Script that enable the Multimedia Keys available on laptops and some desktop keyboards.

To install follow the steps below:

  • Download the Amarok Script here.
  • Inside Amarok, go to “Tools > Script Manager“.
  • Click on “Install Script” and select the downloaded file.
  • Then select the script and click on “Run”

Now you can control the Amarok playback using the multimedia keys on laptop.

Click using the Thinkpad’s TrackPoint on Linux

September 17, 2008

I do not like the TrackPoint on the my ThinkPad, however some of my friends do. Then, at least on Ubuntu 8.04, there is a little trick to make the Z-Axis works.

You can configure your TrackPoint settings at the following directory: ‘/sys/devices/platform/i8042/serio1/serio2’.

To activate the clicking feature just follow the steps below on a Terminal/Console:

sudo -s
cd /sys/devices/platform/i8042/serio1/serio2
echo -n 1 > press_to_select

That’s it.