Sunday, September 8, 2013

Switch between nvidia GPUs for display via X settings, if bios doesn't have switching options

You might want to reserve a specific GPU for computing. This might be your "default" display GPU :(

If the Bios options allow you to select a GPU for display, that's your preferred option. If the bios does not offer this option, here is a hack, for screens with multiple I/O ports, or if you have multiple screens at hand:

- with computer off, wire the less preferred cable to the default GPU.

- Boot and shutdown, to make sure this default display layout works and config file xorg.conf is updated.

- boot

- create a backup copy of /etc/X11/xorg.conf

- turn off computer

- plug the preferred cable into the preferred GPU (aka new wiring), while the original wiring for the original display layout is left unchanged


- boot up in graphics mode

- $ sudo nvidia-settings

- Go to X Server Display Configuration

- click icon of disabled monitor (its the one you newly wired). Tip: each connected I/O cable is seen as an original monitor, even wired to 1 physical monitor

- in "Configuration", select "Separate X screen"

- reboot; now the new wiring services a slave X screen

- $ sudo favorite_editor /etc/X11/xorg.conf

- and edit the "Server Layout" to mimic the layout you had before (refer to backup), with new device and screen pointers.

The catch: now all the booting info goes thru the old wiring until xorg.conf is retrieved and its settings enforced. The old wiring may be kept in place, so you switch inputs and peek at the boot info.

No comments:

Post a Comment