LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-11-2016, 11:45 PM   #1
Ayaskull
LQ Newbie
 
Registered: Aug 2016
Posts: 10

Rep: Reputation: Disabled
bumblebee : /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied


Hi. First time using slackware and I'm not an very experienced Linux user. Iv'e installed bumblebee for my optimus video card using the automated script from http://docs.slackware.com/howtos:har...nvidia_optimus but trying it with glxgears I get this:

With optirun: "[ 581.894094] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied

[ 581.894129] [ERROR]Aborting because fallback start is disabled."

With primusrun: "primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied".

What's wrong? Thanks in advance!
 
Old 08-12-2016, 11:05 AM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I imagine your user is not a member of the necessary groups. You should at least be a member of video and bumblebee (and you should ensure the bumblebee group is created).

You can run the following command to add yourself to all the recommended groups as well as the bumblebee group (replacing $USER with your username).

Code:
usermod -a -G lp,floppy,audio,video,cdrom,plugdev,power,netdev,scanner,bumblebee $USER
 
Old 08-12-2016, 01:45 PM   #3
Ayaskull
LQ Newbie
 
Registered: Aug 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
No, that doesn't solve the problem...
 
Old 08-12-2016, 01:59 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Can you provide the output of the following commands?

Code:
groups
ls -la /dev/dri/card0
 
Old 08-12-2016, 02:08 PM   #5
Ayaskull
LQ Newbie
 
Registered: Aug 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
bash-4.3$ ls -la /dev/dri/card0
crw-rw----+ 1 root video 226, 0 Aug 12 14:35 /dev/dri/card0
 
Old 08-12-2016, 02:15 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
And the output of the groups command?

EDIT: You might need to log out and log back in if you changed your user's groups. Sorry I didn't mention that earlier...

Last edited by bassmadrigal; 08-12-2016 at 02:18 PM.
 
Old 08-12-2016, 02:17 PM   #7
Ayaskull
LQ Newbie
 
Registered: Aug 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
bash-4.3$ groups
users lp wheel floppy audio video cdrom plugdev power netdev scanner bumblebee
 
Old 08-12-2016, 02:19 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I don't know if you noticed my edit above. If you added yourself to those groups, you might need to log out and log back in for it to take effect.
 
Old 08-12-2016, 02:32 PM   #9
Ayaskull
LQ Newbie
 
Registered: Aug 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
No. It didn't work. I even restarted the computer. The usermod command doesn't work with sudo using my own account so I logged into root and used my username instead of $USER at the end. Sorry if I had to mention that before.
 
Old 08-12-2016, 02:57 PM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by Ayaskull View Post
No. It didn't work. I even restarted the computer.
Check this post. It seems you might need to tweak your xorg config files for bumblebee.

Quote:
Originally Posted by Ayaskull View Post
The usermod command doesn't work with sudo using my own account so I logged into root and used my username instead of $USER at the end. Sorry if I had to mention that before.
Do you have sudo set up properly? It isn't set up in Slackware the same way it's set up in the *buntus. Generally with Slackware, most will just su to root and run any required commands that way. It is certainly possible to set it up to behave like Ubuntu, but it isn't set that way by default.
 
Old 08-12-2016, 04:25 PM   #11
Ayaskull
LQ Newbie
 
Registered: Aug 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
Check this post. It seems you might need to tweak your xorg config files for bumblebee.



Do you have sudo set up properly? It isn't set up in Slackware the same way it's set up in the *buntus. Generally with Slackware, most will just su to root and run any required commands that way. It is certainly possible to set it up to behave like Ubuntu, but it isn't set that way by default.
I've followed the instructions in the post and still I get the same error...
 
Old 08-12-2016, 05:13 PM   #12
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
While it's normally not recommended, can you log into X as root and try it that way?
 
Old 08-12-2016, 06:27 PM   #13
Ayaskull
LQ Newbie
 
Registered: Aug 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
While it's normally not recommended, can you log into X as root and try it that way?
Nope. I did startx as root, logged in and then tried the primusrun and optirun commands and I get the same errors.
 
Old 08-12-2016, 07:16 PM   #14
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Try setting up your Intel chipset completely with an xorg.conf. Don't try automation with Optimus.

Are you also using the Nvidia driver or Nouveau?
 
Old 08-12-2016, 07:42 PM   #15
Ayaskull
LQ Newbie
 
Registered: Aug 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
I'm using the nvidia driver. I think the automated bumblebee installer installed it.
Can I install nvidia prime instead of bumblebee (switching graphics by login out)? I know intel hd graphics alone are enough for most applications but I need nvidia to play my steam games.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
curlftpfs mount fails with "fuse: failed to open /dev/fuse: Permission denied" camperbait Linux - General 2 06-12-2013 11:32 AM
when use minicom, received "Device /dev/ttyS1 access failed: Permission denied." fulee1 Linux - Newbie 3 04-02-2010 03:11 PM
udevd - rmdir(/dev/.udev/failed) failed: Permission denied pbhj Slackware 20 03-21-2008 10:46 AM
/proc/asound/card0/pcm0p/oss: Permission denied crane Linux - Hardware 4 08-23-2007 05:41 AM
ATI problem, udev not creating /dev/dri/card0 vdemuth Slackware 2 09-25-2006 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration