(this behavior seems consistent with the content of /etc/fbtab, meaning
that if I do the same sequence of operations from a different virtual
terminal, ttyC1 for example, /dev/drm0 ownership is left untouched).
Of cource, when I switch back in X, I'm no more able to get access to drm
device, losing hardware acceleration for applications using it and continuosly
receiving the following error message:
libGL error: failed to open drm device: Permission denied
The only way to restore the correct condition is to logout/login (or restart
I temporarely worked around the problem inhibiting the login from ttyC0 (and
so reserving it as a kind of "virtual console" for kernel messages), but I'd
like to hear your thoughts on this: is it the expected/desired behavior
or should it be fixed?
Re: libGL error: failed to open drm device: Permission denied
On Tue, 21 Mar 2017 00:07:16 +0200
Mihai Popescu <[hidden email]> wrote:
> What version of OpenBSD are you running?
-current, updated to 03/19 snapshot:
[just22@poseidon]--[✓]-[~]> dmesg | head -2
OpenBSD 6.1-beta (GENERIC.MP) #38: Sun Mar 19 11:09:01 MDT 2017
> Did you modified /etc/fbtab?
[just22@poseidon]--[✓]-[~]> cat /etc/fbtab
# $OpenBSD: fbtab.head,v 1.2 1999/05/05 06:56:34 deraadt Exp $
# login(1) reads this file to determine which devices should be chown'd to
# the new user. Format is:
# login-tty perm device:[device]:...
#/dev/ttyC0 0600 /dev/fd0
> What is 'll' or that command used to show permissions?
Just an alias to 'ls -lh', anyhow:
[just22@poseidon]--[✓]-[~]> ls -l /dev/drm0
crw------- 1 just22 wheel 87, 0 Mar 20 08:17 /dev/drm0
(this is the "normal" condition, of course)
> Is just22 a custom user, i.e. not created at install time?
It was created (a long time ago!) at install time.
> Looking at what I have, I think for a normal install it should show
> you this:
> [just22@poseidon]-[~]> ll /dev/drm0
> crw------- 1 just22 just22 87, 0 Mar 20 08:17 /dev/drm0
I noticed that the ownership of the device is "just22,just22" when I log in
from ttyC0, reset to "root,wheel" when I logout from there, set to
"just22,wheel" when logging in through xenodm. Does this make sense?