• On TV.com: TOP 10 Shows CANCELED Too Soon
August 20, 2008 8:12 PM PDT

Ubuntu on the Thinkpad X300: Impressions and installation tips

by Dave Rosenberg
  • Font size
  • Print
  • 9 comments

Ubuntu on Thinkpad

Ubuntu on Thinkpad

(Credit: Ubuntu)

In light of my chronic Mac problems, I decided that I would take a shot at Ubuntu running on a Thinkpad X300.

I'm a power business user who has enough technical background to use the command line and utilities, so Ubuntu didn't scare me. However, there were a few quirks that I ran into. For example I had to reinstall Pidgin three times, and it seems to get corrupted on a whim. I also had a day where Firefox would crash every few minutes. These are not things the average user can deal with gracefully.

The positive side of those experiences was the Synaptic package manager worked flawlessly to reinstall the applications that were acting weird. I also was able to get Adobe AIR and Twhirl running with no problems.

I was able to run Microsoft Office with no problem via CrossOver, and it loads faster than on Windows or the Mac by a shocking margin.

I did however run into one major application issue. No Photoshop. Admittedly, I don't use Photoshop all the time, but I needed to yesterday and the Gimp just wasn't happening for me. If one more person tries to tell me that Gimp is just as good as Photoshop, I will physically attack them.

Note: Kevin, my intrepid IT guy wrote most of this up for me. If it says "I" it probably actually means "we" or "us" or probably just Kevin himself while I sat around eating bonbons. Also, we reconstructed the shell commands as best we could remember. Apologies if we got it wrong and you end in some kind of wormhole. There were also a number of other Ubuntu sites that we pulled information from. The Ubuntu community is utterly amazing at pulling together information and helping users solve problems.

Pre-installed OS
Pre-installed copies of both Windows XP and Windows Vista are so gummed up with extraneous software and utilities that the purist has the immediate urge to format the hard drive.

Application performance inside of Windows was fantastic, due in large part to the solid-state hard drive. Additionally the add/remove function is at least four times faster than any other Windows machine I've had the pleasure to work on be it a laptop, desktop, or server.

Upgrades
I upgraded the machine to 4GB of RAM. I also purchased the six-cell battery and the supplemental battery that can optionally replace the DVD.

Out of the box
I installed Hardy Heron (Ubuntu 8.04) off of the alternate install CD after having a small problem booting from the Live CD (apparently the 'nosplash' option will alleviate the blank screen I was getting, but I did not test this.).

The install was uneventful, and I was up and running inside of X Windows (I chose to use Gnome) well within an hour of booting the CD.

Network
Ethernet and wireless worked right out of the box!

DVD
The DVD player reads and writes data right out of the box. Commercial DVD playback is another story altogether. First, I installed the regionset package to set the region on the DVD player. Next, I installed the totem-xine package as the gstreamer version that comes preinstalled was not working properly. Finally, I went to the Medibuntu site, enabled its repository and followed the instructions for playing encrypted DVDs.

Battery
I attempted to hotswap the DVD for the secondary battery and Gnome-power-manager did not recognize it. However, following a reboot, it properly found both batteries. Unfortunately, the batteries are drained in a serial fashion (same behavior in Windows). Also, I allowed the machine to completely run out of juice, and I noticed that it did not properly hibernate the machine. See Suspend/Hibernate for the fix.

Sound
I removed the old ALSA sound modules, installed the build-essential package, and compiled the latest ALSA snapshot, and rebooted to some of the loudest sounds I've ever heard from a built-in laptop speakers.

Suspend/Hibernate
I first edited /et/cpm/config.d/local and added the line SUSPEND_MODULES="e1000" so that suspend knows to shutdown the network first. Next, I edited /etc/default/acpi-support and enabled Laptop Mode. Finally, I edited /etc/laptop-mode-tools and set Minimum Battery Charge Percent to 1, Enable Auto Hibernation to 1, Hibernate Command to /etc/acpi/hibernate.sh, Auto Hibernation Battery Charge Percent to 3. Following a reboot, the critically low battery event properly triggered the hibernate script.

