[Bug 1778011] Re: PRIME Power Saving mode draws too much power

2018-08-02 Thread Alberto Milone
** Description changed:

  Relying on the nouveau driver and on the vga switcheroo (to get around a
  change in systemd LP: #1777099) caused increased power consumption, and
  slowed down the switching process.
  
- Solving the problem in systemd (LP: #1777099), and adding code in gpu-
- manager and in nvidia-prime to unload the nvidia modules, and to allow
- the PCI device to sleep, dramatically decreases power consumption.
+ Furthermore, if the main X/Xwayland session was started by Gdm when the
+ nvidia driver was loaded, the session will keep the nvidia module
+ loaded, and prevent the system from switching off the dGPU. Also, the
+ nouveau driver will be loaded, if nvidia is not, and this can cause
+ problems to unsupported NVIDIA GPUs.
+ 
+ The solution involves the following changes:
+ 
+ 1) Solving the problem in systemd (LP: #1777099)
+ 
+ 2) Adding code in gpu-manager and in nvidia-prime to unload the nvidia
+ modules, and to allow the PCI device to sleep.
+ 
+ 3) Making a slight change to the current patch in Gdm, used to call the
+ PRIME scripts before and after a Gdm session (so that gpu-manager gets
+ actually called on log out)
+ 
+ 4) Adding code in gpu-manager to kill the main X/Xwayland session on log
+ out, if the session is preventing us from unloading the nvidia driver. A
+ new X/Xwayland session will be created after unload the module.
+ 
+ 5) Removing the systemd service that loads nouveau from the nvidia
+ packages.

** Also affects: nvidia-graphics-drivers-390 (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: nvidia-graphics-drivers-390 (Ubuntu)
   Status: New => Fix Released

** Changed in: nvidia-graphics-drivers-390 (Ubuntu Bionic)
   Status: New => In Progress

** Changed in: nvidia-graphics-drivers-390 (Ubuntu)
   Importance: Undecided => High

** Changed in: nvidia-graphics-drivers-390 (Ubuntu Bionic)
   Importance: Undecided => High

** Changed in: nvidia-graphics-drivers-390 (Ubuntu)
 Assignee: (unassigned) => Alberto Milone (albertomilone)

** Changed in: nvidia-graphics-drivers-390 (Ubuntu Bionic)
 Assignee: (unassigned) => Alberto Milone (albertomilone)

** Description changed:

- Relying on the nouveau driver and on the vga switcheroo (to get around a
- change in systemd LP: #1777099) caused increased power consumption, and
- slowed down the switching process.
+ SRU Request:
+ 
+ [Impact]
+ Relying on the nouveau driver and on the vga switcheroo (to get around a 
change in systemd LP: #1777099) caused increased power consumption, and slowed 
down the switching process.
  
  Furthermore, if the main X/Xwayland session was started by Gdm when the
  nvidia driver was loaded, the session will keep the nvidia module
  loaded, and prevent the system from switching off the dGPU. Also, the
  nouveau driver will be loaded, if nvidia is not, and this can cause
  problems to unsupported NVIDIA GPUs.
  
  The solution involves the following changes:
  
  1) Solving the problem in systemd (LP: #1777099)
  
  2) Adding code in gpu-manager and in nvidia-prime to unload the nvidia
  modules, and to allow the PCI device to sleep.
  
  3) Making a slight change to the current patch in Gdm, used to call the
  PRIME scripts before and after a Gdm session (so that gpu-manager gets
  actually called on log out)
  
  4) Adding code in gpu-manager to kill the main X/Xwayland session on log
  out, if the session is preventing us from unloading the nvidia driver. A
  new X/Xwayland session will be created after unload the module.
  
  5) Removing the systemd service that loads nouveau from the nvidia
  packages.
+ 
+ 
+ [Test Case]
+ 1) Enable the -proposed repository, and install the new 
"ubuntu-drivers-common", nvidia drivers, nvidia-prime, and gdm3
+ 
+ 2) Make sure the nvidia packages are installed, and enable performance mode 
(if it is already enabled, call "sudo prime-select intel" first):
+ sudo prime-select nvidia
+ 
+ 3) Restart your computer and attach your /var/log/gpu-manager.log. see
+ if the system boots correctly. If unsure, please attach your /var/log
+ /gpu-manager.log and /var/log/Xorg.0.log
+ 
+ 4) Select power saving mode:
+ sudo prime-select intel
+ 
+ 5) Log out and log back in
+ 
+ 6) Check if the nvidia driver is still loaded:
+ lsmod | grep nvidia
+ 
+ 
+ [Regression Potential]
+ Low, as hybrid graphics support does not work correctly, and the changes only 
affect this use case.

** Summary changed:

- PRIME Power Saving mode draws too much power
+ SRU: PRIME Power Saving mode draws too much power

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gdm3 in Ubuntu.
https://bugs.launchpad.net/bugs/1778011

Title:
  SRU: PRIME Power Saving mode draws too much power

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1778011/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com

[Bug 1778011] Re: PRIME Power Saving mode draws too much power

2018-07-31 Thread Launchpad Bug Tracker
This bug was fixed in the package nvidia-prime - 0.8.9

---
nvidia-prime (0.8.9) cosmic; urgency=medium

  [ Alberto Milone ]
  * 90-nvidia.conf,
debian/rules,
prime-select:
- Make sure to remove the old blacklist file.
- Use /lib for blacklist-nvidia.conf.
- Do not check if prime is supported when disabling nvidia.
- Enable KMS by default.
- Install prime-switch again (LP: #1778011).
  * debian/nvidia-prime.nvidia-prime-boot.service:
- Remove service.

  [ Alex Tu ]
* prime-select: avoid regenerating the initramfs.

 -- Alberto Milone   Tue, 31 Jul 2018
16:47:20 +0200

** Changed in: nvidia-prime (Ubuntu)
   Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gdm3 in Ubuntu.
https://bugs.launchpad.net/bugs/1778011

Title:
  PRIME Power Saving mode draws too much power

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1778011/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1778011] Re: PRIME Power Saving mode draws too much power

2018-07-31 Thread Alberto Milone
** Also affects: gdm3 (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: gdm3 (Ubuntu)
   Status: New => In Progress

** Changed in: gdm3 (Ubuntu)
   Importance: Undecided => High

** Changed in: gdm3 (Ubuntu)
 Assignee: (unassigned) => Alberto Milone (albertomilone)

** Changed in: gdm3 (Ubuntu Bionic)
 Assignee: (unassigned) => Alberto Milone (albertomilone)

** Changed in: gdm3 (Ubuntu Bionic)
   Importance: Undecided => High

** Changed in: gdm3 (Ubuntu Bionic)
   Status: New => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gdm3 in Ubuntu.
https://bugs.launchpad.net/bugs/1778011

Title:
  PRIME Power Saving mode draws too much power

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1778011/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs