Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Latest Nvidia Driver, bumblebee, kernel and u-effing-dev
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1242
Location: San Jose, CA

PostPosted: Mon Apr 21, 2014 4:28 pm    Post subject: Latest Nvidia Driver, bumblebee, kernel and u-effing-dev Reply with quote

I updated my gentoo yesterday. Upon reboot all hell broke loose as one CPU ran at 100% and slowly ate all memory until the swap was almost full. I just barely rebooted it in time.

I've had this problem before so I immediately forgot what had happened before and googled it.

The problem is simple: The udev tries to load the nvidia kernel, but doesn't know that bumblebee has switched it off. The Nvidia driver says, "Yo axehandle, they ain't no effing nvidia card here!" and the kernel unloads nvidia.

Somewhere, some how someone (probably the kernel) loses a little bit of memory (fails to release it) in this process.

This happens over and over and over again until the system is unusable and has to be rebooted.

I HATE THIS BUG WITH A PASSION AND I SEE IT EVERY FEW MONTHS WITH NEW NVIDIA DRIVERS.

The fix has always been the same: Enable the stupid Nvidia Card (kill battery life) and let the stupid nvidia module load.

I did that late last night, but yanno? I still get messages in the UDEV KERNEL dance (`udevadm monitor`). Now they are biotching about ACPI and NVIDIA and some magical module I've never heard of, the Nvidia ACPI module driver or something like that. And you know what? That process takes 5-10% of my CPU and will eventually fill all of available memory as well.

The fix to this mess was simply to go back to an old version of the Nvidia driver. udevadm monitor is clean with 331.67 drivers.

UPDATE: But 331.67 nvidia drivers are Farked! I lost a bunch of libraries and everything stopped working! 334.21-r3 is the one you want.

Does anyone know more about this? Is there a permanent fix short of running the nvidia driver all the time, as the primary display?
_________________
Some day there will only be free software.


Last edited by RayDude on Mon Apr 21, 2014 7:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
djdunn
l33t
l33t


Joined: 26 Dec 2004
Posts: 719
Location: Arrakis

PostPosted: Mon Apr 21, 2014 7:18 pm    Post subject: Reply with quote

I'm shooting in the dark, perhaps eudev would behave better than udev?
_________________
A process cannot be understood by stopping it. Understanding must move with the flow of the process, must join it and flow with it.

-The First Law of Mentat
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1242
Location: San Jose, CA

PostPosted: Mon Apr 21, 2014 7:51 pm    Post subject: Reply with quote

djdunn wrote:
I'm shooting in the dark, perhaps eudev would behave better than udev?


Hmmm First I've heard of the beastie.

*googles around a bit*

I see. I think I'll try it out.

Thanks.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
lexming
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2007
Posts: 121
Location: Barcelona

PostPosted: Thu Apr 24, 2014 2:21 pm    Post subject: Reply with quote

In the case that you are in a Intel+Nvidia setup, it is not necessary to load the nvidia module at all. You should blacklist it to avoid such problems during bootup.

Code:
# cat /etc/modprobe.d/blacklist.conf
blacklist nvidia


Then bbswitch will poweroff the gpu and the nvidia module won't be loaded unless optirun/primusrun is called.
Back to top
View user's profile Send private message
Yuriy Skvortsov
n00b
n00b


Joined: 30 Dec 2012
Posts: 33
Location: Odessa, Ukraine

PostPosted: Sun May 04, 2014 3:40 pm    Post subject: Reply with quote

Hi!

I have kind of same problem with nvidia & co for quite a week. The udev goes nuts, uses 100% CPU and leaks memory. Nvidia module constantly appears and disappears at lsmod. I observe this behaviour on gentoo-sources-3.12.13, ck-sources-3.12.13, nvidia-drivers-334.21-r3, nvidia-drivers-337.12 in any combination. For the record: bbswitch-0.8 .

Typical dmesg output in the case is:

Code:

[ 8238.041217] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:0fd1)
NVRM: installed in this system is not supported by the 334.21
NVRM: NVIDIA Linux driver release.  Please see 'Appendix
NVRM: A - Supported NVIDIA GPU Products' in this release's
NVRM: README, available on the Linux driver download page
NVRM: at www.nvidia.com.
[ 8238.041229] nvidia: probe of 0000:01:00.0 failed with error -1
[ 8238.042414] NVRM: The NVIDIA probe routine failed for 1 device(s).
[ 8238.042418] NVRM: None of the NVIDIA graphics adapters were initialized!
[ 8238.042419] [drm] Module unloaded
[ 8238.042511] NVRM: NVIDIA init module failed!
[ 8238.073394] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=none,decodes=none:owns=none
[ 8238.073424] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:0fd1)
NVRM: installed in this system is not supported by the 334.21
NVRM: NVIDIA Linux driver release.  Please see 'Appendix
NVRM: A - Supported NVIDIA GPU Products' in this release's
NVRM: README, available on the Linux driver download page
NVRM: at www.nvidia.com.
[ 8238.073434] nvidia: probe of 0000:01:00.0 failed with error -1
[ 8238.074473] NVRM: The NVIDIA probe routine failed for 1 device(s).
[ 8238.074474] NVRM: None of the NVIDIA graphics adapters were initialized!
[ 8238.074475] [drm] Module unloaded
[ 8238.074541] NVRM: NVIDIA init module failed!


