You are not logged in.

#1 2013-08-21 20:33:37

labotsirc
Member
Registered: 2013-08-21
Posts: 81

[SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

Hi all,

I have recently installed Arch Linux on the Razer Blade Pro 17". It is working but not with the Nvidia driver it seems. Probably it is using the intel GPU or some sort of virtual emulation.

My GPU is Nvidia 765M and the CPU is Haswell i7 4700HQ.

Whenever i launch optirun, i get this error:

[cristobal@orion ~]$ optirun -vv --debug glxgears -info
[ 1048.771204] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[ 1048.771708] [INFO]Configured driver: nvidia
[ 1048.771998] [DEBUG]optirun version 3.2.1 starting...
[ 1048.772016] [DEBUG]Active configuration:
[ 1048.772024] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[ 1048.772033] [DEBUG] X display: :8
[ 1048.772041] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia
[ 1048.772050] [DEBUG] Socket path: /var/run/bumblebee.socket
[ 1048.772059] [DEBUG] Accel/display bridge: auto
[ 1048.772068] [DEBUG] VGL Compression: proxy
[ 1048.772076] [DEBUG] VGLrun extra options: 
[ 1048.772084] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[ 1048.772127] [DEBUG]Using auto-detected bridge virtualgl
[ 1048.830088] [INFO]Response: No - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please
[ 1048.830099] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please
[ 1048.830102] [DEBUG]Socket closed.
[ 1048.830113] [ERROR]Aborting because fallback start is disabled.
[ 1048.830116] [DEBUG]Killing all remaining processes.

When i check for bbswitch, i see this:

[cristobal@orion ~]$ dmesg | grep bbswitch
[    2.058001] bbswitch: version 0.7
[    2.058007] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[    2.058012] bbswitch: cannot find ACPI handle for VGA device 0000:01:00.0
[    2.058013] bbswitch: No discrete VGA device found

bumblebee.conf is:

[cristobal@orion ~]$ cat /etc/bumblebee/bumblebee.conf 
# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia/xorg/,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

xorg.conf.nvidia is:

[cristobal@orion ~]$ cat /etc/bumblebee/xorg.conf.nvidia 
Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"

#   If the X server does not automatically detect your VGA device,
#   you can manually set it here.
#   To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
#   as you see in the commented example.
#   This Setting may be needed in some platforms with more than one
#   nvidia card, which may confuse the proprietary driver (e.g.,
#   trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
#   BusID "PCI:01:00:0"

#   Setting ProbeAllGpus to false prevents the new proprietary driver
#   instance spawned to try to control the integrated graphics card,
#   which is already being managed outside bumblebee.
#   This option doesn't hurt and it is required on platforms running
#   more than one nvidia graphics card with the proprietary driver.
#   (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
#   If this option is not set, the new Xorg may blacken the screen and
#   render it unusable (unless you have some way to run killall Xorg).

    Option "ProbeAllGpus" "false"

    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection

Xorg log is:

[cristobal@orion ~]$ cat /var/log/Xorg.8.log
[  1048.783] (II) "glx" will be loaded by default.
[  1048.783] (II) LoadModule: "dri2"
[  1048.783] (II) Module "dri2" already built-in
[  1048.783] (II) LoadModule: "glamoregl"
[  1048.783] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[  1048.794] (II) Module glamoregl: vendor="X.Org Foundation"
[  1048.794] 	compiled for 1.14.0, module version = 0.5.0
[  1048.794] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  1048.794] (II) LoadModule: "glx"
[  1048.794] (II) Loading /usr/lib/nvidia/xorg/modules/extensions/libglx.so
[  1048.813] (II) Module glx: vendor="NVIDIA Corporation"
[  1048.813] 	compiled for 4.0.2, module version = 1.0.0
[  1048.813] 	Module class: X.Org Server Extension
[  1048.813] (II) NVIDIA GLX Module  325.15  Wed Jul 31 18:12:00 PDT 2013
[  1048.813] Loading extension GLX
[  1048.813] (II) LoadModule: "nvidia"
[  1048.813] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[  1048.815] (II) Module nvidia: vendor="NVIDIA Corporation"
[  1048.815] 	compiled for 4.0.2, module version = 1.0.0
[  1048.815] 	Module class: X.Org Video Driver
[  1048.815] (II) LoadModule: "mouse"
[  1048.815] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[  1048.816] (II) Module mouse: vendor="X.Org Foundation"
[  1048.816] 	compiled for 1.14.0, module version = 1.9.0
[  1048.816] 	Module class: X.Org XInput Driver
[  1048.816] 	ABI class: X.Org XInput driver, version 19.1
[  1048.816] (II) LoadModule: "kbd"
[  1048.816] (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
[  1048.816] (II) Module kbd: vendor="X.Org Foundation"
[  1048.816] 	compiled for 1.14.0, module version = 1.7.0
[  1048.816] 	Module class: X.Org XInput Driver
[  1048.816] 	ABI class: X.Org XInput driver, version 19.1
[  1048.816] (II) NVIDIA dlloader X Driver  325.15  Wed Jul 31 17:50:57 PDT 2013
[  1048.816] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  1048.816] (--) using VT number 1

[  1048.816] (II) Loading sub module "fb"
[  1048.816] (II) LoadModule: "fb"
[  1048.816] (II) Loading /usr/lib/xorg/modules/libfb.so
[  1048.817] (II) Module fb: vendor="X.Org Foundation"
[  1048.817] 	compiled for 1.14.2, module version = 1.0.0
[  1048.817] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  1048.817] (WW) Unresolved symbol: fbGetGCPrivateKey
[  1048.817] (II) Loading sub module "wfb"
[  1048.817] (II) LoadModule: "wfb"
[  1048.817] (II) Loading /usr/lib/xorg/modules/libwfb.so
[  1048.818] (II) Module wfb: vendor="X.Org Foundation"
[  1048.818] 	compiled for 1.14.2, module version = 1.0.0
[  1048.818] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  1048.818] (II) Loading sub module "shadow"
[  1048.818] (II) LoadModule: "shadow"
[  1048.818] (II) Loading /usr/lib/xorg/modules/libshadow.so
[  1048.818] (II) Module shadow: vendor="X.Org Foundation"
[  1048.818] 	compiled for 1.14.2, module version = 1.1.0
[  1048.818] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  1048.818] (II) Loading sub module "ramdac"
[  1048.818] (II) LoadModule: "ramdac"
[  1048.818] (II) Module "ramdac" already built-in
[  1048.819] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[  1048.819] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[  1048.819] (==) NVIDIA(0): RGB weight 888
[  1048.819] (==) NVIDIA(0): Default visual is TrueColor
[  1048.819] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[  1048.819] (**) NVIDIA(0): Option "NoLogo" "true"
[  1048.819] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
[  1048.819] (**) NVIDIA(0): Option "UseEDID" "false"
[  1048.819] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[  1048.819] (**) NVIDIA(0): Enabling 2D acceleration
[  1048.819] (**) NVIDIA(0): Ignoring EDIDs
[  1048.819] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[  1048.819] (**) NVIDIA(0):     mode
[  1048.826] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please
[  1048.826] (EE) NVIDIA(0):     check your system's kernel log for additional error
[  1048.826] (EE) NVIDIA(0):     messages and refer to Chapter 8: Common Problems in the
[  1048.826] (EE) NVIDIA(0):     README for additional information.
[  1048.826] (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
[  1048.826] (EE) NVIDIA(0): Failing initialization of X screen 0
[  1048.826] (II) UnloadModule: "nvidia"
[  1048.826] (II) UnloadSubModule: "shadow"
[  1048.826] (II) UnloadSubModule: "wfb"
[  1048.826] (II) UnloadSubModule: "fb"
[  1048.826] (EE) Screen(s) found, but none have a usable configuration.
[  1048.826] (EE) 
Fatal server error:
[  1048.826] (EE) no screens found(EE) 
[  1048.826] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[  1048.826] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
[  1048.826] (EE) 
[  1048.826] (EE) Server terminated with error (1). Closing log file.

System is:

[cristobal@orion ~]$ uname -a
Linux orion 3.10.7-1-ARCH #1 SMP PREEMPT Thu Aug 15 11:55:34 CEST 2013 x86_64 GNU/Linux

Packages installed:

[cristobal@orion ~]$ sudo pacman -Q nvidia bumblebee bbswitch xorg-server xorg-xinit xf86-video-intel
nvidia 325.15-3
bumblebee 3.2.1-3
bbswitch 0.7-10
xorg-server 1.14.2-2
xorg-xinit 1.3.2-3
xf86-video-intel 2.21.14-2

Lastly, lspci lists the following:

[cristobal@orion ~]$ lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d4)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d4)
00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d4)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM87 Express LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 04)
00:1f.6 Signal processing controller: Intel Corporation 8 Series Chipset Family Thermal Management Controller (rev 04)
01:00.0 3D controller: NVIDIA Corporation GK106M [GeForce GTX 765M] (rev a1)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 0c)
04:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)

