Lenovo Thinkpad W530

The Lenovo Thinkpad W530 and its associated hardware components can be difficult to configure properly in Gentoo. This article is a configuration guide to help you work out some of the details in order to get your notebook working as it should be. Do not expect to have exactly the same hardware listed in this guide in your W530. The hardware listed here is to be used as an example. Some of the components might be similar, but there are always variants in computer manufacturing.

Important Software Tools
These tools will help you diagnose problems if you learn how to use them properly. They are included on SystemRescueCD, which is the distribution this author recommends when installing Gentoo. Be sure to emerge them on your system after the install is complete for future troubleshooting.

ufed

 * A simple program designed to help you configure the systems USE flags to your liking. Start the program from the terminal by typing the  command. Search for the use flag desired by pressing   once and then typing the flag's name. Close the program by pressing   on the keyboard.

pciutils

 * Includes important command line tools for identifying hardware such as.

gentookit

 * Includes other command line tools for identifying system hardware such as.

eix

 * A faster and better way to search for packages. Searching with  is very close compared to searching using the   command.

Caching Portage in tmpfs
If you are using an SSD or HHD and you have a lot of RAM (16GB would be more than enough) you can both expand the life of your drive and speed up build time by caching your Portage temp directory completely in RAM. Be sure to adjust to the amount of memory you want to allocate. The example below allows Portage to use maximum of 10GBs of RAM (tmpfs) during compiles. You can read more about caching Portage in tmpfs by reading this article.

After has been modified, Portage's temp directory will be mounted in RAM on every boot. To mount Portage temp directory now simply run this command:

Manual Configuration
In order to build your kernel properly use the  command to start configure your kernel:

After configuration run these commands in this order to build and install your system's kernel and modules:

Genkernel
You can also use the  tool to configure your kernel:

Intel Graphics
This xorg.conf can make the integrated Intel GPU work properly: