-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Debian] Nvidia Card randomly turning on #144
Comments
Managed to get a clip of /var/log/messages right after (I think) the card turned on
|
What is that "Hardware Error"? After blacklisting, did you run |
Hi Lekensteyn, I just updated Bumblebee from http://suwako.nomanga.net/ .... Going to do some things and see if the problem is still present. I did not update-initramfs, I've run that now. |
update-initramfs just makes sure that the blacklist applies at next boot. When /dev/nvidia exist, it will turn your card on at random. So, by blacklisting, you prevent that from happening on the next boot until you use the nvidia card through optirun. |
After doing Thank you Lekensteyn for your help. |
It appears I'm still having this issue. I have the nvidia module blacklisted in my /etc/modprobe.d/nvidia.conf, have run update-initramfs -u. |
Does |
I'm noting the appearance of
|
Whenever the card is enabled, you can disable it by triggering a start/stop action: |
Hi Lekensteyn, I guess that's a suitable workaround. Thank you. Closing this issue. |
@Hoverbear I've noticed that the |
Hi Lekensteyn, I actually ended up erasing that installation and trying F17, however I'm back to debian and no longer seem to be having the issue. |
Ah, with the proprietary nvidia driver? |
Yes, in fact. On Tue, May 8, 2012 at 6:26 AM, Peter <
|
Hi Lekensteyn, EDIT: manually running 'optirun true' is not really helping because often when I am not at my machine, nvidia will decide to activate the card resulting in an increase in temperature between 5 and 20 degrees |
Do you happen to use CUDA? |
Not that I know. I haven't installed any CUDA related packages consciously. I use the nvidia proprietary driver, my gpu is NVS 4200M inside a T420s Thinkpad. Anecdotally, the only other person I have seen with this problem also uses a T420 with Arch Linux (reference: https://bbs.archlinux.org/viewtopic.php?pid=1112688#p1112688). |
libvdpau is mentioned, do you have that installed? Can you try modifying the C source to delete /lib/nvidia0 and /lib/nvidiactl after disabling the video card? Have a look at src/switchers/switchers.c (iirc) |
yes, I have libvdpau installed. Working on modifying the C source at the moment. One thing I noticed is that when I do |
Yeah, that is exactly the problem here. libvdpau probes for the device which in its turn loads the driver and enables the card. That is really, really bad and totally undesirable. I'm curious of removing the /dev/nvidia{ctl,0} stuff helps. |
running my own version of bumblebee now with this change: hni@26f23f2 Will report back how it works, looks good so far. |
So far I have no issues. It might be worth adding something similar to the main branch to expose it to more users. |
It may be worth filling this issue on nvnews.net. The char devices are supposed to get unregistered when the module is unloaded. |
Sorry, I am not familiar with that website. Is that an official NVIDIA On 17 June 2012 14:26, Peter
|
Yup, that one. |
thanks to you both. I am settling in after a large meal and watching Batman Begins (2005). will try these hacks tomorrow, and also the "clean" way from hni's package. ultimately, i want to make a debianized package version available thru repository, for Wheezy and SolusOS. maybe I should contact the guy with the current debian repo too, he must know about this. i know this can be fixed on my machine, but feel its more useful to make it easily available to all (without them going thru 100 steps only to find it fails). will post then, thankyou. |
@nxdefiant @Lekensteyn You say "If xorg runs as root, the device files should be created". xorg is indeed running as root, and the files were not recreated. nxdefiant's suggestion of creating /etc/udev/rules.d/99_nvidia.rules: |
@gnetwork-git Hopefully you did not add the acpi-handle-hack, that was something machines-specific ;) Adding the 99_nvidia.rules thing does not compromise security. Adding a user to the video group allows you to restrict access to a select group. It should be relatively safe, though it also allows members to access other /dev/dri/card* devices. I am not sure what the exact implications are, other than having a direct line with the kernel video driver. |
@gnetwork-git |
@hni i used the one from https://github.com/hni/Bumblebee/tarball/master and merged it with the standard. @Lekensteyn Run as root and insert your username where appears $USER:
Will you be doing much more on Bumblebee, or winding down due to coming Prime release, maybe 6 months away? - though I will believe it when I see it! |
I'm wondering. I always thought beeing a member of the video group was required for dri to work? |
@hni if your fork works well, i'm happy to try it, and make available as repo. |
@gnetwork-git the download link is https://github.com/hni/Bumblebee/tarball/develop. Instructions are the same as for the unpatched bumblebee. As written further above, I have tried to raise this issue in the nvidia forums so that the fix can be included in the nvidia proprietary driver, but there has been no answer for roughly a month. Hence the question remains whether this patch should be included in mainline. I personally think udev is not the right place to handle this, but I have no strong feelings either way. If it is decided this patch should not be merged into mainline, I might merge it into my forked master and create an Arch Linux package for convenience. |
The devices are supposed to get removed on module unload. Why that isn't happening, I don't know. |
@hni tried that one too. sorry mate, the instructions for building your source cannot be the same as unpatched Bumblebee, you are missing files, thats why i had to merge it last time to try to make it work. @Lekensteyn "The devices are supposed to get removed on module unload. Why that isn't happening, I don't know." |
@gnetwork-git I'd expect the nvidia driver to take care of the devices themselves, but since it's closed source, everything could happen (or not). Building from git requres you to run |
ok i had another go, and always start with a clean install for surety. installed autoreconf then ran autoreconf -fi as suggested, then did ./configure with defaults for Wheezy as per http://wiki.debian.org/Bumblebee $ optirun /opt/VirtualGL/bin/glxspheres looks like nxdefiant hack is only one to work in Debian Wheezy for now. PS: i normally get well over 100 on framerates and Mpixels/sec on optirun glxspheres |
According to http://wiki.debian.org/NvidiaGraphicsDrivers/ you need to be in the video group to get any 3d acceleration. |
@gnetwork-git sorry can't help you with your problem. I built from my hni git 'develop' branch (see https://gist.github.com/3135959 for configure options, albeit tailored to Arch Linux), added myself to the bumblebee group (I am also member of the video group) and then everything works. |
@nxdefiant the only place on that page that mentions adding yourself to video group, is in reference to serious problem running i think adduser to video group may be required in our case as bumblebee is being subverted or bypassed, and normally bumblebee (the group which we are added to) takes care of things. @hni thanks for your work, its probably better suited for Arch. Wheezy can be fixed with one command and adduser to video group. |
gnetwork-git, it is in the problem section because the X-user is usually put into the video-group by the Debian-Installer. |
Sorry if this is redundant, but I tried 2-liner that was proposed for Wheezy and it worked. Thanks. |
seanlaguna glad it worked for you, it is current fix we use with SolusOS 2 which is based on Wheezy. |
Wow. I just read the following article, and it appears Nvidia may have to pay some more attention to /dev/nvidia0 - it is now a security issue... |
I've got the same problem on Arch Linux and bumblebeed 3.0.1. I appears there is no fix thus far? |
I never received a reply at the nvidia forums (http://www.nvnews.net/vbulletin/showthread.php?t=184442). I think both the udev workaround and the changes in my fork do the job. Would be great to have a patched package in Community though :-). |
imo the udev rule is the best solution to this. |
If a user has udev, install it in /lib/udev/rules.d (if you are a packager) or /etc/udev/rules.d (if you are a user). (GH-144)
@hni You should write the NVIDIA Linux team directly. Also, where are your changes? The udev rule should added to bumbleed installation routine. |
The OP said it does the same thing w/ the Nouveau driver, so maybe this is not an NVIDIA driver issue but a more general issue? |
Hi all,
Having some issues with Bumblebee on Debian Wheezy... Upon starting the daemon power management seems to be working alright, after awhile, it seems that the card just randomly turns on. At first I thought it was flash accessing the nvidia 32-bit glx or something, but I don't think that's the case.
Using Bumblebee with the Nvidia Binary driver (Though the problem exists with Nouveau as well)
Here's a grab from /var/log/messages:
The text was updated successfully, but these errors were encountered: