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.

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:

Kernel 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:

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