Touchpad / Trackpad
I dislike the Trackpad, so I went into the BIOS and disabled it. I then added some additional content to the mouse input device section in /etc/X11/xorg.conf -

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"              "/dev/input/mice"
        Option          "Protocol"            "ExplorerPS/2"
        Option          "Emulate3Buttons"     "on"
        Option          "Emulate3TimeOut"     "50"
        Option          "EmulateWheel"        "on"
        Option          "EmulateWheelTimeOut" "200"
        Option          "EmulateWheelButton"  "2"
        Option          "YAxisMapping"        "4 5"
        Option          "XAxisMapping"        "6 7"
        Option          "ZAxisMapping"        "4 5"
EndSection

Fan
The fan is a bit noisy under Ubuntu, so I created a few scripts to manually set the speed to the minimum, the maximum, and auto. The script just calls this master script with 3 different variables -

#!/bin/sh                           
#
# Control fan on a ThinkPad.
#
# Be sure to add the following to /etc/modprobe.d/options:
#
#    options thinkpad_acpi fan_control=1
#
# and reboot, before using this script.

usage() {
  echo "$0  ( is 0-7, auto, disengaged, full-speed)"
  exit
}

if [ -z "$1" ]; then
  usage
  exit

sudo sh -c "echo level $1 > /proc/acpi/ibm/fan"

Bluetooth
I'm not using Bluetooth at the moment, so I created a script to toggle Bluetooth on and off in an effort to preserve battery life -

#!/bin/sh
# Enable/disable builtin Bluetooth on IBM Thinkpads

if grep -q enabled /proc/acpi/ibm/bluetooth; then
echo disable > /proc/acpi/ibm/bluetooth
else
echo enable > /proc/acpi/ibm/bluetooth
fi

Power Management
First, I installed the powertop package, ran it as root, and followed its suggestions for improving power management. Powertop is a nifty tool that analyzes your power consumption and recommends tweaks based on the most active processes.

Office
OpenOffice has come a long way and I believe it is a suitable replacement for the bloatware of Microsoft's Office solution. However, for 100 percent compatibility, I decided to take CrossOver Office + Office 2007 for a spin. I can report that the installation went smoothly and the applications have been solid as a rock. Word and Excel launch in 2 seconds, which is faster than they launch on just about any other machine I've worked with. Truly amazing performance!

Joystick
My USB Sidewinder gamepad worked flawlessly with SDLMAME after installing and running the joystick calibration package.

Virtualization
After turning on Virtualization for the CPU in the BIOS, I installed the kvm and qemu packages. Using qemu-img, I created a virtual image for WinXP and installed XP using kvm. The performance is decent and I can now run Windows apps inside this VM in a pinch or use it to test our Web sites with the various versions of Internet Explorer. With the sound flags turned on, I can even use the Rhapsody thick-client inside of XP to listen to tunes.

Skype
The Webcam in Skype worked right out of the box. Sweet! The only thing I struggled with was getting the microphone working. Eventually, I worked out that the Capture device needs to be enabled in the Recording tab and Internal mic enabled and selected on the Switches tab.

Firefox / Flash
Flash is not installed by default, but installation was trivial and worked immediately. This is in sharp contrast to the effort I've had to put into getting Flash working inside a browser on older Linux distributions.

Shout-outs
http://koo.fi/tech/2008/06/05/lenovo-thinkpad-x300-ubuntu-804-installation-notes/
Stephen O'Grady

Dave Rosenberg dishes up "Software, Interrupted" with nearly 15 years of technology and marketing experience that spans from Bell Labs to multiple start-up IPOs to open-source enterprise software companies. He is co-founder of MuleSource and currently serves as the general manager of Hardy Way. He is a member of the CNET Blog Network and is not an employee of CNET. Disclosure. You can contact Dave via e-mail at softwareinterrupted@gmail.com or follow him on Twitter @daveofdoom.
Recent posts from Software, Interrupted
Trend watch 2010: Mobile movies
Survey: IT spending to recover in 2010
Nintendo launches paid video content for Wii
Analyst: Money transfer soon to be No. 1 phone app
Apple's App Store review irking developers
Moving to the virtual layer (and taking advantage of the cloud)
Why Windows Mobile and Palm will continue to fail
Is Ohai the next big thing in social games?
Add a Comment (Log in or register) (9 Comments)
  • prev
  • 1
  • next
