You are here

laptop

Buying a laptop cover without the laptop present

It's like a wonderful logic puzzle, solved by expanded plastic foam!

I need a laptop cover for my laptop. One of those close-fitting sleeves. The only problem is, my laptop's a weird shape: not only does it have a 16:9 aspect ratio, but it also has an extra-large battery sticking out at the back.

That's not the only problem; the other problem is that when I go shopping for a sleeve this weekend I don't want to have to carry my laptop around with me. So either I guess at the right dimensions, or I make sure I buy big.

... Or... I take the expanded plastic spacer that came with my wife's laptop sleeve, and cut it to size! The bits that I cut off, I can glue on the top to increase the depth (it's a chunky Dell beast, you see.) and if I arrange the bits really carefully, like this:

Magical DIY laptop spacer-cum-laptray

... then the resulting assemblage of plastic foam can be carried with minimum heaving around Oxford city centre looking at laptop bags; but afterwards it can also double as a makeshift laptop tray, for use when sitting on the sofa or in bed! The space underneath means the fans should be kept fairly clear, to do their whooshing thing when they need to.

I've looked at a few laptop trays and none of them seem amazing: I could really do with that clearance underneath. But to do that properly, you have to have a tray that's built especially for the footprint of your laptop. Well, now I have that.

What I need next is a sleeve.

Installing Ubuntu Oneiric Ocelot on a new Dell Latitude E5420

In summary: it mostly works, and it could be a lot worse.

My old Dell Precision died a few weeks ago. The graphics card seemed to die suddenly and without warning: the monitor screen is now merely backlit black; and plugging a second monitor on yields the sort of blinking gibberish you used to get when you reset a ZX Spectrum.

Despite their mediocre environmental record, Dell were my choice of replacement as they're one of the best of a bad bunch. They're rather cagey about Ubuntu support - and no longer sell preinstalls in the UK from what I can see - but we had recently bought a Latitude E5420 for the office and successfully installed Ubuntu Oneiric on it, I think. So this was a known quantity: even though it was tempting to buy a Macbook Pro and install Ubuntu on it, the installation guide was sufficiently problematic at the time of purchase for it to put me off (especially the possible temperature sensor problems.) I just wanted something that would work.

After my Latitude E5420 was delivered, I began an installation of Ubuntu Oneiric Ocelot on it. This was initially hampered by a badly burned Live CDROM: honestly, why are we still using these dreadful plastic things these days? Yet while you can jump through hoops to build "Live USB sticks", the default remains yet another Ubuntu bird-scarer. Eventually, though, it was installed and running fine:

 

  • GOOD: Wifi and Bluetooth both work out of the box.
  • GOOD: Sound and video are great, including second monitor support.
  • OK: Power management isn't brilliant, but powertop really helped configure the system.
  • POOR: The built-in webcam keeps resetting to pitch-black defaults, especially when used with Skype. Not clear why.
  • BAD: With an encrypted home directory, the machine will not recover properly froom hibernation.

 

My initial impression of the much-maligned Unity was that it was simply a different way of doing things from Gnome: more like OSX plus Quicksilver than Gnome's kind-of souped-up WinXP. However, as I tried to use it further, I kept coming up against quite nasty software failures. The CompizConfig Settings Manager (you're meant to know what ccsm stands for, by the way) frequently crashes when I turn certain plugins on and off; and Unity's about:config causes my entire display to hang under a still-moveable mouse, which ironically happened while I was writing this blogpost.

For some time Unity also flatly refused to start properly (launcher and menu bar would never appear) and I had to make do with Unity 2D. Eventually, with no intervention on my part, it just started working again. Who knows what was going on? And what fixed it? There are a few things I have been able to fix, though, with varying levels of success:

  • The launcher icons, too big on a 14" display, can be resized with ccsm using experimental features. This setting is unfortunately ignored when you fall back to Unity 2D.
  • Third-mouse-button emulation doesn't work out of the box, but it's quick to fix with a legacy Gnome program. However, the fix doesn't always appear to manifest itself in Unity itself. So not much of a success story, then.
  • After using a second monitor, my display suddenly behaved very odd indeed: there was a two or three second delay between moving my mouse or pressing a key, and having it appear on the screen. At the same time, my system would run "hot", with kworker processes taking up at least a couple of CPU threads almost full time. A lot of hunting around  led to me adding the following line in /etc/modprobe.d/local.conf:

options drm_kms_helper poll=N

In fact, if you google for that kernel module (drm_kms_helper) you essentially get a long list of people complaining about its effect on system load, plus a rather swamped explanatory page that it's something to do with being able to set display parameters in kernel space rather than user space.

Generally speaking, I'm happy with my machine and broadly happy with Unity: I think some of the criticisms of it are misplaced. Certainly in the whole of this long rant by esr, there's only one objectively valid point, that binary config files have no place in a Linux distribution. The rest can just be considered a write up of a single round of user-testing: informative as far as it goes, but in no way definitive.

I would say, though, that I don't "trust my weight" to this machine the way I've done with previous ones. Unity is still not what one would call full-release code: while not alpha, it's certainly not much beyond beta; about:config should never crash your display, ever, and other glitches make it possible to entirely lose your work, unless you're in a Google doc or at the command line.

While I'm not yet planning to jump ship to Linux Mint, I'm certainly hoping that April 2012's Precise Pangolin, as an LTS release, will fix a number of these quite serious stability issues. Graphical stability over graphical fanciness every day; and with that in mind I'd advise anyone who wants their machine to be ridiculously stable, yet still with a Debian-based and graphically pleasant OS, to stick with the previous LTS, Lucid Lynx.

Blog category: 

Hardy Heron and the Dell Precision M4300

Summary: it just works.

In brief: the problems discussed here and here go away under the most recent Ubuntu release, Hardy Heron, which I can generally recommend.

Alsa seems stable and graphics support is present from installation onwards. Enabling fancier 3D compiz effects requires the nvidia-glx-new package; compiz spots this, however and prompts for installation. All very smooth. Wireless works; my VoIP headset works; but I haven't yet tested Bluetooth.

The only problem was in upgrading from Gutsy: my previous peregrinations had rendered my hybrid distribution shafted and incapable of upgrade. This isn't a problem, though, if one has installed the /home directory (and in my case the /music one too) on a separate partition: the Ubuntu Live CD will blat the root partition with Heron, but leave the other partitions alone if you so require. Don't resize any of your partitions during installation, though, or you'll lose everything. Everything!

The full sensory experience of Linux on a Dell M4300: sound, vision and tinfoil-hat microwaves

Gutsy Gibbon on a Dell: almost everything has been fixed (edit: see Hardy Heron for absolutely everything being fixed).

Now that Gutsy Gibbon is fairly mature, I’ve managed to upgrade my machine to it and am now running the 2.6.22-14-386 kernel. More importantly, with a minimum of fuss I now have video, wireless and sound!

Long-term readers of Graceful Exits might remember that the too-new hardware in my Dell Precision M4300 needed some rather nasty hacks just to get both display and wireless card working. One of those left me with a weird hybrid Gutsy/Feisty installation of Ubuntu, which worked for a while. I could get both video and wifi (by compiling both myself) as far as the 2.6.22-9 kernel, but no further. I needed to upgrade fully to Gutsy.

From hybrid to Gutsy Ubuntu

Upgrading from the hybrid version required me first to comment out the two Gutsy repositories I’d sneaked into my /etc/apt/sources.list. Then gksudo update-manager -c presented me with the necessary upgrade button. An hour or so later all the packages had been downloaded, but it took a whole day to have to keep going back and clicking on “OK to replace this configuration file” popups in between sleeping, showering and going to work. There must be a better way for Ubuntu to do that during mass package installations such as an upgrade.

What worked and what didn’t

When it comes to display drivers, Gutsy is very forgiving. My nVidia drivers didn’t work straight away, but the machine realised this and presented me with a low-res VESA mode, which in turn led to a low-graphics mode that was still more than adequate for the mean time. When Gnome finally finished starting, I noticed with joy that wireless works in Gutsy out of the box. I didn’t need to download the iwlwifi package and compile it. Lovely.

If I were going to nVidia, I wouldn’t start from here

