You are not logged in.

#1 2014-05-30 11:18:22

thepasto
Member
From: trash:///
Registered: 2009-03-16
Posts: 56

Bumblebee nvidia problems

Hi guys, here the problem with my laptop Asus N56V:

I always find my nvidia card turned ON after boot, so i try to turn it off manully, restarting bumblebee service:

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

sudo systemctl restart bumblebeed.service 
● bumblebeed.service - Bumblebee C Daemon
   Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled)
   Active: active (running) since ven 2014-05-30 13:00:01 CEST; 4s ago
 Main PID: 17774 (bumblebeed)
   CGroup: /system.slice/bumblebeed.service
           └─17774 /usr/sbin/bumblebeed

mag 30 13:00:01 laptop systemd[1]: Started Bumblebee C Daemon.
mag 30 13:00:01 laptop bumblebeed[17774]: [ 1295.012296] [INFO]/usr/sbin/bumblebeed 3.2-15-g2073f85 started
mag 30 13:00:01 laptop bumblebeed[17774]: modprobe: FATAL: Module nvidia is in use.
mag 30 13:00:04 laptop bumblebeed[17774]: [ 1298.021452] [ERROR]Unloading nvidia driver timed out.

so i need to run

sudo rmmod nvidia_uvm && sudo systemctl restart bumblebeed.service

and i now i get my nvidia turned OFF as well.

 cat /proc/acpi/bbswitch 
0000:01:00.0 OFF

After a while something wake up my nvidia again, i don't run any optirun/primusrun command, and i need to unload nvidia_uvm module and restart bumblebeed again.

here my dmesg

[ 1226.767428] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[ 1226.767529] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=none,decodes=none:owns=none
[ 1226.768002] [drm] Initialized nvidia-drm 0.0.0 20130102 for 0000:01:00.0 on minor 1
[ 1226.768020] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  337.19  Tue Apr 29 19:58:58 PDT 2014
[ 1226.771008] nvidia 0000:01:00.0: irq 47 for MSI/MSI-X
[ 1226.788447] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1226.788537] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1226.788643] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1226.788691] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1226.788737] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1226.788783] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1226.788888] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1226.788935] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1228.438151] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1228.816340] nvidia_uvm: Loaded the UVM driver, major device number 249
[ 1832.338374] nvidia 0000:01:00.0: irq 47 for MSI/MSI-X
[ 1832.345320] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1832.345361] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1832.345420] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1832.345440] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1832.345458] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1832.345476] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1832.345518] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1832.345536] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1832.345863] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 2151.636360] nvidia_uvm: Unregistered the UVM driver
[ 2151.667472] [drm] Module unloaded
[ 2151.669713] bbswitch: disabling discrete graphics
[ 2151.669730] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 2151.680387] pci 0000:01:00.0: Refused to change power state, currently in D0

I'd like to know how to find what is turning on my discrete card, and use it only when i want. Any help is really appreciated

Thanks

Offline

#2 2014-06-02 13:53:10

xvzf
Member
Registered: 2014-05-18
Posts: 86

Re: Bumblebee nvidia problems

Hello,
acpid is installed?

Offline

#3 2014-06-02 18:29:48

thepasto
Member
From: trash:///
Registered: 2009-03-16
Posts: 56

Re: Bumblebee nvidia problems

yes it is installed and running.

● acpid.service - ACPI event daemon
   Loaded: loaded (/usr/lib/systemd/system/acpid.service; enabled)
   Active: active (running) since dom 2014-06-01 16:00:29 CEST; 1 day 4h ago
 Main PID: 579 (acpid)
   CGroup: /system.slice/acpid.service
           └─579 /usr/bin/acpid -f

Offline

#4 2014-06-03 18:03:08

xvzf
Member
Registered: 2014-05-18
Posts: 86

Re: Bumblebee nvidia problems

Hm,
bbswitch works correctly, but ACPI does not allow to switch off the card, this is a bug in the ACPI module, I think

You may try out this kernel: https://wiki.archlinux.org/index.php/repo-ck
For your Notebook it should be  ck-ivybridge

And a comment from me: This laptop looks f** awesome!

Cheers
Please report if it works. If you don't know how to boot the new kernel, have a look in the wiki, and if this doesn't solve your install problems, write back here smile

Offline

#5 2014-06-04 15:43:58

thepasto
Member
From: trash:///
Registered: 2009-03-16
Posts: 56

Re: Bumblebee nvidia problems

thanks for your answer, i already tried with a self compiled kernel with the same result as the arch's one.
I finally figured out what was the problem... btw for me it's really weird!!

I wrote an easy bash script to manage screen autobrightness. it takes a shot from my webcam and change screen brightness. Here's the source if someone has some idea.
Once i stop the sctipt my nvidia card is turned off as well.

Many thanks for your help!!

PS. Yes, it's an amazing laptop (i7-3630QM up to 3,4ghz,16gb ram, nvidia GT 650M, 256gb ssd), with a great linux support, i can confirm it!!

Offline

#6 2014-06-05 10:41:28

xvzf
Member
Registered: 2014-05-18
Posts: 86

Re: Bumblebee nvidia problems

Hi,

I think the 'convert' command uses GPU support.

I got an i7-4702 with 20Gigs RAM and a GTX 760m, so i know this hardware potential;)

Offline

#7 2014-06-09 14:30:48

strangelyput
Member
Registered: 2014-06-09
Posts: 8

Re: Bumblebee nvidia problems

Did you manage to solve those acpi/bbswitch messages?
I also have a gt650M and I have a similar error. However I noticed that the despite the message "pci 0000:01:00.0: Refused to change power state, currently in D0" bbswitch is actually able to disable the nvidia card, only the fan continues to work.
At least it seems that way since

cat /proc/acpi/bbswitch

returns

0000:01:00.0 OFF

and

0000:01:00.0 ON

when it is supposed to.
Does this happen to you? Does anyone know how to handle the fan with bbswitch? Or is the card not powering off at all?

Last edited by strangelyput (2014-06-09 14:33:03)

Offline

#8 2014-06-09 19:01:34

thepasto
Member
From: trash:///
Registered: 2009-03-16
Posts: 56

Re: Bumblebee nvidia problems

hi, as xvzf said above, my problem was about imagemagick convert command.
It was using nvidia opencl, so for me removing this package solved the problem.
My fans now are working as well and my temps are around 40°

Offline

#9 2014-06-24 03:03:38

xiaq
Member
From: somewhere in China...
Registered: 2011-03-06
Posts: 89

Re: Bumblebee nvidia problems

I ran across the same problem, but with my own CUDA program. And here is what I found out:

Bumblebee should be able to turn off the NVIDIA GPU automatically after CUDA is no longer active. And it was able to, but after the introduction of the nvidia-uvm kernel module with CUDA 6.0 this feature is broken. This is a known bug and expected to be fixed before Bumblebee 4.0: https://github.com/Bumblebee-Project/Bu … issues/565

Offline

Board footer

Powered by FluxBB