← Back to team overview

kernel-packages team mailing list archive

[Bug 1349282] Re: The gpu-manager should allow RandR offloading without bbswitch

 

An I+N machine, Lenovo ThinkPad T440p (CID 201309-14169),
could not reproduce this issue.

However,
I tested this fix by the following steps:

1. install Ubuntu 14.04.1 on Lenovo ThinkPad T440p (CID 201309-14169)
2. sudo apt-get install ubuntu-drivers-common ( to be the latest version 1:0.2.91.6)
3. sudo reboot
4. sudo apt-get install nvidia-331-updates (version: 331.38-0ubuntu7.1)
5. sudo reboot
6. sudo dkms remove bbswitch/0.7 --all
7. reboot
8. /var/log/gpu-manager.log now will tell you 'Is nvidia enabled? no'
9. enabled the proposed pocket via software center
10. sudo apt-get install ubuntu-drivers-common ( to upgrade ubuntu-drivers-common)
11. reboot
12. /var/log/gpu-manager.log now will tell you 'Is nvidia enabled? yes'

--------------------
apt-cache policy ubuntu-drivers-common
The following is the snapshot of the test environment:
ubuntu-drivers-common:
  Installed: 1:0.2.91.7
  Candidate: 1:0.2.91.7
  Version table:
 *** 1:0.2.91.7 0
        500 http://tw.archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     1:0.2.91.6 0
        500 http://tw.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
     1:0.2.91.4 0
        500 http://tw.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

dpkg -l | grep -e nvidia -e bbsw
ii  bbswitch-dkms                                         0.7-2ubuntu1                                        amd64        Interface for toggling the power on nVidia Optimus video cards
ii  nvidia-331-updates                                    331.38-0ubuntu7.1                                   amd64        NVIDIA binary driver - version 331.38
ii  nvidia-libopencl1-331-updates                         331.38-0ubuntu7.1                                   amd64        NVIDIA OpenCL Driver and ICD Loader library
ii  nvidia-opencl-icd-331-updates                         331.38-0ubuntu7.1                                   amd64        NVIDIA OpenCL ICD
ii  nvidia-prime                                          0.6.2                                               amd64        Tools to enable NVIDIA's Prime
ii  nvidia-settings                                       331.20-0ubuntu8                                     amd64        Tool for configuring the NVIDIA graphics driver

dkms status
fwts-efi-runtime-dkms, 14.08.00, 3.13.0-36-generic, x86_64: installed
nvidia-331-updates, 331.38, 3.13.0-36-generic, x86_64: installed

lsmod | grep bb (could not found anything)

ubuntu@201309-14169:~$ ls /proc/acpi/
ac_adapter  battery  button  ibm  wakeup

** Attachment added: "gpu-manager.log"
   https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1349282/+attachment/4202391/+files/gpu-manager.log

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

Title:
  The gpu-manager should allow RandR offloading without bbswitch

Status in “nvidia-settings” package in Ubuntu:
  Triaged
Status in “ubuntu-drivers-common” package in Ubuntu:
  Fix Released
Status in “nvidia-settings” source package in Trusty:
  Triaged
Status in “ubuntu-drivers-common” source package in Trusty:
  Fix Committed

Bug description:
  SRU Request

  While bbswitch may fail on some hybrid systems (e.g. on the desktop or
  when the bbswitch module fails to build), this is not a good reason to
  prevent the system from offloading rendering to the NVIDIA GPU.

  [Impact]
   * This problem makes it impossible to use the NVIDIA GPU on hybrid systems with Intel+NVIDIA GPUs when bbswitch is not available (i.e. when it fails to load).

  [Test Case]
   * Make sure to be using a hybrid system with Intel+NVIDIA GPUs.
   
   * Check that bbswitch is not available. You can do so by posting output of the following command:
     test -e /proc/acpi/bbswitch && echo true || echo false
     
   * Make sure that the gpu-manager is not disabled (only necessary if you disabled it manually).

   * Install ubuntu-drivers-common from trusty-proposed.

   * Remove all fglrx and nvidia drivers (keep the nvidia-common and the nvidia-prime packages):
     sudo apt-get --purge remove nvidia-331
     sudo apt-get --purge remove nvidia-331
     sudo apt-get --purge remove fglrx
     sudo apt-get --purge remove fglrx-updates

   * Restart the system.

   * Install the nvidia binary driver, reboot, and check that the binary driver is enabled (attach your /var/log/gpu-manager.log)
      - Expected: the NVIDIA discrete GPU is enabled.
      - Bad behavior: the system switches back to the intel driver and the discrete GPU is not used, despite the fact that the system was configured properly.

  [Regression Potential]
   * Low. Systems that currently work will keep working as usual, the ones that currently fail should finally work.

  [Other Info]
   * N/A

  -----------

  The gpu-manager should allow RandR offloading without bbswitch. This
  would allow desktop systems to make use of offloading even when
  bbswitch is not supported.

  Also, nvidia-settings should not complain in such scenarios. See
  https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-
  common/+bug/1310023/comments/70

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-settings/+bug/1349282/+subscriptions


References