I'm having this problem too.
MSI K7N2G-ILSR IGP based motherboard
512MB of samsung memory
30GB Maxtor harddrive
Latest emerge sync, latest emerge nvidia-kernel nvidia-glx
I edited the config file near abouts to the same I had it set on for my previous
celeron 600 machine running gentoo 1.4 with a nvidia GF2MX.
Every time I close out X, and sometimes when I exit links -g, the console goes all weird on me. I've tried stty sane (does that even work anymore?) then hitting ctrl-alt-del. It only responds to ctrl-alt-del sometimes, maybe 4 out of 5 times.
When they do exit, the screen is filled with colored small groups of text, background same as foreground, usually green from the get go, scattered about
the screen, in some form of low text mode... It looks like 80x25.
I'm thinking something's off on the resolution switching, and instead of returning to my 1024x768x32 fb console, it stops there.
If I hit enter enough times, the screen goes red (my box's name is in red on a root prompt) so I know I'm getting back to a console that still works.
Should I try fbset? What would the commandline be? I know this is probably a temporary fix at best.
Oh yeah, I'm running kernel 2.4.20-gentoo-r9 through grub.
I'm using the vesafb mode, and a vga= on my kernel line. I think it's like 791 or something, but it's the one in the gentoo docs for 1024x768x32bit. (or 24bit, whichever.
Also -- when I try to run X, it doesn't support my USB MS intellimouse explorer optical (5 button + wheel) and I don't know why.
Edit: Ok, I got it fixed. Real easy too.
Apparently, 4496 has some problems. Answer: Don't use it.
emerge 4496, kernel and glx.
Then go to nvidia's website and download the 4363 drivers.
Here's a direct link.
Get the .run file.
chmod +x NVIDIA-Linux-x86-1.0-4363.run
It'll tell you your kernel is not compatible with the prebuilds on their website. That's fine.
Accept the license agreement, and let the nvidia installer compile the kernel module, then install the GLX module.
At this point, you should be able to start and leave X freely.
BTW, this problem is covered in Gentoo's bug tracker, under ID #29336
Edit2: It looks like this problem is due to the gentoo kernel bootsplash patch.
Another fix is to shut it off using genkernel --config and deselecting it in the menuconfig that shows up. (unconfirmed)
See bash. See bash run. See bash run GCC. Run, GCC, Run!