Make.conf/VIDEO CARDS/Daniel's Simple Hybrid Graphics

From Funtoo
< Make.conf‎ | VIDEO CARDS
Revision as of 20:06, July 28, 2019 by Drobbins (talk | contribs) (Created page with "This page documents how I, Daniel Robbins set up my Thinkpad P1 so that I can switch between Intel integrated graphics and NVIDIA graphics by simply entering the BIOS and togg...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page documents how I, Daniel Robbins set up my Thinkpad P1 so that I can switch between Intel integrated graphics and NVIDIA graphics by simply entering the BIOS and toggling the appropriate setting.

First, Intel

Configure your BIOS to boot using hybrid graphics. This will keep the Intel integrated graphics enabled as the primary graphics device, but the NVIDIA graphics chip will still be visible using lspci. Now, we will try to configure X:

root # X -configure

A sample xorg.conf.new file will be written to /root. This file requires some editing -- it will not work as-is. You will want to edit it and remove all references to the "nvidia" driver and associated screens, etc. This is the file that I ended up with and it should likely work for your purposes as well:

   /root/xorg.conf.new
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib64/xorg/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/OTF/"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "intel"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection