AMD

This only covers HD5XXX series and higher. The r600-HD4xxx are on hold due to other portions of system incompatibility. This doesn't cover hybrid (i.e. intel-ati on many new laptops) as I don't have one to test on

Prepare

Lets prepare the system for a fresh install of the ati-drivers package and block the conflicting driver Radeon at boot. be sure to look at the first part of the line. $ is for user while # is for root!

Now use eselect to set the soft links(shortcuts) to the proper libraries and files.
eselect allows us to keep different libraries so we can switch without damaging the system by replacing important files.

Roll Back

If you're looking at this. We are either curious or ran into a snag.

Good News: everything is reversible!

Bad News: you're stuck in a terminal until its fixed!
But you knew that didn't you ;)

With your computer powered off, connect the computer to the internet via a cable and then press the power button.
When you reach the Grub selection screen press an arrow key to halt the timer and go to the kernel you would
like to boot from. Press 'e' on that line and it will take you to edit the grub commands before booting.
This is a temporary grub edit, it will revert after reboot!

Now reboot! Now you are back on the Open Source Drivers!
You will keep your upgraded kernel so that was not reverted. (reason for less steps)

SED

I'm sure you have noticed the sed command. This may make some people leary as not everyone understands this command. "sed" stands for "stream editor". It can edit the edit file for you by deleting lines, words, strings, etc. In this case we are using it to remove the Line we added in blacklist.conf and the command we added in grub.

If you don't feel fully comfortable about this command. Back up your file or use nano (vi etc.) to edit the file!

NVIDIA

simple procedure

If you have issues running X after an upgrade, you can follow this procedure:

let's update the package database

> equo update --force
...

let's check the current installed kernel

> uname -r
... (lookup the kernel version, you will need to pick the appropriate driver based on this)

let's list the list of nvidia drivers, in a concise way

> equo s nvidia-drivers -q -v
... (list of all nvidia-drivers, you need to pick one which matches the major x.y of your kernel version)

finally install the appropriate driver for your kernel

> equo install full name of driver you choosed from above list

It worked for updating the drivers appropriately for a thinkpad t61p, those instructions are expected to be better than outdated ones.

outdated

This page is out of date?, misleading and potentially dangerous to your system. Use equo to install the driver package you need (eg ati-drivers or nvidia-drivers) and kernel-switcher for future updates to your kernel.

Portage (emerge) is not the primary package manager for Sabayon, this article is for advanced users only. In other words if this fails for you, its your fault. You have been warned.

Edit etc/X11/xorg.conf and change the Driver option under Device from nv or vesa to nvidia, also ensure the the Load glx line is uncommented in the Module Section

In a root shell type eselect opengl set nvidia

Make sure your user is in the video group by typing gpasswd -a youruser video in a root shell.

Restart X

If X doesn't work please pastebin the contents of /var/log/Xorg.0.log and possibly /etc/X11/xorg.conf and check #Sabayon, the Sabayon Forums or gentoo-wiki.com, If it does, in root shell type glxinfo | grep direct, if this says Yes then continue to next step

Using Google or other means identify whether your card works best with XGL or AIGLX or neither.

Using accel-manager which will need to be emerged by typing (still in a root shell) emerge accel-manager, choose your preferred method XGL or AIGLX. Or if neither ignore this step.

Repeat Step 7

You should now have a working NVIDIA card with DRI and if you choose XGL or AIGLX. If you some reason you don't please use the resources in the Forum Usage & Resources Post in Sabayon Forums to remedy the problem.These resouces include http://gentoo-wiki.com/HOWTO_nVidia_Drivers. It would be beneficial if you repeat Step 8 as part of the troubleshooting process.

Firstly, attempt to discover the kernel revision your sabayon install is currently using, you can achieve this by opening an instance of a command line interface or Terminal emulator and type in this instruction into the terminal:

uname -a

You should see from the very beginning of the screen (far left of the screen, in the terminal box) your host name which will say: Linux, and the name you gave your PC, during the installation of sabayon. Next you will see the kernel version and then it's description... which should resemble something like this:

[3.2.0-sabayon #1 SMP]

Using this information, use either Sulfur (GUI) or equo (command line) installer and search for the correct revision that suits your graphics card and kernel version that we have just discovered. This case we will want to install the Nvidia 290.xx driver that matches the kernel which is 3.2.0-sabayon #1 SMP

Before we install, we want to make sure that there are no possible driver conflicts

For example: while I was learning this, the ATI fglrx (closed blob for ATI cards) driver was installed, along side nouveau(open sourced nvidia driver), plus the eselect program was pointed to the ATI driver, which did not help matters much...

You can detect if they are installed or not by typing in a root terminal by typing either "su root" (without quotes) followed by your username and pass or "sudo equo" (without quotes) search ATI and repeat the process for nouveau.

Once you found the correct version and type of graphic drivers you will ether need to right click on the driver package in Sulfur, then select install or alternatively type in "equo install nvidia-drivers-295.20#3.2.0-sabayon" (without quotes)

This will download, install and compile the modules into the kernel, but you will have to setup the last two bits yourself.

Follow these last two steps to complete the process:
Not doing these can cause your system to freeze, lock up and have a blank screen if not completed properly, if you choose to run a game or use your card's accelerated features!

In a root terminal type:

eselect opengl set nvidia

Make sure your user is in the video group by typing "gpasswd -a <username> video" (without quotes, replace <username> with your username e.g. gpassword -a mike video) in a terminal as root.