Bug#813848: bumblebee: bbswitch will not disable nvidia card after optirun finishes.

Gary Preston gary at mups.co.uk
Fri Feb 5 23:05:40 UTC 2016


Package: bumblebee
Version: 3.2.1-10~bpo8+1
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Dear Maintainer,

   * What led up to the situation?

   Installed nvidia-kernel-dkms 352 from jessie-backports.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

   After installation, rebooted and found that after running 
   optirun for the first time, /proc/acpi/bbswitch would still
   report ON after optirun had finished.

   Stopping the bumblebeed service and "rmmod nvidia" then running
   bumblebeed -vv showed everything was normal during start up, 
   however upon quitting optirun the log shows:


[  341.192631] [DEBUG]Socket closed.
[  341.192746] [DEBUG]Socket closed.
[  341.192751] [INFO]Stopping X server
[  341.264275] [DEBUG]Process with PID 3275 returned code 0
[  341.264357] [INFO]Unloading nvidia driver
[  341.264443] [DEBUG]Process modprobe started, PID 3296.
modprobe: FATAL: Module nvidia not found.
[  341.264997] [DEBUG]Process with PID 3296 returned code 1
[  344.270780] [ERROR]Unloading nvidia driver timed out.
[  344.270810] [DEBUG]Drivers are still loaded, unable to disable card
[  344.270823] [DEBUG][XORG] (II) UnloadModule: "mouse"
[  344.270826] [DEBUG][XORG] (II) NVIDIA(GPU-0): Deleting GPU-0
[  344.270828] [DEBUG][XORG] (EE) Server terminated successfully (0).
Closing log file.

  The "nvidia" kernel module remained loaded and bbswitch was
  unable to switch the nvidia card to OFF. Running "modprobe -r
  nvidia" manually brought up the same error, instead I had to
  run either:

  modprobe -r nvidia-current

  or 

  rmmod nvidia

  If I create a sym link from nvidia-current.ko to nvidia.ko and
  from nvidia-current-uvm.ko to nvidia-uvm.ko then run depmod -a
  everything then works as expected.

  /etc/nvidia/nvidia-modprobe.conf contains what looks to be
  suitable aliases to allow modprobe -r nvidia to unload
  nvidia-current however I'm not sure if that file is loaded or
  how to check.

  Either way, it looks like bumblebee is unable to unload the
  nvidia module that was loaded via nvidia-current and in turn
  that is causing bbswitch to be unable to disable the dedicated
  graphics card.


- -- System Information:
Debian Release: 8.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bumblebee depends on:
ii  bbswitch-dkms        0.8-1
ii  dpkg                 1.17.26
ii  init-system-helpers  1.22
ii  libbsd0              0.7.0-2
ii  libc6                2.19-18+deb8u2
ii  libglib2.0-0         2.42.1-1
ii  libx11-6             2:1.6.2-3

Versions of packages bumblebee recommends:
ii  primus  0~20140711-1

Versions of packages bumblebee suggests:
ii  bumblebee-nvidia  3.2.1-10~bpo8+1

- -- Configuration Files:
/etc/bumblebee/bumblebee.conf changed:
[bumblebeed]
VirtualDisplay=:8
KeepUnusedXServer=false
ServerGroup=bumblebee
TurnCardOffAtExit=false
NoEcoModeOverride=false
Driver=nvidia
XorgConfDir=/etc/bumblebee/xorg.conf.d
[optirun]
Bridge=auto
VGLTransport=proxy
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
AllowFallbackToIGC=false
[driver-nvidia]
KernelDriver=nvidia-current
PMMethod=auto
LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
XorgModulePath=/usr/lib/nvidia,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

/etc/bumblebee/xorg.conf.nvidia changed:
Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection
Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"
    BusID "PCI:01:00:0"
    Option "ProbeAllGpus" "true"
    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection
Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
EndSection


- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJWtSq4AAoJEIi/03dcUrIbhO0P/0MvuXMzAD6L2GWLVhB1OkMS
i9Sqvg+uHOTuG5o0gT+DioUwc3y7mV5EQ2HYA5aYEFQYE6G0GYH1AZ5w+INDYpcj
0gQM/WqAgUVwG5jjDbXuFxr8E42lYRhNtkzTatdvrGnVXiqdzkJ66v3TUM2QRdW0
80zDkm7PcNfO6LIEioHmoqehbhZC5waBgw3AZ0PBgv6fekDnJKUlOHvxSz5A74hh
YvTaoVRvnE7SDvTi3ioZsTuGHaC2EbJMb1nH2n2YJaKBXF0SbVHoSDIEh9ZRPR8v
ZSZNQDmTpgmEl7spXNPQFwL0X1nla5hAnYW9ZGDWV24UI+4NQxXAlH/Ixy4nwaGZ
ZDzNKYHDBB2Oot+/B88GeDlEx/SMSzxaslCV2p5hjq0YGUTDyge9lj+maKRB4o4z
yYJYy2Y3f+1mYzwNTYmmow+3WPRSWLek6BDI2GPotBYL9ZBPbH+CJbsfFLf7mwFE
bYupXLozPTzSzkMQf1deiZsbZ9YgHXkDOX7zrj6hmQp7ujJ2u2PtFbhtcFaC8bea
IL8Z/mSnlnmvr41XqLEI2wC7Yi33NjFCrX5yNLgHWJnKTd2hO6Gg+vc1oFddTlZH
TIQur50zwBbQuvApbqpvfDgVXccCnWrS4R8TALGKTO4MRUKemzys6dDg/UZ6MeN/
cZpq7jaHBeqZAd11izkC
=2458
-----END PGP SIGNATURE-----



More information about the pkg-nvidia-devel mailing list