Bug#920633: bumblebee: Entry 'Driver=nvidia' not added in bumblebee.conf after bumblebee installation

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#920633: bumblebee: Entry 'Driver=nvidia' not added in bumblebee.conf after bumblebee installation

Andreas Christ
Package: bumblebee
Version: 3.2.1-19
Severity: important

Dear Maintainer,

I installed bumblebee on a fresh installation of buster on a Dell G3 3579 with
GTX1060 MaxQ following the instructions on https://wiki.debian.org/Bumblebee.
Before installing bumblebee, I had added i386 architecture.

Optirun then returned:

[ 1778.285793] [ERROR]Cannot access secondary GPU - error: Could not enable
discrete graphics card
[ 1778.285868] [ERROR]Aborting because fallback start is disabled.

In bumblebee.conf, I had to make the following changes:

[bumblebeed]
Driver=nvidia

[driver-nvidia]
PMMETHOD=none


Driver was empty before, and PPMETHOD was set to auto. I am not sure if the
latter setting is needed.

With these changes, optirun and primusrun work:

christ@CARTMAN:~$ optirun inxi -G
Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel
           Device-2: NVIDIA GP106M [GeForce GTX 1060] driver: nvidia v: 390.87
           Display: x11 server: X.Org 1.20.3 driver: modesetting unloaded:
fbdev,vesa resolution: 1920x1080~60Hz
           OpenGL: renderer: GeForce GTX 1060 with Max-Q Design/PCIe/SSE2 v:
4.6.0 NVIDIA 390.87


As I found a lot of reports about problems with bumblebee and tlp, I wanted to
mention that I do not have tlp installed.

Best regards,

Andreas Christ



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages bumblebee depends on:
ii  bbswitch-dkms      0.8-8
ii  dpkg               1.19.2
ii  libbsd0            0.9.1-1
ii  libc6              2.28-5
ii  libglib2.0-0       2.58.2-3
ii  libkmod2           25-2
ii  libx11-6           2:1.6.7-1
ii  lsb-base           10.2018112800
ii  xserver-xorg-core  2:1.20.3-1

Versions of packages bumblebee recommends:
ii  primus  0~20150328-7

Versions of packages bumblebee suggests:
ii  bumblebee-nvidia  3.2.1-19

-- 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
XorgBinary=/usr/lib/xorg/Xorg
[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
PMMethod=none
LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
XorgModulePath=/usr/lib/nvidia/nvidia,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
AlwaysUnloadKernelDriver=false
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau


-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#920633: bumblebee: Entry 'Driver=nvidia' not added in bumblebee.conf after bumblebee installation

Luca Boccassi-3
Control: tags -1 wontfix

On Sun, 2019-01-27 at 15:44 -0200, Andreas Christ wrote:

> Package: bumblebee
> Version: 3.2.1-19
> Severity: important
>
> Dear Maintainer,
>
> I installed bumblebee on a fresh installation of buster on a Dell G3
> 3579 with
> GTX1060 MaxQ following the instructions on https://wiki.debian.org/Bu
> mblebee.
> Before installing bumblebee, I had added i386 architecture.
>
> Optirun then returned:
>
> [ 1778.285793] [ERROR]Cannot access secondary GPU - error: Could not
> enable
> discrete graphics card
> [ 1778.285868] [ERROR]Aborting because fallback start is disabled.
>
> In bumblebee.conf, I had to make the following changes:
>
> [bumblebeed]
> Driver=nvidia
>
> [driver-nvidia]
> PMMETHOD=none
>
>
> Driver was empty before, and PPMETHOD was set to auto. I am not sure
> if the
> latter setting is needed.
>
> With these changes, optirun and primusrun work:
>
> christ@CARTMAN:~$ optirun inxi -G
> Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel
>            Device-2: NVIDIA GP106M [GeForce GTX 1060] driver: nvidia
> v: 390.87
>            Display: x11 server: X.Org 1.20.3 driver: modesetting
> unloaded:
> fbdev,vesa resolution: 1920x1080~60Hz
>            OpenGL: renderer: GeForce GTX 1060 with Max-Q
> Design/PCIe/SSE2 v:
> 4.6.0 NVIDIA 390.87
>
>
> As I found a lot of reports about problems with bumblebee and tlp, I
> wanted to
> mention that I do not have tlp installed.
>
> Best regards,
>
> Andreas Christ
Hi, this is not really a bug, in that on some newer machines bbswitch
doesn't work, so changing PMMethod from auto to none lets the kernel
handle it (which works on those machines).

Note that you'll probably want to also add:

AlwaysUnloadKernelDriver=true

As that will unload the kmods when optirun exists, allowing the kernel
to turn off the card. Without it, the card will be left on and consume
power even when unused.

Unfortunately there's just no way at the moment to pick the correct
setting. The default is what works on most machines.

Also note that setting the Driver is not really necessary, it's smart
enough to figure out if nouveau or the proprietary stack is running.
It's the PMMethod that was needed in your case.

--
Kind regards,
Luca Boccassi

signature.asc (499 bytes) Download Attachment