You are not logged in.

#1 2017-10-16 13:28:48

blackandwhite
Member
Registered: 2017-10-07
Posts: 9

[SOLVED]Nvidia Optimus is broken with 387.12 and kernel 4.13

Hello everyone.

Nvidia drivers update to 387.12 broke Optimus functionality for me. No matter if I use bumblebee or nvidia-xrun - both not working. Everything works when I downgrade Nvidia drivers to 384.90. Here are logs (from bumblebee, but nvidia-xrun has same errors).

optirun -vvv glxgears:

[  460.114053] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  460.115182] [DEBUG]optirun version 3.2.1 starting...
[  460.115225] [DEBUG]Active configuration:
[  460.115253] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  460.115270] [DEBUG] X display: :8
[  460.115290] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia:/usr/lib:/usr/lib32
[  460.115311] [DEBUG] Socket path: /var/run/bumblebee.socket
[  460.115331] [DEBUG] Accel/display bridge: auto
[  460.115352] [DEBUG] VGL Compression: proxy
[  460.115373] [DEBUG] VGLrun extra options: 
[  460.115402] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[  460.115494] [DEBUG]Using auto-detected bridge virtualgl
[  460.771463] [INFO]Response: No - error: [XORG] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:3:0:0.  Please

[  460.771480] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:3:0:0.  Please

[  460.771486] [DEBUG]Socket closed.
[  460.771500] [ERROR]Aborting because fallback start is disabled.
[  460.771504] [DEBUG]Killing all remaining processes.

cat /var/log/Xorg.8.log:

[   460.655] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[   460.655] (==) NVIDIA(0): RGB weight 888
[   460.655] (==) NVIDIA(0): Default visual is TrueColor
[   460.655] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[   460.655] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
[   460.655] (**) NVIDIA(0): Option "UseEDID" "false"
[   460.655] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[   460.655] (**) NVIDIA(0): Enabling 2D acceleration
[   460.655] (**) NVIDIA(0): Ignoring EDIDs
[   460.655] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[   460.655] (**) NVIDIA(0):     mode
[   460.769] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:3:0:0.  Please
[   460.769] (EE) NVIDIA(GPU-0):     check your system's kernel log for additional error
[   460.769] (EE) NVIDIA(GPU-0):     messages and refer to Chapter 8: Common Problems in the
[   460.769] (EE) NVIDIA(GPU-0):     README for additional information.
[   460.769] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA graphics device!
[   460.769] (EE) NVIDIA(0): Failing initialization of X screen 0
[   460.769] (II) UnloadModule: "nvidia"
[   460.769] (II) UnloadSubModule: "wfb"
[   460.769] (II) UnloadSubModule: "fb"
[   460.769] (EE) Screen(s) found, but none have a usable configuration.
[   460.769] (EE) 
Fatal server error:
[   460.769] (EE) no screens found(EE) 
[   460.769] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[   460.769] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
[   460.769] (EE) 
[   460.769] (EE) Server terminated with error (1). Closing log file.

dmesg:

[  460.764267] NVRM: RmInitAdapter failed! (0x26:0xffff:1113)
[  460.764422] NVRM: rm_init_adapter failed for device bearing minor number 0

Adding "rcutree.rcu_idle_gp_delay=1" to kernel parameters not solving this problem. I can't find another workaround to this problem. Until downgrade, I can't use Nvidia GPU, which working without problems on Windows or older drivers. Of course my packages are up to date.

Thank You in advance for answers.

Last edited by blackandwhite (2017-10-31 14:16:21)

Offline

#2 2017-10-23 18:03:06

luca.bat.94
Member
Registered: 2016-01-09
Posts: 9

Re: [SOLVED]Nvidia Optimus is broken with 387.12 and kernel 4.13

Same problem for me, I was able to startx only when i was on battery mode (when Laptop Mode Tools has disabled the Nvidia Card), in other cases the laptop stuck after X starts.
I looked for workarouds on this forum but only downgrade of nvidia package worked as (I hope temporary) fix.

Offline

#3 2017-10-25 19:05:33

blackandwhite
Member
Registered: 2017-10-07
Posts: 9

Re: [SOLVED]Nvidia Optimus is broken with 387.12 and kernel 4.13

Well, I can't figure reason of this bug. I tried searching web for it, but I couldn't find anything about it. Only very old topics with solutions that doesn't work now. I let You know when I learn something about it.

EDIT:
After updating Nvidia drivers to 387.22 problem is solved - I can use dGPU like before.

Last edited by blackandwhite (2017-10-31 14:17:24)

Offline

#4 2017-11-05 10:43:39

luca.bat.94
Member
Registered: 2016-01-09
Posts: 9

Re: [SOLVED]Nvidia Optimus is broken with 387.12 and kernel 4.13

I instead still have the problem, but I think is something related to bumblebee... because if I start bumblebee after X is started everthing works fine.
Maybe I'll open a post related to it.

Offline

Board footer

Powered by FluxBB