One of my machines is a Lenovo T420s running on Sabayon Linux in a dual monitor setup with discrete graphics set up in the BIOS. The latest
sabayon-weekly update (installed on 22.10.2014) shipped the
nvidia-drivers-340.46, afterwards the graphics setup was messed up: The second monitor was not recognized anymore while Xorg continued to handle the desktop as usual, i.e. expanded over two displays. Even after a reboot with detached monitor I just saw a background pattern on my integrated display where I should have a login box.
I tried a couple of approaches to fix this behaviour:
Tried to downgrade the drivers to the previously installed version 340.32 by masking
nvidia-userspace-340.46. I could not go back to that version with Entropy, instead it installed 304.123. That version broke my Xorg completely with lots of slow flickering indicating a couple of tries to initialize the graphics adapter, eventually leading to a crashed Xorg startup.
/etc/X11/xorg.confwith previously working configurations and tried tips from various forums.
I noticed that in
xrandr the second monitor was detected as attached. I was just not able to configure it at all using
nvidia-settings. That one was quite persistent in just offering me two display labeled with some Lenovo name.
Eventually I decided to get rid of the proprietary Nvidia drivers and give Nouveau another try. I had tried Nouveau a couple of years ago and at that time I had trouble to get it up and running. Nouveau has since evolved and I was able to restore my graphics setup to a working state:
$ sudo equo install nouveau
Checked available OpenGL implementations:
$ sudo eselect opengl list Available OpenGL implementations:  nvidia *  xorg-x11
Set the OpenGL implementation to
$ sudo eselect opengl set 2
Commented out the blacklisted
/etc/X11/xorg.conftemporarily to have a fresh Xorg startup.
Uninstalled Nvidia drivers:
$ sudo equo remove nvidia-drivers nvida-userspace nvidia-settings
These steps solved my issues.
One note: Step (4) is critical. I did not check the blacklisting and was wondering why Xorg was only using 1024x768 and the control center display settings in Gnome were just showing an "unknown monitor". Sabayon seems to blacklist
nouveau by default.