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
Cannot access secondary GPU: [drm] failed to set drm interface version: Permission denied #580
Comments
Yep, I get the same with nvidia-304.
|
Also running 14.04 but with a GeForce GT 620M and the xorg-edgers ppa. |
So I've purged the xorg-edgers ppa, no luck. Then purged the bumblebee ppa and reverted to the ubuntu packaged version, nope. I then removed all bumblebee settings and reinstalled it, with the ubuntu package and then with the bumblebee ppa, still no luck. Now I'm reinstalling xorg-edgers. Does anyone have idea what might cause this issue? |
I was having this problem too. For me, it was loading the default system config directory, see /var/log/Xorg.8.log:
xorg.conf.d contains 20-intel.conf which contains the intel card definition. But it seems the order of loading these devices was messed up and xorg attempted to load the intel card first before the nvidia card. since intel is already used by display :0 it barfs with the drm error. I got around this by appending "Screen" section to /etc/bumblebee/xorg.conf.nvidia and force it to use the "DiscreteNvidia" device as defined at the top of this config file:
|
I ran into this error today after a minor update of xserver-xorg-core and xserver-common. I'm glad I quickly found this workaround here because it works like a charm :) |
Have same error on Debian Jessie. Is there anybody who knows how to fix or wordaround the issue? Thank you in advance! P.S.: |
Had the same error, on clean install on the ubuntu 14.04, Nvidia GeFroce GT 630 M and @jkwong888's advice have helped me. Thank you. |
Thanks, @jkwong888 ! Worked perfectly! |
I am having the same problem. I want to add more debug log
|
Thanks @jkwong888! It worked for me too.
|
I have the same bug on Debian/Jessie, using bumblebee 3.2.1 and primus 20140711.
When running optirun, I see the following in dmesg:
@jkwong888's suggestion didn't help.
|
@theocrite I've reported the bug days ago into libdrm-intel1, but it seems linked to bumblebee: Unfortunately, i don't know how to link bug to another package in debian bug report system. |
@jkwong888's solution worked for me NVIDIA GeForce GT 650M |
@KMHouk jkwong solution does not work on Debian Jessie. It still fail to set the drm interface 1.4. It work with libdrm 2.4.56 but not with libdrm 2.4.58 |
If you install intel driver using linux-intel-graphics-installer then new Fix:
Ref: On Thu, Dec 18, 2014 at 3:58 AM, dbkblk notifications@github.com wrote:
|
Some news: On Debian Jessie, the bug has been fixed by the latest Nvidia driver (changelog here: http://metadata.ftp-master.debian.org/changelogs//non-free/n/nvidia-graphics-drivers/nvidia-graphics-drivers_340.65-2_changelog) This has nothing to do with bumblebee. It is just an incompatibility between the intel and nvidia drivers. |
No, for me it still doesn't work. I use nvidia-driver-bin version 340.65-2. But the problem persists. I use bumblebee version 3.2.1-7 and my nvidia-card is a GeForce 840M on a HP Pavilion 15-p020ng laptop with Debian Jessie. |
Same here. Geforce GT 540M and the latest Debian 8 Jessie. |
Step 1 and 5 are very important, you must correctly remove the repository. On Mon, Dec 29, 2014 at 6:53 AM, Martin Bárta notifications@github.com
|
Hello, I solved the problem, but it is a bit unclear to me why it now works: I use the nvidia-driver and added the following lines into the /etc/bumblebee/xorg.conf.nvidia, as was still mentioned above and seemed to work on some Debian-Jessie machines: Section "Screen" But at first this doesn't help. I got the solution, by simply commenting IN the BUS ID parameter. I UNcommented it first and put the ID of my nvidia card there. After deleting (commenting) it a "vblank_mode=0 optirun -b primus glxgears -info" gives me 945fps instead of the 60fps. A "cat /proc/acpi/bbswitch" shows me the card is "ON" and the "Permission denied" message didn't appear again. Maybe by using this parameter on my machine creates a confusion of the correct card numbers..?? Don't know why it now works. |
Maybe that was just the settings to workaround the problem that effectively caused new problems now the fix is out. |
I always used exclusively Debian Packages. But I am not sure which version of libdrm I used when I tried to launch bumblebee the first time when it produced the "Permission Denied" Error. I didn't find any hint about libdrm** packages Update in my apt-history log since the end of Nov. But I'm quite sure, that I tried deleting the "BusID:xtx" line once and it didn' help then. Now, obviously, with the latest nvidia-driver it works. But as soon as I set this parameter again, the error message returned... |
Are there people still facing this issue here with the added section? Can someone for which adding the section solves the issue post Xorg.8.log with and without the section? Thanks |
openSUSE13.2 kernel 3.16.7-13-desktop gnome 3.14.0
I add the code to /etc/bumblebee/xorg.conf.nvidia
but it didnot work..... |
I am also getting this error on OpenSUSE 13.2, kernel 3.16.7-7-desktop, KDE environment. lspci optirun -vv --debug bush |
@Nargren @mingjunyang Can you open a new (one for both of you) issue and post Xorg.8.log and dmesg output there (or in a gist)? Thanks. |
@ArchangeGabriel I format my os and reinstall opensuse 13.2,update to now . and I install the bumblebee,it's works. |
No, if reinstall fixed it, that means it was a config issue, so bugreport
|
Hi, I have the same issue under Ubuntu 15.04.
I also have this in my logs :
I tried to add the Section given by @merkur04 but it doesn't change anything and I can't reinstall my system as for now 😒. Tell me if you want more informations. Thanks for your help. |
For a few days I have this problem on Ubuntu 14.04, tried downgrading backports, changing driver from 331 to 331-updates. |
I'm also encountering this error but I don't have bumblebee... |
I have this problem on Debian Jessie (nvidia driver version 340.65-2, bumblebee 3.2.1-7).
Fragment of dmesg:
|
I also had this problem on a fresh install of Debian Jessie. My dedicated GPU is a GeForce GT 650M. I tried pretty much all of the recommended fixes. Appending to /etc/bumblebee/xorg.conf.nvidia:
Uncommenting and commenting Downgrading the following packages from
But nothing worked, kept getting the Finally I tried altering /etc/default/grub by adding an additional command line switch (as described here: https://bbs.archlinux.org/viewtopic.php?id=169742):
Finally:
update: did a |
Thanks @jkwong888. It's works for me on Ubuntu 15.10. |
On kernel version lower than 3.19 you indeed need the |
Since this issue and #580 are some of the top Google hits (even the Arch Wiki links to #580 ) for the permission denied issues I'm going to write down my solution for Debian Jessie: downgrade to libdrm*_2.4.56 which can be gotten here http://snapshot.debian.org/archive/debian/20140810T163814Z/pool/main/libd/libdrm/ I downgraded all libdrm* packages I had installed which were, from memory: libdrm-intel1, libdrm-nouveau2, libdrm-radeon1 and libdrm2. |
@aerique What is this solving? You’re having optirun not working with newer version of libdrm or is it only this message that scares you and you want to make disappear? |
@ArchangeGabriel I'm sorry I should have mentioned that as well. optirun did indeed not work (for example with glxgears, glxspheres or Steam) and now it does :-) |
@aerique Well then please open a new bug report with log in both cases. |
Hello, I'm having this same problem when I've used acpi_call to disable my GPU and then turn it back on again. |
I solved this problem by setting my driver manually, thanks to this s.o answer's suggestion: http://askubuntu.com/questions/450467/ubuntu-14-04-nvidia-optimus-bumblebee-error Since I'm using Nvidia proprietary driver, I'm using 367. But in your case, just search
|
Thanks to @bremme , I finally got rid of the issue as well. As with him, none of the other suggestions fixed my Debian Jessie running a Geforce GT 650M / "Intel Corporation 3rd Gen Core processor Graphics Controller", but applying I have
|
little angel, you're closing the issue but it is the first google result for "failed set drm cannot access secondary GPU" ... you're very embarassed by other conditions than |
Try this. and choose /usr/lib/nvidia/bumblebee in auto mode |
@drgr33n That was it on my Debian 9.3 (Stretch) with a rather old Nvidia GT 630M (Optimus) driven by the 475 stable Debian nvidia non-free packages - thanks a lot! |
Still having this error on Arch Linux with a 960M. Tried adding to the xorg config as mentioned above, but still have the same error in the log. However, |
I have the common issue. When I try to run something through
optirun
, I get the following:Specification:
I've tried to reinstall nvidia and bumblebee packages, to remove something related with nvidia within
/usr/share/X11/xorg.conf.d
, uncomment BudID in thexorg.conf.nvidia
fileoptirun -vv --debug bush
[13077.093918] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[13077.094673] [DEBUG]optirun version 3.2.1 starting...
[13077.094690] [DEBUG]Active configuration:
[13077.094698] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[13077.094705] [DEBUG] X display: :8
[13077.094711] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-331:/usr/lib32/nvidia-331
[13077.094717] [DEBUG] Socket path: /var/run/bumblebee.socket
[13077.094723] [DEBUG] Accel/display bridge: auto
[13077.094728] [DEBUG] VGL Compression: proxy
[13077.094734] [DEBUG] VGLrun extra options:
[13077.094740] [DEBUG] Primus LD Path: /usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
[13077.094813] [DEBUG]Using auto-detected bridge primus
[13079.358358] [INFO]Response: No - error: XORG intel(0): [drm] failed to set drm interface version: Permission denied [13].
[13079.358418] [ERROR]Cannot access secondary GPU - error: XORG intel(0): [drm] failed to set drm interface version: Permission denied [13].
[13079.358428] [DEBUG]Socket closed.
[13079.358457] [ERROR]Aborting because fallback start is disabled.
[13079.358465] [DEBUG]Killing all remaining processes.
What is wrong?
The text was updated successfully, but these errors were encountered: