Alfonso Commer
2015-Jul-04 17:12 UTC
[Nouveau] Custom xorg.conf file to enable Optimus support.
Hello! I've searching the internet for a custom way to enable Optimus support (through XRANDR and PRIME) but with no success. The problem is as follows: 1. I have two GPU inside this computer (Intel HD series and a Nvidia Geforce GTX 860M), the computer is a Lenovo Y50-70. 2. I've writen two custom xorg configuration files (that are inside my /etc/X11/xorg.conf.d/ configuration directory) to enable/change certain options (TearFree and AccelMethod primarily). 3. When the two configuration files are inside the configuration directory, I only get the Intel GPU as the output for the command "xrandr --listproviders" and therefore not able to use the PRIME feature for some applications I want to be run with the Nvidia GPU (after executing the command "xrandr --setprovideroffloadsink <provider> <sink>"). 4. When the two configuration files are not inside the configuration directory, I get both GPUs (Intel & Nvidia) and can use the PRIME feature and everything works as expected, but not with the desired "AccelMethod" changes and the "TearFree" option enabled. So, the question is, is there a way to have my custom configuration files (with the desired options enabled) and have PRIME feature working at the same time? Maybe through a custom xorg.conf configuration file? Could anyone point me in the right direction? Thank you very much in advance for your attention and information you can give me. P.D. I send my two configuration files if they end up being useful. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20150704/6784e215/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: 20-intel.conf Type: application/octet-stream Size: 11278 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20150704/6784e215/attachment-0002.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: 20-nouveau.conf Type: application/octet-stream Size: 2129 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20150704/6784e215/attachment-0003.obj>
Ilia Mirkin
2015-Jul-05 00:30 UTC
[Nouveau] Custom xorg.conf file to enable Optimus support.
Unfortunately having config files with Device sections negates the autoprobing that X does, so you don't get the second GPU. You can use DRI3 for the offloading, which doesn't require X to do anything, but it does require you to enable DRI3 on the intel driver (Option "DRI" "3" iirc). See http://nouveau.freedesktop.org/wiki/Optimus/ for some details. -ilia On Sat, Jul 4, 2015 at 1:12 PM, Alfonso Commer <acommn at gmail.com> wrote:> Hello! > > I've searching the internet for a custom way to enable Optimus support > (through XRANDR and PRIME) but with no success. > > The problem is as follows: > > 1. I have two GPU inside this computer (Intel HD series and a Nvidia Geforce > GTX 860M), the computer is a Lenovo Y50-70. > 2. I've writen two custom xorg configuration files (that are inside my > /etc/X11/xorg.conf.d/ configuration directory) to enable/change certain > options (TearFree and AccelMethod primarily). > 3. When the two configuration files are inside the configuration directory, > I only get the Intel GPU as the output for the command "xrandr > --listproviders" and therefore not able to use the PRIME feature for some > applications I want to be run with the Nvidia GPU (after executing the > command "xrandr --setprovideroffloadsink <provider> <sink>"). > 4. When the two configuration files are not inside the configuration > directory, I get both GPUs (Intel & Nvidia) and can use the PRIME feature > and everything works as expected, but not with the desired "AccelMethod" > changes and the "TearFree" option enabled. > > So, the question is, is there a way to have my custom configuration files > (with the desired options enabled) and have PRIME feature working at the > same time? Maybe through a custom xorg.conf configuration file? Could anyone > point me in the right direction? > > Thank you very much in advance for your attention and information you can > give me. > > P.D. I send my two configuration files if they end up being useful. > > _______________________________________________ > Nouveau mailing list > Nouveau at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/nouveau >