Ubuntu 10.10 GDM, Nvidia and TPM Issue

I recently did a clean install of Ubuntu 10.10 64 bit on my Vaio SZ7, using the standard driver module for X everything worked fine. GDM (Gnome’s graphic login), Plymouth (the red dots progress boot screen) and X were all working well.

I wanted to install the Nvidia accelerated driver for the effects in X and also to help with video performace. I used Ubuntu’s installer to add in the propriatory driver it recommended and rebooted. This is where the problems began. I started to notice a TPM send error on the console right at the end of the boot (usually on tty1 right after the login prompt) and then GDM wouldnt appear, leaving me with just the the text console.

I tried different versions of the driver, including from Nvidia’s site, I tried the fixplymouth script (which fixed plymouth but didnt solve my GDM issue) I even tried removing various packages and drivers as suggested on various Nvidia and ubuntu forums, ie nouveau and the nv modules. I also tried removing GDM and reinstalling it. GDM2 wasnt an option as the repository gave me 404’s when i tried to update apt.

However, during my googleing, I had left the laptop to boot. It got to the usual place, and I just left it there while reading. Then something caught my eye, the flash of the Nvidia logo, and then X and GDM started. Long story short, GDM starts up, but it takes 2 minutes from when the text console appears. From reading various configs in /etc/init/ I found out GDM waits for other things, ie drivers to load up first… This got me thinking and also that TPM error was annoying me. I knew TPM was disabled in the BIOS so I had been ignoring it.

I decided to try killing the TPM error. I did a lsmod to see what was loaded, and then did an rmmod on anything with TPM in the name. The moment the last one was killed, the Nvidia logo popuped up and I was in GDM.

I went back to the console, edited /etc/modprobe.d/blacklist.conf and added the following lines on the end of the file:

blacklist tpm_infineon
blacklist tpm_tis
blacklist tpm

Saved the file and rebooted. GDM came up right after plymouth.

Obviously, I don’t suggest you use this method if you actually use TPM and have it enabled in your BIOS etc, but as I don’t use it I had no problem killing it.