Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OBS can only run as root
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Laachax
n00b
n00b


Joined: 03 Jun 2017
Posts: 31
Location: Null island

PostPosted: Fri Nov 10, 2017 12:50 am    Post subject: OBS can only run as root Reply with quote

If I launch OBS as a normal user I get the error message
Code:
Failed to initialize video.  Your GPU may not be supported, or your graphics drivers may need to be updated
and this is the console output https://bpaste.net/show/9ebb9f0f4704 . Considering I have an rx480 with 9999 mesa I'm going to bet it's not out of date. So I try launching it as root for the giggles... and it works. No problem. Everything works. Here's the output as root https://bpaste.net/show/b296d4c58b9a

I'm honestly not sure what else to provide or why this is happening. I'm in the video group so not sure why it's having a fit. Any help would be lovely!

Also as a complete aside, but moderately related; what's the use flag for enabling AMD's gpu encoding so I don't need to use x264?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6344
Location: almost Mile High in the USA

PostPosted: Fri Nov 10, 2017 2:41 am    Post subject: Reply with quote

Do other GL applications work? glxgears?

How are you entering your X environment - startx or using a display manager?

Using consolekit, systemd, or just hoofing it?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Laachax
n00b
n00b


Joined: 03 Jun 2017
Posts: 31
Location: Null island

PostPosted: Fri Nov 10, 2017 4:47 am    Post subject: Reply with quote

Every other GL application works as expected. I regularly play games. I enter through SDDM directly to KDE5. Consolekit, no systemd.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5078
Location: Removed by Neddy

PostPosted: Sun Nov 12, 2017 3:46 pm    Post subject: Reply with quote

are you in the video group?
obs runs for me with a restricted user
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6344
Location: almost Mile High in the USA

PostPosted: Sun Nov 12, 2017 6:31 pm    Post subject: Reply with quote

IMHO this is not a regular problem if other GL applications are working; still worth checking the permissions on /dev/dri/* though.
Consolekit should set the permissions correctly however, if it's set up right.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5078
Location: Removed by Neddy

PostPosted: Sun Nov 12, 2017 11:17 pm    Post subject: Reply with quote

eccerr0r wrote:
IMHO this is not a regular problem if other GL applications are working; still worth checking the permissions on /dev/dri/* though.
Consolekit should set the permissions correctly however, if it's set up right.
*SHOULD* there was a thread recently w.r.t. dri and STEAM and the user was expecting consolekit to set the permissions correctly. A solution using consolekit was never determined and the user had an additional script to manually set the permissions
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6344
Location: almost Mile High in the USA

PostPosted: Sun Nov 12, 2017 11:53 pm    Post subject: Reply with quote

What ultimately was the file that was not set properly?

It's weird that some GL programs work but not others...

Consolekit/systemd(logind) have been setting my DRI permissions automatically just fine for wine's DX11 passthrough to DRI; would be curious to know what file was the holdout. Adding a user to the video group when CK/logind should be setting it properly is like using a blowtorch to kill one fly. Granted the fly killer wasn't working to begin with, but beware of the flames...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5078
Location: Removed by Neddy

PostPosted: Sun Nov 12, 2017 11:59 pm    Post subject: Reply with quote

ok I found the thread, it wasn't video, it was /dev/uinput but there was an expectation that consolekit would manage it & it wasn't

https://forums.gentoo.org/viewtopic-t-1066836.html?sid=929b20871359e304a285c3e032012a03
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
Laachax
n00b
n00b


Joined: 03 Jun 2017
Posts: 31
Location: Null island

PostPosted: Wed Nov 15, 2017 4:34 am    Post subject: Reply with quote

Code:
laachax@LaachaxNix  ~  ls -lha /dev/dri/*
crw-rw----+ 1 root video 226,   0 Nov 14 08:39 /dev/dri/card0
crw-rw----+ 1 root video 226, 128 Nov 14 08:39 /dev/dri/renderD128


What does yours look like?

Code:
 ✘ laachax@LaachaxNix  ~  getfacl /dev/dri/*
getfacl: Removing leading '/' from absolute path names
# file: dev/dri/card0
# owner: root
# group: video
user::rw-
user:laachax:rw-
group::rw-
mask::rw-
other::---

# file: dev/dri/renderD128
# owner: root
# group: video
user::rw-
user:laachax:rw-
group::rw-
mask::rw-
other::---


Code:
sys-auth/consolekit-1.1.2::gentoo was built with the following:
USE="acl pam (policykit) udev -cgroups -debug -doc -evdev -pm-utils (-selinux) -test" ABI_X86="(64)"


Anything else I could possibly post that could track this error down?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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