Archive for June, 2010

2010-06-14

Living with Lucid: Ubuntu Netbook Edition on a ThinkPad X40

I quite like Ubuntu 10.04, I really do.  However, I seem to also like hardware that doesn’t work well with Lucid by default.  I am optimistic that the situation will improve with 10.04.1 and later, but here again is a workaround for a graphics regression with 10.04.

This time I’m looking to make my lovely ThinkPad X40 behave like a good netbook.

The trick is that the X40 has an Intel 855 graphics adapter.  This worked a treat in 8.04 and earlier, but as with my HP 2710p, Intel isn’t so careful with compatibility of old hardware with their  newest drivers.  I have to say, this is an ugly trend that seems to be repeating itself often these days.  10.04 also doesn’t play well with my ThinkPad T60 and its ATI x1300 graphics card.  Like Intel, AMD has apparently given up on their “older” graphics cards.  But I digress.

While my X40 doesn’t work well with Ubuntu’s 3D netbook launcher, it does work exceedingly well with the convenient netbook-launcher-efl that Ubuntu also provides.  So, following these instructions, I seem to finally have a stable, netbook interface for my IBM ThinkPad X40.  Everything is at peace for now.

The only thing I would add is that the go-home-applet launches netbook-launcher rather than netbook-launcher-efl.  This is yet another known bug that seems to be languishing with no long-term solution in sight.  The good news on this is that there are two simple workarounds:

  • Replace the go-home-applet with the show-desktop applet (effective but not as pretty)
  • Replace the netbook-launcher executable with a link to netbook-launcher-efl.

I opted for the latter, as I honestly prefer Canonical’s netbook-launcher-efl to the default netbook-launcher.  If I can avoid using costly OpenGL, why not?  It saves battery life.

2010-06-08

Living with Lucid: 8.04 to 10.04 migration problems: Flash strikes again

I have now begun upgrading my 100+ installations of Ubuntu 8.04 to 10.04 at work.  It should come as no big surprise that the first problem worth mentioning is Flash.

In particular, the flashplugin-nonfree package from 8.04 to 10.04 can leave apt in an unpleasant state.  The solution, found here, is to run the following:

sudo rm /var/lib/dpkg/info/flashplugin-nonfree.prerm
sudo dpkg --remove --force-remove-reinstreq flashplugin-nonfree
sudo dpkg --purge --force-remove-reinstreq flashplugin-nonfree

I ran this after seeing errors on upgrade like the following:

Preconfiguring packages …
dpkg: error processing flashplugin-nonfree (–remove):
Package is in a very bad inconsistent state – you should
reinstall it before attempting a removal.
Errors were encountered while processing:
flashplugin-nonfree
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried the usuals: apt-get remove, apt-get remove –purge apt-get install flashplugin-nonfree –reinstall, dpkg -r –force-all flashplugin-nonfree, none worked.  Thankfully, the above worked a treat.