You are not logged in.

#1 2013-08-08 12:27:42

martin155
Member
From: Germany
Registered: 2013-08-08
Posts: 5

help? optimus/bumblebee force shutoff

Hi @ everybody,

I've installed Arch (3.10.3-1-ARCH) on my new Vaio SVS13A2 notebook. Works like a charm, except of the graphics switching thing...
I've installed the intel+intel-dri and nvidia driver, bumblebee, bbswitch, as well as primus.


So first of all I check if bumblebee deamon is running and then turn the craphics on:

# systemctl | grep bumblebee
bumblebeed.service          loaded active running   Bumblebee C Daemon

# tee /proc/acpi/bbswitch <<<ON
ON

# cat /proc/acpi/bbswitch
0000:01:00.0 ON

# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 640M LE] (rev a1)[/ins]

#modprobe nvidia
dmesg | grep -C 10 bbswitch:
[    2.361897] iTCO_vendor_support: vendor-support=0
[    2.363428] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.10
[    2.363486] iTCO_wdt: Found a Panther Point TCO device (Version=2, TCOBASE=0x0460)
[    2.363612] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
[    2.393956] systemd-udevd[156]: renamed network interface eth0 to enp4s0
[    2.417337] systemd-udevd[165]: renamed network interface wlan0 to wlp2s0
[    2.420532] [drm] GMBUS [i915 gmbus dpd] timed out, falling back to bit banging on pin 6
[    2.435022] fbcon: inteldrmfb (fb0) is primary device
[    2.450563] iwlwifi 0000:02:00.0: L1 Enabled; Disabling L0S
[    2.457345] iwlwifi 0000:02:00.0: Radio type=0x2-0x1-0x0
[    2.476037] bbswitch: version 0.7
[    2.476040] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[    2.476042] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[    2.476090] bbswitch: detected an Optimus _DSM function
[    2.476098] pci 0000:01:00.0: enabling device (0006 -> 0007)
[    2.476123] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[    2.477101] bbswitch: disabling discrete graphics
[    2.491352] pci 0000:01:00.0: power state changed by ACPI to D3cold
 [...]
[  147.364282] bbswitch: enabling discrete graphics
[  147.573363] pci 0000:01:00.0: power state changed by ACPI to D0
[  283.321906] nvidia: module license 'NVIDIA' taints kernel.
[  283.321910] Disabling lock debugging due to kernel taint
[  283.326888] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=none
[  283.327030] [drm] Initialized nvidia-drm 0.0.0 20130102 for 0000:01:00.0 on minor 1
[  283.327035] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  325.15  Wed Jul 31 18:50:56 PDT 2013

If I type:

# optirun -vv glxgears
 or
#primusrun glxgears

then the notebook just goes instant off, like i pulled the battery. Can't be healthy... Please help.
glxgears is working normally without optirun/primusrun.

This is what optirun displays, before the whole system just shutoff:

#optirun -vv glxgears
[   51.955411] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[   51.955626] [INFO]Configured driver: nvidia
[   51.955738] [DEBUG]optirun version 3.2.1 starting...
[   51.955746] [DEBUG]Active configuration:
[   51.955750] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[   51.955753] [DEBUG] X display: :8
[   51.955764] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia
[   51.955767] [DEBUG] Socket path: /var/run/bumblebee.socket
[   51.955769] [DEBUG] Accel/display bridge: primus
[   51.955780] [DEBUG] VGL Compression: proxy
[   51.955783] [DEBUG] VGLrun extra options: 
[   51.955787] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus

here are my configs:

bumblebee.conf

[bumblebeed]
VirtualDisplay=:8
KeepUnusedXServer=false
ServerGroup=bumblebee
TurnCardOffAtExit=false
NoEcoModeOverride=false
Driver=nvidia
XorgConfDir=/etc/bumblebee/xorg.conf.d

[optirun]
Bridge=primus
VGLTransport=proxy
PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
AllowFallbackToIGC=false

