FedoraPrime icon indicating copy to clipboard operation
FedoraPrime copied to clipboard

alternative template file

Open euoar opened this issue 10 years ago • 0 comments

Just wanted to share my alternative xorg.conf.template file, in case you want to have a look at it and find it useful. I've used the one generated in ubuntu by nvidia-prime as base for this.

Basically, I was having troubles with the included file, because gnome was configuring the desktop as if 2 screens were in use, and, as a result, new windows were being opened outside of the visible space. Adding this section solves it:

Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" "on" Option "IgnoreDisplayDevices" "CRT" EndSection

The part refering to the intel device, I guess is not needed, still I reproduce it to show that the solution in ubuntu seems to be using modesetting:

Alternative xorg.conf.template

Section "ServerLayout" Identifier "layout" Screen 0 "nvidia" Inactive "intel" EndSection

Section "Device" Identifier "intel" Driver "modesetting" BusID "PCI:0@0:2:0" Option "AccelMethod" "None" EndSection

Section "Screen" Identifier "intel" Device "intel" EndSection

Section "Device" Identifier "nvidia" Driver "nvidia" BusID "PCI:1@0:0:0" Option "ConstrainCursor" "off" EndSection

Section "Screen" Identifier "nvidia" Device "nvidia" Option "AllowEmptyInitialConfiguration" "on" Option "IgnoreDisplayDevices" "CRT" EndSection

Section "Files" ModulePath "/usr/lib64/nvidia/xorg" ModulePath "/usr/lib64/xorg/modules" EndSection

euoar avatar Mar 02 '16 23:03 euoar