Comment 17 for bug 594837

Revision history for this message
Brian (x-brian) wrote :

FYI I now have my machine working by applying Kamal's patch to the kernel along with another patch I needed for my Gobi 2000 WWAN adapter (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/554099). There's slightly more to getting the WWAN working than patching the kernel, but certain modules must be patched, so I had to apply two patches and build my own kernel in order to fix both problems. Here's what I did:

cd ~
wget http://launchpadlibrarian.net/46353288/usb-wwan-2.6.32.diff
wget http://launchpadlibrarian.net/51310711/0001-ACPI-Unconditionally-set-SCI_EN-on-resume.patch
sudo apt-get install fakeroot kernel-wedge build-essential makedumpfile kernel-package
sudo apt-get build-dep linux
sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r)
 # (I had kernel version 2.6.32-23-generic installed)
apt-get source linux-image-$(uname -r)
cd linux-2.6.32/
patch -p1 < ../usb-wwan-2.6.32.diff
patch -p1 < ../0001-ACPI-Unconditionally-set-SCI_EN-on-resume.patch
chmod a+x debian/scripts/*
chmod a+x debian/scripts/misc/*
debian/rules updateconfigs
fakeroot debian/rules clean
DEB_BUILD_OPTIONS=parallel=4 AUTOBUILD=1 NOEXTRAS=1 fakeroot debian/rules binary-generic
 # (I have 4 cores so I can compile with parallel=4)
cd ../
sudo dpkg -i linux-image-2.6.32-23-generic_2.6.32-23.37_amd64.deb
sudo dpkg -i linux-headers-2.6.32-23-generic_2.6.32-23.37_amd64.deb

Then I rebooted, my 2.6.32-23 kernel was replaced with the new one, and both things are working. I have had occasional troubles with reboots not working--it will just hang at the Ubuntu splash screen--but this predated my custom kernel. I have to hold the power button to turn off and then reboot again sometimes. Oh well, I hardly ever reboot anyway.

I didn't have to rebuild linux-restricted-modules and things seem to be working anyway, even though I have an NVidia graphics adapter. That might be because I made no config changes at all, just did the patches. The only new weird thing I've noticed so far is that my network-manager thinks I'm plugged in to ethernet even though I'm not. Hopefully wired ethernet will work!