So if you're on 3.0.0-10, here is how you can remove all the -dkms packages (except btusb-dkms). This isn't necessary and I don't want to add this to post-install.sh as I don't like it entirely. More importantly, you should only follow these steps if you're running Oneiric.
Anyway, if you want to put your install a bit closer back to "what it should be" AND you are on 3.0.0-10, then you can run:
Code:
sudo dpkg -r applesmc-dkms bcm5974-dkms
which removes two of the packages that my post-install.sh installed.
Removing hid-apple-dkms (and hid-dkms) is more interesting.
For some reason my hid-apple patch made it to the 3.0.0 source tree but its not in the binary. Honestly, I didn't even know this was possible and seems mildly disturbing. In any event, the following steps will get rid of two more of our custom dkms:
Code:
sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r)
apt-get source linux-image-$(uname -r)
cd linux-$(uname -r|cut -d- -f1)/drivers/hid
make -C /lib/modules/$(uname -r)/build M=$(pwd) hid-apple.ko
sudo make -C /lib/modules/$(uname -r)/build M=$(pwd) modules_install
sudo dpkg -r hid-apple-dkms hid-dkms
Its probably better to reboot for this one to take effect.
So to summarize: Following these steps keeps everything working as before, but puts us back on "stock" Ubuntu kernels, with the exception of i915 and btusb-dkms (which we should be using the non-dkms version which is newer). Obviously the re-make of above is "stock" but there was no editing to the file...
Update: Perhaps these disturbing out-of-sync issues (also the cp line in fix-i915.sh) are related to this message which I did not notice when I pulled the source before (in which I used apt-get):
Update 2: All new changes are in new-post-install.sh. This is for Oneiric only! If you are using Oneiric, then new-post-install.sh is much better to use than the original. Also, you can re-run new-post-install.sh everytime there is a kernel upgrade (in fact you MUST do this until i915 and btusb are fixed).
Update 3: The cp hack in fix-i915 and new-post-install.sh is now resolved. I was using the wrong path (obviously).
Bookmarks