I really dont know what the problem could be. Any hints?

Last edited by labotsirc (2013-08-26 03:15:53)

Offline

#2 2013-08-22 01:57:16

Signum
Member
Registered: 2013-05-19
Posts: 10

Re: [SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

Hi labotsirc

Seems to be a problem with the nvidia module. Your Xorg.log shows this:

[  1048.826] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please
[  1048.826] (EE) NVIDIA(0):     check your system's kernel log for additional error
[  1048.826] (EE) NVIDIA(0):     messages and refer to Chapter 8: Common Problems in the
[  1048.826] (EE) NVIDIA(0):     README for additional information.
[  1048.826] (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!

Can you post your systemlog ? try to use systemctl -b | grep nvidia as root.

Last edited by Signum (2013-08-22 01:57:56)


English is not my native language. So please, tell me if I am writing it wrong.

Offline

#3 2013-08-22 14:00:07

labotsirc
Member
Registered: 2013-08-21
Posts: 81

Re: [SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

Hi Signum,

This is what i get

[cristobal@orion ~]$ sudo systemctl -b | grep nvidia
systemctl: invalid option -- 'b'
[cristobal@orion ~]$ 

Offline

#4 2013-08-22 14:23:11

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,162
Website

Re: [SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

labotsirc wrote:

Hi Signum,

This is what i get

[cristobal@orion ~]$ sudo systemctl -b | grep nvidia
systemctl: invalid option -- 'b'
[cristobal@orion ~]$ 

Signum probably means sudo systemctl --b | grep nvidia.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#5 2013-08-22 16:17:41

labotsirc
Member
Registered: 2013-08-21
Posts: 81

Re: [SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

I also tried that one sudo systemctl --b | grep nvidia and throws nothing. There is another post about a Lenovo laptop with similar symptoms because of kernel 3.10.x and nvidia driver 325-15-x. Maybe they are very related.

Last edited by labotsirc (2013-08-22 21:45:45)

Offline

#6 2013-08-22 18:41:31

Signum
Member
Registered: 2013-05-19
Posts: 10

Re: [SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

Yesterday I was sleepy and I didn't notice my mistake,  is not systemctl, is journalctl sorry tongue.

journalctl -b | grep nvidia

or

dmesg | grep nvidia

English is not my native language. So please, tell me if I am writing it wrong.

Offline

#7 2013-08-22 21:44:26

labotsirc
Member
Registered: 2013-08-21
Posts: 81

Re: [SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

no problem!

I tried both commands, it seems there is no 'nvidia' actvity.

[cristobal@orion ~]$ sudo journalctl -b | grep nvidia
[cristobal@orion ~]$ 
[cristobal@orion ~]$ dmesg | grep nvidia
[cristobal@orion ~]$ 

Offline

#8 2013-08-23 03:18:58

Signum
Member
Registered: 2013-05-19
Posts: 10

Re: [SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

Ok, I have bad news for you I think.

After some search about the problem, I found a few persons with the same problem and seems to be related to the kernel, especifically related with ACPI Handle. This is the post: https://github.com/Bumblebee-Project/bbswitch/issues/65. In summary, since kernel's version 3.7.9-1-ARCH some Nvidia cards are having problems, in fact, seems to be about the way how the card is conected to the motherboard. Since 3.11 kernel's version it may be solved but I'm not sure about that. So, I think that your only choice for now is just to wait, but you can try this if you want:

1) Download the kernel version 3.11 from kernel.org, compile it manually and try to use the Nvidia card (try to use the bumblebee's git version if you can).
2) If (1) doesn't work, try to use the Nvidia beta drivers.
3) If (1) and (2) doesn't work, be patience and wait for the fix in next kernels or Nvidia release.

I'll keep my eyes on that thread (and of couse also on this)  for news about the problem. If I find another thing I'll keep you informed about.

Last edited by Signum (2013-08-23 03:19:33)


English is not my native language. So please, tell me if I am writing it wrong.

Offline

#9 2013-08-23 04:19:15

rufus
Banned
From: san francisco
Registered: 2013-04-20
Posts: 153

Re: [SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

awhile back I switched to ATI and wont look back for good reason.


end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     'the machine is not the end to the means., we are. In history, in board rooms and politic the greatest  decision and effort
        evolves from passion, lust for life, and a common sense of humanity. Never forget what you are and why'.         -me

Offline

#10 2013-08-23 04:47:57

labotsirc
Member
Registered: 2013-08-21
Posts: 81

Re: [SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

Signum wrote:

Ok, I have bad news for you I think.

After some search about the problem, I found a few persons with the same problem and seems to be related to the kernel, especifically related with ACPI Handle. This is the post: https://github.com/Bumblebee-Project/bbswitch/issues/65. In summary, since kernel's version 3.7.9-1-ARCH some Nvidia cards are having problems, in fact, seems to be about the way how the card is conected to the motherboard. Since 3.11 kernel's version it may be solved but I'm not sure about that. So, I think that your only choice for now is just to wait, but you can try this if you want:

1) Download the kernel version 3.11 from kernel.org, compile it manually and try to use the Nvidia card (try to use the bumblebee's git version if you can).
2) If (1) doesn't work, try to use the Nvidia beta drivers.
3) If (1) and (2) doesn't work, be patience and wait for the fix in next kernels or Nvidia release.

I'll keep my eyes on that thread (and of couse also on this)  for news about the problem. If I find another thing I'll keep you informed about.

Thanks for the help Signum,
I will definetly try 1) and 2) now in the weekend and i will report back

Offline

#11 2013-08-26 03:14:35

labotsirc
Member
Registered: 2013-08-21
Posts: 81

Re: [SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

Signum,

I followed the patch method provided in this post, reply #27 by Korrode:
http://forum.manjaro.org/index.php?topi … 9#msg54059

Then i updated grub, rebooted  now the nvidia driver works!.
I can confim that this is a kernel 3.10 problem. Because the patch actually downgrades to 3.9.X and maybe does something else.

I hope kernel 3.11 will work out of the box, meanwhile i will stay with 3.9
Thanks for all the help man!

[cristobal@orion ~]$ dmesg | grep bbswitch
[    0.000000] Linux version 3.9.11-1-MANJARO-bbswitchfix (korrode@legion) (gcc version 4.8.1 (GCC) ) #1 SMP PREEMPT Mon Aug 5 01:05:27 EST 2013
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-39-bbswitchfix-x86_64 root=UUID=648942da-038e-478b-a87c-1445a18480aa rw quiet
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-39-bbswitchfix-x86_64 root=UUID=648942da-038e-478b-a87c-1445a18480aa rw quiet
[    0.018491] Pid: 0, comm: swapper/0 Not tainted 3.9.11-1-MANJARO-bbswitchfix #1
[    1.939179] bbswitch: version 0.6
[    1.939183] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[    1.939187] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[    1.939243] bbswitch: detected an Optimus _DSM function
[    1.939247] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[    1.940187] bbswitch: disabling discrete graphics
[    1.940378]  bbswitch(O)
[    1.940403] Pid: 316, comm: bumblebeed Tainted: G        W  O 3.9.11-1-MANJARO-bbswitchfix #1
[    1.940417]  [<ffffffffa0c6b520>] ? bbswitch_pm_handler+0x70/0x70 [bbswitch]
[    1.940425]  [<ffffffffa0c6b1f6>] bbswitch_off+0xa6/0x240 [bbswitch]
[    1.940427]  [<ffffffffa0c6b5bd>] bbswitch_proc_write+0x9d/0xac [bbswitch]
[   70.246793] bbswitch: enabling discrete graphics
[   85.089281] bbswitch: disabling discrete graphics
[   98.027768] bbswitch: enabling discrete graphics

Last edited by labotsirc (2013-08-26 03:17:19)

Offline

#12 2013-09-10 05:18:46

riveale
Member
Registered: 2013-09-10
Posts: 49
Website

Re: [SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

Hi guys, I succeeded in getting razer blade 14 (2013) to work everything with linux, including bumblebee/nvidia, 6-7 hrs battery life, CUDA, etc.

Here are my notes (in case they'll be useful for anyone). Just want to contribute back what I've scraped from various forums:


STEPS TO GET RAZER BLADE 14 WORKING WITH LINUX:

Note: I am a computer scientists/computational neuroscientist, so my needs may be slightly different from yours. But, generally my uses are:
-Basic everyday use as primary machine (presentations, connecting to internet, browsing, music, long battery life, etc. etc. etc.)
-Running code via CUDA on GPU (C++)
-Playing 3d games on nvidia GPU (e.g. heroes of newerth linux client)

I got all these things to work nicely. So, my setup will get it in condition to do this type of thing.

Follows are problems, fixes, and notes about what works.


--PROBLEM: BIG (initial) problems with nvidia card.
Solution: Had to switch to manjaro linux, use a special patch on the 3.9 kernel to get the ACHI/ACPI stuff to work correctly. 325 driver. NOTE format USB drive to fat16 or fat32 (mkfs.vfat /dev/usbstick) before you write the iso image to it. I now get a draw of about 9 W with wireless on and half brightness while browsing, giving 6-7 hours of battery life.

Had to switch everything in bios to legacy mode to install linux (UEFI was messing stuff up). (also disable quiet boot, fast boot, etc., and mess around turn on that thing to let you set everything to legacy mode).

This (manjaro 0.87) only got kernel 3.4, so X wouldn't start initially because of haswell video stuff (i915 drivers?) not supported in that early kernel.
Had to connect to internet via command line networkmanager (nmcli, connect to network, etc.). Don't remember the exact commands but you can google it.

Updated system with:
sudo pacman -Syu

Now X works and we have integrated card running, now we need to patch to the kernel that has the support for the bbswitch AHCI (ACPI?) stuff that the nvidia card is connected to in the razer blade 14. I followed this chain of links:

via https://bbs.archlinux.org/viewtopic.php?id=168622
http://forum.manjaro.org/index.php?topi … 9#msg54059

Basically, inside manjaro you run
sudo pacman -Syu
wget http://www.paradoxcomputers.com.au/manjaro/packages/bbswitchfix/"$(uname -m)"/linux39-bbswitchfix-3.9.11-1-"$(uname -m)".pkg.tar.xz && wget http://www.paradoxcomputers.com.au/manjaro/packages/bbswitchfix/"$(uname -m)"/linux39-bbswitchfix-headers-3.9.11-1-"$(uname -m)".pkg.tar.xz && wget http://www.paradoxcomputers.com.au/manjaro/packages/bbswitchfix/"$(uname -m)"/linux39-bbswitchfix-bbswitch-0.6-1-"$(uname -m)".pkg.tar.xz && wget http://www.paradoxcomputers.com.au/manjaro/packages/bbswitchfix/"$(uname -m)"/linux39-bbswitchfix-nvidia-325.15-1-"$(uname -m)".pkg.tar.xz && sudo pacman -U linux39-bbswitchfix-3.9.11-1-"$(uname -m)".pkg.tar.xz linux39-bbswitchfix-headers-3.9.11-1-"$(uname -m)".pkg.tar.xz linux39-bbswitchfix-bbswitch-0.6-1-"$(uname -m)".pkg.tar.xz linux39-bbswitchfix-nvidia-325.15-1-"$(uname -m)".pkg.tar.xz && rm linux39-bbswitchfix-3.9.11-1-"$(uname -m)".pkg.tar.xz linux39-bbswitchfix-headers-3.9.11-1-"$(uname -m)".pkg.tar.xz linux39-bbswitchfix-bbswitch-0.6-1-"$(uname -m)".pkg.tar.xz linux39-bbswitchfix-nvidia-325.15-1-"$(uname -m)".pkg.tar.xz && echo "** NOW REBOOT AND SELECT THE -bbswitchfix KERNEL FROM YOUR GRUB MENU **"

Then had to go inside /etc/bumblebee/bumblebee.conf and set Driver=nvidia (it was noveau for some reason, causing big problem when I tried to start optirun etc.).

Then reboot, and your nvidia/bumblebee/bbswitch should all be working dandy!

You can check it with lspci | grep 3D (should be rev ff if turned off, rev a1 or something when its on).
Can try :
optirun glxgears




--PROBLEM: WEBCAM FLASHING (red-green etc. when indoors). Also in VLC etc., regardless of nvidia/intel GPU. (this also happens in windows -- haha those poor suckers)
FIXED by downloading guvcview and turning off white balance temperature/auto.

--PROBLEM: Battery charge threshold (always charges to 100%) can't be set?
Need solution from razer (I don't think this can be done in windows either -- I'm scared to try the thinkpad utilities b/c might brick battery?)

--PROBLEM: Touchpad multitouch doesn't work b/c no driver (jittery, double-click doesn't work, slide scroll doesn't work, no turn off when typing, etc.)
Need driver from razer (no synaptics available)
Some discussion (razer says it's proprietary hardware): http://www.reddit.com/r/linuxquestions/ … _blade_14/
I found a forum post where someone was starting to reverse engineer it, but I can't find it again.
(xinput -list and the other thing shows there's no synaptics available.)

--PROBLEM: Hardware brightness control doesn't work (function f8/f9). But, can do it from within linux software.
Need solution (driver for keyboard?) from razer

--PROBLEM: Battery applet thing doesn't display discharge rate etc. (battery isn't recognized maybe?)
Solution: you can see via terminal (dunno where fans are though):
cat /sys/class/power_supply/BAT0/uevent
Note, I also tried "sensors" program (lm_sensors) which at one time caused some weird screen colors (no problem after reboot) (when I let it do all the possible sensors, nvidia card etc...?)
Also used powertop, but that wasn't reporting discharge...



PROBLEM WITH MY MACHINE (?): Some weird jittering sound from left fan in back (at a certain angle)

PROBLEM WITH MY MACHINE (?): Screen is slightly off flush when closed (hinge on back-right is slightly off, causing it?). But <1 mm, barely noticable, but hopefully won't cause problems later on.

OBSERVATION (REVIEW): Screen is nice. No "pressure points" from carrying it in bag all day even. Don't know how it will react to doing that in heat/cold though, or being banged around significantly.



EXTERNAL SPEAKERS work
HEADPHONES work (properly turns off speakers when plug in jack, etc.)
SUSPEND/HIBERNATE works (?)

--WORKS: Hardware keyboard backlight control DOES work

--WORKS: print screen (fn+f12) DOES work

--WORKS: volume control (fn + f2/f3) DOES work

--WORKS: pgup/pgdown/home/end (fn + left/right/up/down arrow keys) DOES work.

--WORKS: HDMI-VGA output to external screen.
For VGA connection via HDMI, had to go via XFCE "display" program (just using the hardware switch didn't work so hot I think?). And adjust resolution, etc.
HDMI->VGA (for presentations) works nice (using QVS HDMI to VGA adapter HDVGA-ME)

--WORKS: USB ethernet plug and play:
USB ethernet works nice (using DLILNK USB 2.0 fast ethernet adapter DUB-E100).



Some other things I did (personal stuff, needed Japanese input, needed java RXTX, etc.)

get Japanese IME input to work: https://wiki.archlinux.org/index.php/Sm … d_platform

after installing scim-anthy and anthy:

in: ~/.xprofile

export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
scim -d


NOTE: packages opencv, gsl, java jdk, skype, etc. all went smoothly. vlc plays fine.


For virtualbox:
https://wiki.archlinux.org/index.php/VirtualBox
needed to do dkms stuff (i.e. select dkms option for the module stuff when you do -- for me it was option 5:)
sudo pacman -S virtualbox





HOW to install java RXTX:

from AUR:
Download rxtx package from https://aur.archlinux.org/packages/rxtx/

mv file into a directory (e.g. ~/aur_packages)
tar xfz packagefile.tar.gz
cd packagefile
makepkg -s #-s resolves dependencies?
sudo pacman -U packagefile/packagefile.pkg.tar.xz

I also had to do (b/c dir structure was a bit different).
sudo ln -s /usr/share/java/rxtx/RXTXcomm.jar /usr/share/java/RXTXcomm.jar

Offline

#13 2013-09-10 20:33:24

labotsirc
Member
Registered: 2013-08-21
Posts: 81

Re: [SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

riveale wrote:

Hi guys, I succeeded in getting razer blade 14 (2013) to work everything with linux, including bumblebee/nvidia, 6-7 hrs battery life, CUDA, etc.

Here are my notes (in case they'll be useful for anyone). Just want to contribute back what I've scraped from various forums:
.....

Nice riveale.
By the way, does the blade 14" has the same problem of keys being ignored when typing in linux?

Last edited by labotsirc (2013-09-10 20:33:44)

Offline

#14 2013-09-11 06:50:32

riveale
Member
Registered: 2013-09-10
Posts: 49
Website

Re: [SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

No, I have not encountered the "skipped key" thing (I read about it, but it seemed to be only on last year's generation of the blade?).

Richard

Offline

#15 2013-09-11 17:57:24

labotsirc
Member
Registered: 2013-08-21
Posts: 81

Re: [SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

riveale wrote:

No, I have not encountered the "skipped key" thing (I read about it, but it seemed to be only on last year's generation of the blade?).

Richard

mmm weird. I got the razer blade pro 2013 which was launched on pair with the blade 14". Maybe it is the SBUI that is getting in the way

Offline

#16 2013-09-13 01:26:08

riveale
Member
Registered: 2013-09-10
Posts: 49
Website

Re: [SOLVED] Razer Blade Pro -- Failed to initialize NVIDIA GPU

Hm, yea I could definitely see the switchblade thing getting in the way.

What is really needed is to convince razer that putting a small amount of resources into linux support is going to be worth it for them in the long run. With all the press recently regarding steam on linux, it seems it should be possible since they'd be able to compete strongly in that part of the market with their awesome laptops. I guess if it turns out that stuff like the keyboard/mouse are still encumbered by patents they might not be able to release a free driver, which would suck. They did say it was proprietary...

Richard

Offline

Board footer

Powered by FluxBB