I spent some more time and was able to get things working on my machine,
so I though I'd share how.  Note this is definitely a hack but it works
and perhaps Alberto or Tim could give directions on a temporary fix that
is less hacky while we wait for the official fix to be posted somewhere.

1.  In /etc/gdm/Init/Defaut, add the line /sbin/prime-offload right
before the exit 0.  Or better, write your own script to call "Default"
and then run prime-offload.

2.  Unlike older version of nvidia-prime, newer versions don't appear to
generate an xorg.conf file.  But with my hack fix, it still needed when
in "nvidia" mode.  So after I do a "prime-select nvidia" I create an
xorg.conf file in /etc/X11/ with the following contents:

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

Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "nvidia"
Device "nvidia"
# Uncomment this line if your computer has no display devices connected to
# the NVIDIA GPU. Leave it commented if you have display devices
# connected to the NVIDIA GPU that you would like to use.
Option "UseDisplayDevice" "none"
EndSection

Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection

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

Then reboot for nvidia mode.   Note that when you want to enable intel
mode, you'll need to remove this file and reboot.

Like I said, a total hack but it enables nvidia mode for me which is all
I needed for now.

One other issue I saw was that the /etc/init/nvidia-prime.conf has some
specific use of lightdm.  Whatever it's doing there, I guess it needs to
do for gdm as well.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nvidia-prime in Ubuntu.
https://bugs.launchpad.net/bugs/1262068

Title:
  nvidia-prime should support gdm also

Status in Ubuntu GNOME:
  Triaged
Status in “gdm” package in Ubuntu:
  Confirmed
Status in “nvidia-prime” package in Ubuntu:
  Fix Released
Status in “ubuntu-drivers-common” package in Ubuntu:
  Confirmed
Status in “nvidia-prime” source package in Precise:
  Fix Released

Bug description:
  On Ubuntu GNOME we ship gdm by default, however nvidia-prime depends
  on lightdm. This means that

  1. Anyone installing nvidia binary drivers will pull in nvidia-prime and 
subsequently lightdm. As a consequence of this they are also going to get the 
potentially confusing dconf pop-up asking them to choose a DM.
  2. nvidia-prime probably won't work when using gdm

  I haven't looked to closely at how deeply integrated this is with
  lightdm, however we particularly don't want #1 happening, and it would
  be nice if #2 worked.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: nvidia-prime (not installed)
  ProcVersionSignature: Ubuntu 3.12.0-5.13-generic 3.12.2
  Uname: Linux 3.12.0-5-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.12.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Wed Dec 18 16:56:19 2013
  InstallationDate: Installed on 2012-09-23 (451 days ago)
  InstallationMedia: Ubuntu GNOME Remix 12.10 "Quantal Quetzal" - Alpha 
amd64(20120922)
  SourcePackage: nvidia-prime
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-gnome/+bug/1262068/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to