by dragonbite August 21, 2008 8:01 AM PDT
Why does everybody have to point out Flash is not installed by default? I've had to install Flash myself whenever I've had to reinstall Windows. It makes it sound like Linux is coming up short where it is coming up right where it does with Windows in the same situation.
Reply to this comment
by DeathsOverture August 21, 2008 9:23 AM PDT
Seriously! The out-of-box experience that most modern GNU/Linux distributions provides is unrivaled by any operating system that Microsoft has released.
by cousintroy August 21, 2008 9:18 AM PDT
I agree with your statement about GIMP. I just cannot get into it and installed VirtualBox on my Ubuntu installation just so I could have an XP virtual box running with Photoshop.
Reply to this comment
by zelrik August 21, 2008 9:41 AM PDT
Photoshop CS2 should just work with the help of Wine. I tried to install the trial version (I dont have the license :/ ) and it just works on my ubuntu 8.04.

If you try CS3 you might encounter many problems or it will just not work.
Reply to this comment
by zelrik August 21, 2008 9:43 AM PDT
Oh I forgot to mention that the crashes you experienced in Firefox could be related to flash....

Flash isnt working that well on Linux at the moment...I hope it will work better soon.
Reply to this comment
by linuxisamazing August 22, 2008 6:55 PM PDT
I don't know what you people are talking about with the flash problems on Ubuntu.
It's easy to install and works perfectly fine on my machine, Firefox has never crashed on me.
I put Ubuntu on my laptop about a week ago because my laptop caught "the flu," as I like to call it, for about the millionth time. So I completely wiped my hard drive clean and installed Ubuntu 8.04 via the Live CD download. Everything about Ubuntu is user friendly, if you don't know how to use the command line, it's not worth fretting about, all you need to do is search your problem in google, and most likely you'll find support for you problem where all you'll have to do is copy and paste codes into the command line. Installing applications is as easy as searching for them in the package manager, clicking a checkbox and then clicking the apply button. I should also remind everyone that with Ubuntu when it shows that updates are available it doesn't only update the operating system, but all of the applications you have installed as well, something Windows to this date has never done.
Reply to this comment
by Ed Detlie September 9, 2008 9:43 AM PDT
Have you tried GimpShop, which is a variation of GIMP with an interface more like PhotoShop?
Reply to this comment
by gboswellsac November 16, 2008 6:02 AM PST
Since you came from a Macbook etc. did you ever get the suspend/hibernate to work as it does on the MAC, ie. close the lid, hibernate, open lid running again. I've not been able to get this working and also find if I script a hibernate the power usage is much higher (like 5 times) what I experience on a MACbook. Not every one needs this but I appreciate it so much my Linux box is becoming a secondary notebook.
Reply to this comment
by LawrenceLuo July 1, 2009 12:25 AM PDT
The Thinkpad x300 laptop is rather a good laptop. i have bought this laptop for a month. But the capacity of battery is absolutely not large enough for me both in the work and life. and right now i am looking for a x300 battery replacement since the original thinkpad x300 battery is too dear for me. BTW i have seached from the google and found the following websites: http://www.hunt360.net/ibm-thinkpad-x300-series-battery.htm
It seems to be attractive both at the quality and the price. Anyone gives me some suggestion?
Thanks sincerely
Reply to this comment
(9 Comments)
  • prev
  • 1
  • next
advertisement

S.F. hacker space: Heaven for the DIY set?

The Noisebridge hacker space offers sewing and Mandarin classes, soldering workshops, Internet-controlled front door access, and a server room with no door.
• Photos: Circuits, code, community

The browser battles go on and on

roundup From Firefox to IE and from Chrome to Opera and Safari, there's no sitting still for browser makers looking to keep their products fresh and competitive.

advertisement

About Software, Interrupted

In "Software, Interrupted," Dave Rosenberg discusses disruption in the software market, as well as the products and services that keep business technology norms in perpetual flux.

With nearly 15 years of technology and marketing experience spanning from Bell Labs to multiple start-up IPOs, Dave co-founded open-source software company MuleSource and now serves as general manager of Hardy Way. He also happens to be a U.S. patent holder and a workaholic. Technology is his best friend and mortal enemy.

Add this feed to your online news reader

Software, Interrupted topics

advertisement
advertisement

Inside CNET News

Scroll Left Scroll Right