|
Size: 4083
Comment:
|
Size: 5078
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 17: | Line 17: |
| <<TableOfContents(3)>> | <<TableOfContents(4)>> |
| Line 31: | Line 31: |
| === Switchable Graphics Disabled (Manual Card Selection) === ==== Hardware/BIOS Switch ==== |
=== Dynamic Graphics Disabled - BIOS === |
| Line 38: | Line 36: |
| ==== Soft Switch With xrandr and Display Manager Scripts ==== If your system does not support or provide a BIOS switch, an alternative is to configure X to output through the desired provider to the system's attached screen. While this configuration does not take advantage of Optimus' power saving features, it can ensure a consistent desktop graphics experience for 3D applications. |
=== Dynamic Graphics Disabled - xrandr and Display Manager Scripts === If your system does not support or provide a BIOS switch, an alternative is to configure X to output through the desired source to the system's attached screen. While this configuration does not take advantage of Optimus' power saving features, it can ensure a consistent desktop graphics experience for 3D applications. |
| Line 45: | Line 43: |
| Line 57: | Line 56: |
# Insert any additional custom configurations, below: |
|
| Line 61: | Line 62: |
| 3. Add/create a custom script, /usr/local/bin/switch_nvidia.sh: {{{ xrandr --setprovideroutputsource modesetting NVIDIA-0 xrandr --auto xrandr --dpi 96 }}} The DPI setting, (--dpi) should be fine for most screens; however, this may need to be adjusted for newer high density pixel screens. Systems with HiDPI screens likely will want to set this to 192. Consult your hardware manufacturer's specification for the appropriate setting. 4. Make the script executable: {{{ # chmod +x /usr/local/bin/switch_nvidia.sh }}} 5. Configure your desired [[DisplayManager|display manager]] to use a setup script during display setup. ==== Configure LightDM ==== TODO ==== Configure GNOME Display Manager (GDM) ==== TODO ==== Configure KDE Display Manager (KDM) ==== TODO |
|
| Line 62: | Line 88: |
| The proprietary NVIDIA graphics driver can also be used to enable dynamic graphics switching through the use of [[Bumblebee|Bumblebee]]. | The proprietary NVIDIA graphics driver can also be used to enable dynamic graphics switching between the embedded and discrete graphics providers through the use of [[Bumblebee|Bumblebee]]. This method takes advantage of Optimus' power saving features, but can be more complex to successfully enable offloaded 3D applications. |
Translation(s): none
NVIDIA Optimus
This page describes how to identify, configure and troubleshoot NVIDIA Optimus enabled systems for Debian. NVIDIA Optimus is a technology that enables dynamic, switchable graphics between the central processing unit's (CPU) embedded graphics capability and the discrete graphics processing unit (GPU) card. Due to the nature of this technology, various software components must be aware of, and configured for, the proper output of the display based on the user's desired configuration.
The instructions on this page apply to Debian Wheezy and newer.
* NVIDIA Optimus - http://www.nvidia.com/object/optimus_technology.html
Installation of Proprietary Graphics Driver Required
The instructions on this page assume that your system has already had the NVIDIA proprietary graphics drivers installed using the instructions, here: ?Driver Installation.
Contents
Identification
The quickest method to determine if your device uses an Optimus card is to search against the documented list on NVIDIA's website. Obtain the NVIDIA GPU identifier of your card with:
$ lspci | grep 3D
Compare the identifier (i.e. GeForce 7XXM, 8XXM, 9XXM) with the list, here: http://www.geforce.com/hardware/technology/optimus/supported-gpus
Also note the PCI identifier of the card, which is the 5-digit ID at the beginning of the previous command's output, XX:XX.X.
Configuration
Configuration of an NVIDIA Optimus enabled system can be somewhat complex, depending upon the desired end state. This section mentions and details a few of the more common configuration scenarios and how to adjust your Debian installation, accordingly.
Dynamic Graphics Disabled - BIOS
Rather than enabling the power saving features of dynamic, "switchable" graphics, one can simply configure the system to output to the local display using only a single graphics provider.
The simplest method of setting the graphics provider, if your hardware supports it, is to manually select the embedded CPU or NVIDIA GPU as the display provider in the system's BIOS. Of course, this is vendor specific and you must consult your hardware manufacturer's documentation for further detail.
Dynamic Graphics Disabled - xrandr and Display Manager Scripts
If your system does not support or provide a BIOS switch, an alternative is to configure X to output through the desired source to the system's attached screen. While this configuration does not take advantage of Optimus' power saving features, it can ensure a consistent desktop graphics experience for 3D applications.
1. Ensure xrandr is installed and available
# apt-get install x11-xserver-utils
2. Modify or create (if one doesn't exist) an xorg.conf under /etc/X11/xorg.conf; add the following:
Section "Module"
Load "modesetting"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:X:Y:Z"
Option "AllowEmptyInitialConfiguration"
EndSection
# Insert any additional custom configurations, below:Where "BusID" X:Y:Z are the shortened/truncated numbers from the ID gathered above. For example, if the output of lspci displayed a PCI ID of 09:00.0, the BusID entry would read: BusID "9:0:0"
3. Add/create a custom script, /usr/local/bin/switch_nvidia.sh:
xrandr --setprovideroutputsource modesetting NVIDIA-0 xrandr --auto xrandr --dpi 96
The DPI setting, (--dpi) should be fine for most screens; however, this may need to be adjusted for newer high density pixel screens. Systems with HiDPI screens likely will want to set this to 192. Consult your hardware manufacturer's specification for the appropriate setting.
4. Make the script executable:
# chmod +x /usr/local/bin/switch_nvidia.sh
5. Configure your desired display manager to use a setup script during display setup.
Configure LightDM
TODO
Configure GNOME Display Manager (GDM)
TODO
Configure KDE Display Manager (KDM)
TODO
Dynamic Graphics with Bumblebee
The proprietary NVIDIA graphics driver can also be used to enable dynamic graphics switching between the embedded and discrete graphics providers through the use of Bumblebee. This method takes advantage of Optimus' power saving features, but can be more complex to successfully enable offloaded 3D applications.
Troubleshooting
See also
