I happen to have a laptop with 2 graphic cards as well, one on board intel and the other one a nvidia card.
A possible solution (one I use) is to run a script on booting up your computer that determines what card is active. Depending on the active card, you simply replace /etc/X11/xorg.conf with a working configuration file (for example xorg.conf.intel and xorg.conf.nvidia) for that card.
create the script:
Code:
gksudo gedit /etc/init.d/xorg_conf
put this text in it and save the file:
Code:
#!/bin/sh
#
# Set the appropriate xorg.conf and GL links for the speed/stamina video card switch
#
VIDEO=`/usr/bin/lspci |grep -c nVidia`
if [ "$VIDEO" = 1 ]; then
cp -f /etc/X11/xorg.conf.nvidia /etc/X11/xorg.conf
else
cp -f /etc/X11/xorg.conf.intel /etc/X11/xorg.conf
fi
Make the file executable and make sure it runs at boot time:
Code:
sudo chmod +x /etc/init.d/xorg.conf
sudo ln -sf /etc/init.d/xorg_conf /etc/rc2.d/S12xorg_conf
The only thing left is two working xorg.conf files, one for the intel card and one for the nvidia card. It seems like you are already capable of generating one for each card so be sure to save them as /etc/X11/xorg.conf.intel and /etc/X11/xorg.conf.nvidia. Make sure you also have installed the drivers for both cards.
Bookmarks