[driver-nvidia]
KernelDriver=nvidia
PMMethod=auto
LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia
XorgModulePath=/usr/lib/nvidia/xorg/,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

xorg.conf.nvidia:

Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"
    Option "ProbeAllGpus" "false"
    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection

Hope there is no information missing.
Thanks in advance for your help.
Martin

Last edited by martin155 (2013-08-08 12:41:44)

Offline

#2 2013-08-08 12:54:29

Lekensteyn
Member
From: Netherlands
Registered: 2012-06-19
Posts: 192
Website

Re: help? optimus/bumblebee force shutoff

What if you set PMMethod=none in /etc/bumblebee/bumblebee.conf and reboot?

Offline

#3 2013-08-08 13:24:39

martin155
Member
From: Germany
Registered: 2013-08-08
Posts: 5

Re: help? optimus/bumblebee force shutoff

Thanks for your answer.
I changed "Bridge=" from 'primus' back to 'auto' and edited "PMMethod=" to 'none', as you said.

This is the new output:

# optirun -vv glxgears
[  161.906109] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  161.906342] [INFO]Configured driver: nvidia
[  161.906484] [DEBUG]optirun version 3.2.1 starting...
[  161.906492] [DEBUG]Active configuration:
[  161.906495] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  161.906498] [DEBUG] X display: :8
[  161.906510] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia
[  161.906514] [DEBUG] Socket path: /var/run/bumblebee.socket
[  161.906518] [DEBUG] Accel/display bridge: auto
[  161.906521] [DEBUG] VGL Compression: proxy
[  161.906525] [DEBUG] VGLrun extra options: 
[  161.906528] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[  161.906557] [DEBUG]Using auto-detected bridge virtualgl
[  166.801783] [INFO]Response: No - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please

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

[  166.801803] [DEBUG]Socket closed.
[  166.801830] [ERROR]Aborting because fallback start is disabled.
[  166.801839] [DEBUG]Killing all remaining processes.

BTW: I cannot turn the nvidia-gpu on or off anymore

# tee /proc/acpi/bbswitch <<<ON
tee: /proc/acpi/bbswitch: No such file or directory
ON

€dit: same with 'Bridge=primus'

Last edited by martin155 (2013-08-08 13:34:36)

Offline

#4 2013-08-08 16:21:58

Lekensteyn
Member
From: Netherlands
Registered: 2012-06-19
Posts: 192
Website

Re: help? optimus/bumblebee force shutoff

Well.. if you read the comment above the PMMethod option, you would see that bbswitch won't be used if you set it to "none". "primus" or "virtualgl" as bridge won't make a difference if the X server fails to start. Check your kernel log (e.g. by using journalctl) for more details.

Can you try to isolate the faulty component? It seems that bbswitch+nvidia = power off, but what about using Driver=nouveau?
What if you manually (with bumblebeed disabled) run (after a reboot without bumblebeed running nor nvidia loaded):

sudo modprobe -v bbswitch
sudo tee /proc/acpi/bbswitch <<<OFF
sudo tee /proc/acpi/bbswitch <<<ON
sudo modprobe -v nvidia

Does that crash already? If not, what if you follow it up with:

sudo modprobe -v -r nvidia
sudo tee /proc/acpi/bbswitch <<<OFF

Offline

#5 2013-08-08 16:54:39

martin155
Member
From: Germany
Registered: 2013-08-08
Posts: 5

Re: help? optimus/bumblebee force shutoff

Yeah, you're right. Should have read the comment above PMMethod. I've now read the rest of the config at least wink

Lekensteyn wrote:

Can you try to isolate the faulty component? It seems that bbswitch+nvidia = power off, but what about using Driver=nouveau?
What if you manually (with bumblebeed disabled) run (after a reboot without bumblebeed running nor nvidia loaded):

every command you wrote works like a charm:

