Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Latest Nvidia Driver, bumblebee, kernel and u-effing-dev

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
RayDude
Advocate
Advocate
User avatar
Posts: 2195
Joined: Sat May 29, 2004 6:11 am
Location: San Jose, CA

Latest Nvidia Driver, bumblebee, kernel and u-effing-dev

  • Quote

Post by RayDude » Mon Apr 21, 2014 4:28 pm

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?
Last edited by RayDude on Mon Apr 21, 2014 7:47 pm, edited 1 time in total.
Some day there will only be free software.
Top
djdunn
l33t
l33t
User avatar
Posts: 813
Joined: Sun Dec 26, 2004 2:21 am

  • Quote

Post by djdunn » Mon Apr 21, 2014 7:18 pm

I'm shooting in the dark, perhaps eudev would behave better than udev?
“Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”

― Plato
Top
RayDude
Advocate
Advocate
User avatar
Posts: 2195
Joined: Sat May 29, 2004 6:11 am
Location: San Jose, CA

  • Quote

Post by RayDude » Mon Apr 21, 2014 7:51 pm

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.
Top
lexming
Tux's lil' helper
Tux's lil' helper
Posts: 123
Joined: Thu Jan 04, 2007 3:26 pm
Location: Barcelona

  • Quote

Post by lexming » Thu Apr 24, 2014 2:21 pm

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: Select all

# 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.
Top
Yuriy Skvortsov
n00b
n00b
Posts: 33
Joined: Sun Dec 30, 2012 4:01 pm
Location: Odessa, Ukraine

  • Quote

Post by Yuriy Skvortsov » Sun May 04, 2014 3:40 pm

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: Select all

[ 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: Select all

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.
Top
Yuriy Skvortsov
n00b
n00b
Posts: 33
Joined: Sun Dec 30, 2012 4:01 pm
Location: Odessa, Ukraine

  • Quote

Post by Yuriy Skvortsov » Wed May 07, 2014 11:21 am

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.
Top
steveL
Watchman
Watchman
Posts: 5153
Joined: Wed Sep 13, 2006 1:18 pm
Location: The Peanut Gallery

  • Quote

Post by steveL » Wed May 07, 2014 12:11 pm

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

Nvidia modules tend not to work well with other video things going on, ime.
Top
Yuriy Skvortsov
n00b
n00b
Posts: 33
Joined: Sun Dec 30, 2012 4:01 pm
Location: Odessa, Ukraine

  • Quote

Post by Yuriy Skvortsov » Wed May 07, 2014 12:22 pm

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.
Top
Yuriy Skvortsov
n00b
n00b
Posts: 33
Joined: Sun Dec 30, 2012 4:01 pm
Location: Odessa, Ukraine

  • Quote

Post by Yuriy Skvortsov » Thu May 08, 2014 12:27 pm

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.
Top
cyberjun
Apprentice
Apprentice
User avatar
Posts: 293
Joined: Sun Nov 06, 2005 5:19 am

  • Quote

Post by cyberjun » Fri May 09, 2014 2:20 am

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

--cyberjun
Top
Yuriy Skvortsov
n00b
n00b
Posts: 33
Joined: Sun Dec 30, 2012 4:01 pm
Location: Odessa, Ukraine

  • Quote

Post by Yuriy Skvortsov » Fri May 09, 2014 10:18 am

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?
Top
Yuriy Skvortsov
n00b
n00b
Posts: 33
Joined: Sun Dec 30, 2012 4:01 pm
Location: Odessa, Ukraine

  • Quote

Post by Yuriy Skvortsov » Fri May 09, 2014 6:56 pm

Just noticed the same effect again and it was for sure not during youtubing or any other video activity..
Top
cyberjun
Apprentice
Apprentice
User avatar
Posts: 293
Joined: Sun Nov 06, 2005 5:19 am

  • Quote

Post by cyberjun » Sat May 10, 2014 12:50 pm

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

--cyberjun
Top
Yuriy Skvortsov
n00b
n00b
Posts: 33
Joined: Sun Dec 30, 2012 4:01 pm
Location: Odessa, Ukraine

  • Quote

Post by Yuriy Skvortsov » Sat May 10, 2014 8:46 pm

cyberjun wrote:please check this one instead: http://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!
Top
RayDude
Advocate
Advocate
User avatar
Posts: 2195
Joined: Sat May 29, 2004 6:11 am
Location: San Jose, CA

  • Quote

Post by RayDude » Fri May 23, 2014 11:32 pm

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.
Top
Post Reply

15 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic