Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
switching from ATI to nVidia
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Spanik
Veteran
Veteran


Joined: 12 Dec 2003
Posts: 1014
Location: Belgium

PostPosted: Fri Apr 28, 2006 8:18 pm    Post subject: switching from ATI to nVidia Reply with quote

Got myself another videocard and went with nVidia this time. Reason was that I have had so much problems getting OpenGL working (it still doesn't work) that I wanted to give the other side a go.

Tought this would be as simple as plugging in the card, running xorgconfig, changeing the xorg.conf files and get going. Not so...

The Xserver just shuts down, no way to get it running. Tried a few configs, but that doesn't help.

Looked through the kernel config, but could not find anything that was wrong.

So before I start re-compiling X, I tought I might ask here if there is something I overlooked.
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
rokstar83
Guru
Guru


Joined: 09 Apr 2005
Posts: 423
Location: MD

PostPosted: Fri Apr 28, 2006 8:36 pm    Post subject: Reply with quote

which nvidia card? the newer cards require you to use the nvidia-kernel package.

[code] emerge nvidia-kernel
modprobe nvidia[\code]

Look to gentoo wiki on nvidia for further instructions.
You will need to reemerge this package everytime you recompile your kernel
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Fri Apr 28, 2006 8:53 pm    Post subject: hello. Reply with quote

There certainly was something you missed!!! And happily, you will soon be X-ing away through your new nvidia card with no problems at all.

first of all, the complete help you need is at http://www.gentoo.org/doc/en/nvidia-guide.xml and that guide worked wonderfully for me every time I used it except for this very last time.

You see, there's some problems with the newest kernels (2.6.15+), possibly the newer X's (not sure, run Xorg 6.8 myself) and the nvidia drivers marked stable in portage. (fyi the same problem exists w/ ati, for comparison purposes I mention it). Luckily the problem is easy to solve.

I just did this about 24 hours ago, so hopefully I can help you out so that you don't have to go reading documentation. But if your running a 2.6.15 or 2.6.16, or if you have problems modprobe'ing nvidia, then make note of it and follow directions for that event below.

note, this is done as root.

0) prerequisites: X is installed, nvidia framebuffer support or AGP support not compiled into your kernel. You want nvidia's closed-source, hardware-accellerted drivers instead.

1) get the nvidia kernel module and GLX (opengl stuff) emerged
Code:
emerge nvidia-glx
or, if you have too new of software as mentioned above,
Code:
USE="~x86" emerge nvidia-glx
that will also emerge nvidia-driver as a dependancy.

2) set it up so that nvidia uses is the glx module or glx is the nvida module or something... all i know i did it iand it works ; )
Code:
 eselect opengl nvidia


3) let x autoconfigure itself (just the method I used, you could probably proceed with your current config if you wanted but I reccomend making sure your video card bus line is set.
Code:
X -configure

remember where it tells you the new configuration file is located!

4) Modify the x config as required
a) comment-out the line loading the 'dri' module at the top
b) change the graphics card driver from 'nv' to 'nvidia'
c) I use a usb mouse so I always need to change the mouse device from /dev/mouse to '/dev/input/mice' (the device common to all usb mice) I also reccomend setting the mouse Protocolto "IMPS/2" and adding the line
Quote:
Option "ZAxisMapping" "4 5"
so that your scroll-wheel works properly.

now fire up your X server and test out your new config with
Code:
X -config <path-to-that-file-you-edited>


if all goes well, move that to the default config
Code:

mv /etc/X11/xorg.conf /etc/X11/xorg.conf.replaced.`date`;
mv <path-to-that-config> /etc/X11/xorg.conf


you should be good to go. Hardware support and full GLX graphics accelleration from the good (albeit un-opensource-inclined) people at nvidia.



problems? either post here or read the howto. i'm a newbie too you know.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
Spanik
Veteran
Veteran


Joined: 12 Dec 2003
Posts: 1014
Location: Belgium

PostPosted: Sun Apr 30, 2006 2:05 pm    Post subject: Reply with quote

So I missed more than a little.

Going to give it a try. But I'll need a new kernel first since I compiled AGP in.

Thanks.
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
olger901
l33t
l33t


Joined: 17 Mar 2005
Posts: 625

PostPosted: Sun Apr 30, 2006 3:39 pm    Post subject: Reply with quote

Spanik wrote:
So I missed more than a little.

Going to give it a try. But I'll need a new kernel first since I compiled AGP in.

Thanks.


Extra tip: do NOT forget to remove your ati-drivers aswell or they ll give you lock-ups.
Back to top
View user's profile Send private message
Spanik
Veteran
Veteran


Joined: 12 Dec 2003
Posts: 1014
Location: Belgium

PostPosted: Sun Apr 30, 2006 3:48 pm    Post subject: Reply with quote

Don't worry, they never worked in the first place...

New kernel without AGP-gart and dri is ready.

Update: it works! Well, I have KDE running again on the new card. Had to try several time to get it running, seems to have nothing to do with the video, but with the mouse. Anyway, just the scroll doesn't work, but I'll copy that from the old xorg.conf.
thanks again.
_________________
Expert in non-working solutions
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Mon May 01, 2006 6:15 pm    Post subject: mouse scroll Reply with quote

you need protocol "ExplorerPS/2" or "IMPS/2"
also the line
Code:
Option "ZAxisMapping" "4 5"

if you have a 4-button mouse (not counting middle scroll button) use "5 6" instead (clear?)

post w/ problems

--------
good job getting it working and have fun videoing away.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum