Created
November 16, 2015 14:55
-
-
Save PtrMan/0db9a949e6deb7f6f1c6 to your computer and use it in GitHub Desktop.
Gentoo Nvidida Optimus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| xrandr --setprovideroutputsource modesetting NVIDIA-0 | |
| xrandr --auto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Section "ServerLayout" | |
| Identifier "layout" | |
| Screen 0 "nvidia" | |
| Inactive "intel" | |
| EndSection | |
| Section "Device" | |
| Identifier "nvidia" | |
| Driver "nvidia" | |
| BusID "PCI:1:0:0" | |
| Option "NoLogo" "on" | |
| Option "RandRRotation" "on" | |
| Option "TripleBuffer" "on" | |
| Option "AddARGBGLXVisuals" "on" | |
| EndSection | |
| Section "Screen" | |
| Identifier "nvidia" | |
| Device "nvidia" | |
| Option "UseDisplayDevice" "none" | |
| EndSection | |
| Section "Device" | |
| Identifier "intel" | |
| Driver "modesetting" | |
| EndSection | |
| Section "Screen" | |
| Identifier "intel" | |
| Device "intel" | |
| EndSection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment