I am having similar issues on an ASUS GL504GM (Intel i7 8570H, Nvidia
GTX1060) on Linux 4.19.5. My system is stable with the nouveau driver if
I use acpi_osi=! acpi_osi="Windows 2009", or if I patch SSDT9 (it
appears to handle the dGPU power management) by removing any code
conditional on OSI > 2009. However, in that case, the power draw of the
laptop is around 28W when the Nvidia GPU is powered off (state DynPwr
according to vga_switcheroo), which is lower than the 43W drawn when the
Nvidia GPU is powered on, but higher than the 16W drawn with an
unpatched SSDT9 and no acpi_osi setting. The latter configuration locks
up on lspci or when initiating suspend or poweroff.

So the GPU seems to have 3 distinct power states (of course, the proprietary 
nvidia driver can set lots of different clock speeds that nouveau cannot, but 
they only come into play when the dGPU is turned on):
1. Fully powered off via ACPI.
2. Partially powered off by vga_switcheroo.
3. Fully powered on.

In states 1 and 2, vga_switcheroo reports DynOff, while in state 3 it
reports DynPwr. In contrast, bbswitch reports OFF only in state 1, and
reports ON in states 2 and 3. It is possible to reach state 1 using
bbswitch, but it leads to an unstable system even with the patched
SSDT9.

After applying patches
https://bugzilla.kernel.org/attachment.cgi?id=278269 and
https://bugzilla.kernel.org/attachment.cgi?id=278773, my system is
stable after booting up and the card is actually in state 1 (I can check
the state by looking at the power draw). After a suspend-resume cycle,
the card is in state 2. It is possible to return to state 1 by "power
cycling" the card: I run DRI_PRIME=1 glxgears to power the card on for
PRIME offload and then exit glxgears to power it down. The suspend-
resume-offload-exit cycle can be repeated without locking up the system,
and lspci also works.

The situation is less rosy if I try to connect an external monitor. If I
plug in  my monitor to the HDMI port, which is wired to the Nvidia GPU,
when the card is in state 1, the system locks up. I can avoid the lockup
and use the external monitor if I run DRI_PRIME=1 glxgears to put the
card into state 3 while plugging in the HDMI cable. After that, gxgears
may be exited and the HDMI output continues to function.

However, after removing the external monitor this dance cannot be
repeated: my monitor just displays "Unsupported output format", as if
the card's internal state were corrupted and it sent garbage to the HDMI
port. Although some parts of the card must be working correctly because
even in this state I can run DRI_PRIME=1 glxgears without problems and
see the gears spinning on the internal display of the laptop.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to nvidia-graphics-drivers-390 in Ubuntu.
https://bugs.launchpad.net/bugs/1803179

Title:
  System does not reliably come out of suspend

Status in Linux:
  Incomplete
Status in linux package in Ubuntu:
  Confirmed
Status in nvidia-graphics-drivers-390 package in Ubuntu:
  New
Status in nvidia-graphics-drivers-410 package in Ubuntu:
  New

Bug description:
  Dell XPS 15 (9750); it might eventually manage to suspend when the lid
  is closed, but more often than not will not wake up again when the lid
  is opened. Waking up using the power button often results in a system
  that is apparently frozen (graphics displayed are the last on screen
  before suspend, clock seconds do not change)

  System is unresponsive to the keyboard at that time (can't switch to a
  VT or otherwise interact with the system other than holding the power
  button for a few seconds to shut it down).

  ProblemType: Bug
  DistroRelease: Ubuntu 19.04
  Package: linux-image-4.18.0-10-generic 4.18.0-10.11
  ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
  Uname: Linux 4.18.0-10-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.10-0ubuntu14
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  mtrudel    2516 F.... pulseaudio
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Nov 13 10:42:08 2018
  InstallationDate: Installed on 2018-11-02 (10 days ago)
  InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 
(20181017.3)
  MachineType: Dell Inc. XPS 15 9570
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.18.0-10-generic 
root=UUID=14900847-323c-4427-b59e-89210ec1c8ec ro quiet splash vt.handoff=1
  RelatedPackageVersions:
   linux-restricted-modules-4.18.0-10-generic N/A
   linux-backports-modules-4.18.0-10-generic  N/A
   linux-firmware                             1.175
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 09/03/2018
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: 1.5.0
  dmi.board.name: 0D0T05
  dmi.board.vendor: Dell Inc.
  dmi.board.version: A00
  dmi.chassis.type: 10
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: 
dmi:bvnDellInc.:bvr1.5.0:bd09/03/2018:svnDellInc.:pnXPS159570:pvr:rvnDellInc.:rn0D0T05:rvrA00:cvnDellInc.:ct10:cvr:
  dmi.product.family: XPS
  dmi.product.name: XPS 15 9570
  dmi.product.sku: 087C
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1803179/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to