# modprobe -v bbswitch
insmod /lib/modules/3.10.3-1-ARCH/extramodules/bbswitch.ko.gz 
# tee /proc/acpi/bbswitch <<<OFF
OFF
# tee /proc/acpi/bbswitch <<<ON
ON
# cat /proc/acpi/bbswitch
0000:01:00.0 ON
# modprobe -v nvidia
insmod /lib/modules/3.10.3-1-ARCH/extramodules/nvidia.ko.gz 
# modprobe -v -r nvidia
rmmod nvidia
# tee /proc/acpi/bbswitch <<<OFF
OFF
# cat /proc/acpi/bbswitch
0000:01:00.0 OFF

Turning the card on/off and loading nvidia kernel module via modprobe works.
There seems to be sth wrong with bumblebee?! I reinstalled everything several times / deleted config etc, before I opened this thread.

Oh, you're right Lekenstyn: I forgot to mention that it's the same with nouveau.
So there has to be sth wrong with bumblebee, right?
But what? I'm totally new to Linux-Optimus.

€dit: I'm not totally new to Arch, but why the heck is journalctl only outputting logs upto 2nd Aug? strange...
Well, this has to wait a sec, gotta go to the grocery

Last edited by martin155 (2013-08-08 17:04:48)

Offline

#6 2013-08-08 17:44:41

Lekensteyn
Member
From: Netherlands
Registered: 2012-06-19
Posts: 192
Website

Re: help? optimus/bumblebee force shutoff

journalctl is not known for its robustness when your system gets powered down abnormally. Things got better with recent releases, but is still flushes logs only every five minutes. See https://wiki.archlinux.org/index.php/Rs … l_messages for more reliable logging.

By "same as nouveau", did you mean that you've tried Driver=nouveau in bumblebee.conf and rebooting? Can you paste your kernel log somewhere? (http://fpaste.org/ or something)

Offline

#7 2013-08-08 18:49:08

martin155
Member
From: Germany
Registered: 2013-08-08
Posts: 5

Re: help? optimus/bumblebee force shutoff

First of all, thanks alot for your time smile I really appreaciate it.
I've installed rsyslog. This is my unshortened log:
http://ur1.ca/eyk4s

with "it's the same with nouveau" I mean, the behaviour is execty the same as with nvidia. The system just shuts itself off, if I start nouveau and then run optirun/primusrun glxgears.
Strange, because I can then only think of bumbebee being the problem. Maybe I should install it via AUR and not the repository...

€dit: I installed bumblebee-git and primus-git. Still not working, same failure: the system instantly turns off.

€dit2: It really, really got on my nerves, so I reinstalled the complete os. I've got the base now, so what should I do next? Is there a recommended order?
GPU-Drivers with bumblebee first and then the x-server?
I want to make no mistakes anymore, so I get a high chance to succeed.
Would you try nvidia drivers first or start with nouveau?
When I installed bumblebee-git from AUR on the last os, it had it's own nvidia-beta and nvidia-utils-beta drivers in ~/builds directory. Does bumblebee need some special drivers, or shall I just install the nvidia and bumblebee from repository?

Thanks in advance

Last edited by martin155 (2013-08-09 18:13:30)

Offline

#8 2013-08-10 12:05:28

sano
Member
Registered: 2012-02-11
Posts: 114

Re: help? optimus/bumblebee force shutoff

martin155 wrote:

...

# optirun -vv glxgears
...

...

Do you really run that as root, as # does indicate?

Offline

#9 2013-08-11 20:14:50

martin155
Member
From: Germany
Registered: 2013-08-08
Posts: 5

Re: help? optimus/bumblebee force shutoff

sano wrote:
martin155 wrote:

...

# optirun -vv glxgears
...

...

Do you really run that as root, as # does indicate?

Yes, I did. But I also did it with a non-root from group 'users', and it's the same.
So any suggestions on what to install first?

Offline

Board footer

Powered by FluxBB