From mboxrd@z Thu Jan 1 00:00:00 1970 X-Received: by 10.66.237.173 with SMTP id vd13mr2223001pac.44.1423121602380; Wed, 04 Feb 2015 23:33:22 -0800 (PST) X-BeenThere: voidlinux@googlegroups.com Received: by 10.107.16.134 with SMTP id 6ls351554ioq.75.gmail; Wed, 04 Feb 2015 23:33:22 -0800 (PST) X-Received: by 10.50.178.180 with SMTP id cz20mr445177igc.14.1423121602180; Wed, 04 Feb 2015 23:33:22 -0800 (PST) Date: Wed, 4 Feb 2015 23:33:20 -0800 (PST) From: Antonio Malcolm To: voidlinux@googlegroups.com Message-Id: <3fd89d65-f9f3-4a76-b34b-4caba9769260@googlegroups.com> In-Reply-To: <5cb4bc4a-9d38-473f-9dfe-b941366da432@googlegroups.com> References: <096712c7-3309-4869-80a9-df959782c40c@googlegroups.com> <5cb4bc4a-9d38-473f-9dfe-b941366da432@googlegroups.com> Subject: Re: Setting Up Nvidia Optimus Render Offloading Via Randr MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5259_1073231870.1423121600975" ------=_Part_5259_1073231870.1423121600975 Content-Type: multipart/alternative; boundary="----=_Part_5260_1092887937.1423121600975" ------=_Part_5260_1092887937.1423121600975 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Not necessary, as it's nearly verbatim what's in the Nvidia README, and I managed to get this working by fixing my config file, which, admittedly, was a bit backwards. (I had mistakenly thought that the intel chipset would be managing the screen resolution, as it's the output device- also, this is my first time configuring an Optimus-equipped machine). Also, I might still want both sets of OpenGL drivers, per the askubuntu link, in case I want to run the intel chipset alone, on occasion. (I'll need to see just how power and temperature-efficient this setup is, to determine how often I should opt for one over the other, but having the option, in and of itself, is a good thing, methinks.) ANYHOW, here is the working config- I'll update the wiki this evening, as someone else may find this useful (should probably do the same with the synaptics config for my Elantech trackpad). It's working quite well, so far. Section "ServerLayout" Identifier "Displays" Screen 0 "Internal Screen Nvidia" Inactive "Intel Corporation Crystal Well Integrated Graphics Controller" EndSection Section "Monitor" Identifier "Internal Display" Modeline "3200x1800_60.00" 491.57 3200 3448 3800 4400 1800 1801 1804 1862 -HSync +Vsync Modeline "2560x1440_59.90" 311.31 2560 2744 3024 3488 1440 1441 1444 1490 -HSync +Vsync Modeline "2400x1350_60.00" 273.59 2400 2568 2832 3264 1350 1351 1354 1397 -HSync +Vsync Modeline "2240x1260_60.00" 237.85 2240 2400 2640 3040 1260 1261 1264 1304 -HSync +Vsync Modeline "2080x1170_60.00" 203.45 2080 2216 2440 2800 1170 1171 1174 1211 -HSync +Vsync Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync Option "PreferredMode" "1920x1080_60.00" EndSection Section "Device" Identifier "NVIDIA Corporation GK104M [GeForce GTX 870M]" Driver "nvidia" BusId "PCI:1:0:0" Option "monitor-eDP1" "Internal Display" # Option "monitor-DP1" "" # Option "monitor-HDMI1" "" EndSection Section "Screen" Identifier "Internal Screen Nvidia" Device "NVIDIA Corporation GK104M [GeForce GTX 870M]" Monitor "Internal Display" DefaultDepth 24 SubSection "Display" Depth 24 Modes "3200x1800_60.00" "2560x1440_59.90" "2400x1350_60.00" "2240x1260_60.00" "2080x1170_60.00" "1920x1080_60.00" EndSubSection SubSection "Display" Depth 16 Modes "3200x1800_60.00" "2560x1440_59.90" "2400x1350_60.00" "2240x1260_60.00" "2080x1170_60.00" "1920x1080_60.00" EndSubSection SubSection "Display" Depth 8 Modes "3200x1800_60.00" "2560x1440_59.90" "2400x1350_60.00" "2240x1260_60.00" "2080x1170_60.00" "1920x1080_60.00" EndSubSection SubSection "Display" Depth 4 Modes "3200x1800_60.00" "2560x1440_59.90" "2400x1350_60.00" "2240x1260_60.00" "2080x1170_60.00" "1920x1080_60.00" EndSubsection EndSection Section "Device" Identifier "Intel Corporation Crystal Well Integrated Graphics Controller" BusId "PCI:0:2:0" Driver "modesetting" EndSection Section "Screen" Identifier "Internal Screen Intel" Device "Intel Corporation Crystal Well Integrated Graphics Controller" EndSection ------=_Part_5260_1092887937.1423121600975 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Not necessary, as it's nearly verbatim what's in the Nvidi= a README, and I managed to get this working by fixing my config file, which= , admittedly, was a bit backwards.
(I had mistakenly thought that the in= tel chipset would be managing the screen resolution, as it's the output dev= ice- also, this is my first time configuring an Optimus-equipped machine).<= br>
Also, I might still want both sets of OpenGL drivers, per the askubu= ntu link, in case I want to run the intel chipset alone, on occasion.
(I= 'll need to see just how power and temperature-efficient this setup is, to = determine how often I should opt for one over the other, but having the opt= ion, in and of itself, is a good thing, methinks.)

ANYHOW, here is t= he working config- I'll update the wiki this evening, as someone else may f= ind this useful (should probably do the same with the synaptics config for = my Elantech trackpad). It's working quite well, so far.


Section = "ServerLayout"
  Identifier "Displays"
  Screen 0 "Internal= Screen Nvidia"
  Inactive "Intel Corporation Crystal Well Integrat= ed Graphics Controller"

EndSection

Section "Monitor"
 = ; Identifier "Internal Display"
  Modeline "3200x1800_60.00" 491.57= 3200 3448 3800 4400 1800 1801 1804 1862 -HSync +Vsync
  Modeline "= 2560x1440_59.90" 311.31 2560 2744 3024 3488 1440 1441 1444 1490 -HSync +Vsy= nc
  Modeline "2400x1350_60.00" 273.59 2400 2568 2832 3264 1350 135= 1 1354 1397 -HSync +Vsync
  Modeline "2240x1260_60.00" 237.85 2240 = 2400 2640 3040 1260 1261 1264 1304 -HSync +Vsync
  Modeline "2080x1= 170_60.00" 203.45 2080 2216 2440 2800 1170 1171 1174 1211 -HSync +Vsync
=   Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084= 1118 -HSync +Vsync
  Option "PreferredMode" "1920x1080_60.00"
E= ndSection

Section "Device"
  Identifier "NVIDIA Corporation = GK104M [GeForce GTX 870M]"
  Driver "nvidia"
  BusId "PCI:1= :0:0"
  Option "monitor-eDP1" "Internal Display"
#  Option = "monitor-DP1" ""
#  Option "monitor-HDMI1" ""
EndSection

= Section "Screen"

  Identifier "Internal Screen Nvidia"
 = ; Device "NVIDIA Corporation GK104M [GeForce GTX 870M]"
  Monitor "= Internal Display"
  DefaultDepth 24

  SubSection "Displ= ay"
    Depth 24
    Modes "3200x1800_6= 0.00" "2560x1440_59.90" "2400x1350_60.00" "2240x1260_60.00" "2080x1170_60.0= 0" "1920x1080_60.00"
  EndSubSection

  SubSection "Disp= lay"
    Depth 16
    Modes "3200x1800_= 60.00" "2560x1440_59.90" "2400x1350_60.00" "2240x1260_60.00" "2080x1170_60.= 00" "1920x1080_60.00"
  EndSubSection

  SubSection "Dis= play"
    Depth 8
    Modes "3200x1800_= 60.00" "2560x1440_59.90" "2400x1350_60.00" "2240x1260_60.00" "2080x1170_60.= 00" "1920x1080_60.00"
  EndSubSection

  SubSection "Dis= play"
    Depth 4
    Modes "3200x1800_= 60.00" "2560x1440_59.90" "2400x1350_60.00" "2240x1260_60.00" "2080x1170_60.= 00" "1920x1080_60.00"
  EndSubsection

EndSection

Sect= ion "Device"
  Identifier "Intel Corporation Crystal Well Integrate= d Graphics Controller"
  BusId "PCI:0:2:0"
  Driver "modese= tting"
EndSection

Section "Screen"
  Identifier "Internal= Screen Intel"
  Device "Intel Corporation Crystal Well Integrated = Graphics Controller"
EndSection

------=_Part_5260_1092887937.1423121600975-- ------=_Part_5259_1073231870.1423121600975--