Envy is an easy way to install the right nVidia drivers for your machine. However, if you’ve already tried to install the drivers using nVidia’s own packages (as I had, back when I had a hybrid system), you need to find and delete these files. modprobe -l nvidia will tell you where they are: run envy -t and uninstall everything, then delete whatever’s remaining in, oh, something like /lib/modules/2.6.22-14-386/kernel/drivers/video/nvidia.ko. Then reinstall the drivers with Envy. That should be enough.

Alsa is a known problem, to put it mildly

A comment on Ubuntu bug 131133 describes the Alsa codebase as “mercurial”. Apparently the snd_hda_intel support is fixed and broken on alternate releases, and Ubuntu High Command are doing all they can. In the interim there’s a workaround: method A worked just fine for me.

I’m terribly, terribly happy. K’s even happier, as now she’ll be able to prise me away from frequent driver recompilation messes.

Blog category: 

Laptop and Linux: the fixes for a Dell Precision M4300

Getting a Dell Precision M4300 to work with a weird Feisty/Gutsy hybrid Ubuntu (edit: upgrading to Hardy Heron eventually fixed everything).

The Ubuntu Live CD worked straight away for the laptop: I was able to boot into a temporary copy of Linux using the VESA display drivers, and test sound, CD and other peripherals (obviously) and wired networking. However, optimising the system wasn’t so easy, and as I say Nick practically installed Ubuntu for me, fixing all that he could.

Below is a list of the main fixes and workarounds that Nick employed, for my reference as much as anything else.

Kernel

Gusty Gibbon kernel, headers etc. on a Feisty Fawn installation, mixed with apt-pinning; necessary to get the wireless to work.

Wireless

Bleeding-edge Intel wireless drivers were needed for the IPW 4965 chipset (they in turn need most recent kernel). Download the following:

  • mac80211 8.x driver
  • ipw4965 latest driver source
  • ipw4965 latest firmware

The 4695 is a firmware-less card, so you need a copy of the firmware in /lib/firmware/: it gets automagically flashed to the card on boot.

Then, the nastier bit,

  • install Gutsy kernel headers
  • patch kernel headers for mac80211
  • build ipw4965 module

Three lines, detailing so much pain. At least the kernel itself didn’t need recompiling.

Sound

Although ALSA is configured correctly, there’s some bug in the handling of this version of the 82801H chipset. I’m looking into it: there’s nothing more embarrassing than making your users choose between good networking and audio playback…!

Display

The most recent version of the linux-restricted-modules for Gutsy now makes this fix redundant, but initially we needed a bleeding-edge 100.14.09 version of the NVidia drivers to get the display working properly.

The hack to install that was originally accomplished by downloading a non-standard installer and crossing one’s fingers; it worked pretty well but the restricted modules kept trying to do their bit and had to be removed. If you’re sure you have a compatible, hacked-in NVidia module on your system but the restricted version keeps butting in, then sudo modprobe -r nvidia and then restarting X works: Xorg looks in the right place, whereas the kernel gets it wrong.

Edit (2.6.22-10): doesn’t seem to support 100.14.09, so back to the NVidia downloads again.

CDROM

There seems to be a recurring bug with the Linux kernel and SATA CDROM drives, frequently whacked but never fully squashed, that the Gutsy kernel has fallen prey to: my CD drive was not at /dev/scd0 by default. Running sudo lshw produced no details under “*-cdrom” There are a lot of solutions out there, but the one that seemed to work for me was to load the ide_cd module using modprobe.

This does seem to have put my CDROM at /dev/hda, which took a bit of finding, but at least as soon as I ran modprobe Sound Juicer spotted the audio CD in the drive. I’ve not yet tested CD writing, nor DVD writing, so I don’t know yet whether or not I actually need ide_scsi instead; Nick assures me that as most devices support ATAPI these days then the SCSI support shouldn’t be necessary.

Bluetooth

The Precision seems to have an internal USB bluetooth dongle! hcitool finds it with no trouble. I’ve not used it yet and might need to add hci_usb to /etc/modules.

Firewire/1394

As I don’t have any Firewire devices, I still have to have a poke around for this; might need the firewire host controller driver, or sbp2 (SCSI over firewire). Watch this space.

Blog category: 
Subscribe to RSS - laptop