I guess there was no problem on gentoo-sources-3.10.25 and some older nvidia-drivers.

Also there are some ACPI warnings at startup:
Code:

ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20130725/nsarguments-95)


Thanks for the suggestion to blacklist nvidia, will see if it helps.
Back to top
View user's profile Send private message
Yuriy Skvortsov
n00b
n00b


Joined: 30 Dec 2012
Posts: 33
Location: Odessa, Ukraine

PostPosted: Wed May 07, 2014 11:21 am    Post subject: Reply with quote

After blacklisting nvidia module things gone better, not perfect though. Sometimes nvidia just loads somehow and bbswitch turns on totally on its own. Do you have guys any ideas how can one figure out what kind of stuff pushes it on? lsmod shows "0" in "used by" column about nvidia module, btw.
Back to top
View user's profile Send private message
steveL
Advocate
Advocate


Joined: 13 Sep 2006
Posts: 3312
Location: The Peanut Gallery

PostPosted: Wed May 07, 2014 12:11 pm    Post subject: Reply with quote

If you're blacklisting it, why build it at all?

Nvidia modules tend not to work well with other video things going on, ime.
Back to top
View user's profile Send private message
Yuriy Skvortsov
n00b
n00b


Joined: 30 Dec 2012
Posts: 33
Location: Odessa, Ukraine

PostPosted: Wed May 07, 2014 12:22 pm    Post subject: Reply with quote

steveL wrote:
If you're blacklisting it, why build it at all?


It kind of works with the optirun thing and I feel it just ok to have a possibility to run something on nvidia in case I really need it (a rare-to-no case, honestly). What I do not want to happen is the bb switching ON without my explicit will. So the question is who and why touches bbswitch or bumblebee or whatever, you know, and how could it be prevented.
Back to top
View user's profile Send private message
Yuriy Skvortsov
n00b
n00b


Joined: 30 Dec 2012
Posts: 33
Location: Odessa, Ukraine

PostPosted: Thu May 08, 2014 12:27 pm    Post subject: Reply with quote

With bumblebee daemon stopped i can manually rmmod nvidia; echo OFF > /proc/acpi/bbswitch and it does switch the nvidia off. But then *somehow* in a few hours it suddenly switches ON again and loads nvidia module. The bumblebee stays stopped (I've checked). This behaviour really confuses me.
Back to top
View user's profile Send private message
cyberjun
Apprentice
Apprentice


Joined: 06 Nov 2005
Posts: 291

PostPosted: Fri May 09, 2014 2:20 am    Post subject: Reply with quote

@Yuriy: Does this happen when you run youtube videos? https://forums.gentoo.org/viewtopic-t-989048.html

--cyberjun
Back to top
View user's profile Send private message
Yuriy Skvortsov
n00b
n00b


Joined: 30 Dec 2012
Posts: 33
Location: Odessa, Ukraine

PostPosted: Fri May 09, 2014 10:18 am    Post subject: Reply with quote

cyberjun wrote:
@Yuriy: Does this happen when you run youtube videos?

I had the same suspicion but I definitely can not reproduce it in a controllable way.
And why should it be related to the thread on vlc you've provided?
Back to top
View user's profile Send private message
Yuriy Skvortsov
n00b
n00b


Joined: 30 Dec 2012
Posts: 33
Location: Odessa, Ukraine

PostPosted: Fri May 09, 2014 6:56 pm    Post subject: Reply with quote

Just noticed the same effect again and it was for sure not during youtubing or any other video activity..
Back to top
View user's profile Send private message
cyberjun
Apprentice
Apprentice


Joined: 06 Nov 2005
Posts: 291

PostPosted: Sat May 10, 2014 12:50 pm    Post subject: Reply with quote

my mistake. posted the wrong link. please check this one instead: https://forums.gentoo.org/viewtopic-t-988732.html

--cyberjun
Back to top
View user's profile Send private message
Yuriy Skvortsov
n00b
n00b


Joined: 30 Dec 2012
Posts: 33
Location: Odessa, Ukraine

PostPosted: Sat May 10, 2014 8:46 pm    Post subject: Reply with quote

cyberjun wrote:
please check this one instead: https://forums.gentoo.org/viewtopic-t-988732.html

Oh, thank you so much! It was really the reason. After disabling the "hardware acceleration" checkbox in flash player, everything went the right way, finally!
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1242
Location: San Jose, CA

PostPosted: Fri May 23, 2014 11:32 pm    Post subject: Reply with quote

I'd like to post an update and thank you all for continuing this thread.

By blacklisting nvidia, configuring flash to not use hw_acceleration (stupid flash dialog was unclickable, I'm not sure how I fixed it), the nvidia module is not loading so my system is running much cooler.

Thanks much!
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum