So your /var/run/user/1001 has (assuming GID djwilcox is added as 1001) ownermy gid and uid are 1001
Code:ls -l /var/run/user/
Code:drwx------ 11 djwilcox wheel 15 6 Mar 17:24 1001
djwilcox:djwilcox
(1001:1001
), right?So your /var/run/user/1001 has (assuming GID djwilcox is added as 1001) ownermy gid and uid are 1001
Code:ls -l /var/run/user/
Code:drwx------ 11 djwilcox wheel 15 6 Mar 17:24 1001
djwilcox:djwilcox
(1001:1001
), right?sudo chmod 700 user/"$(id -u)"
sudo chown -R "${USER}":wheel /var/run/user/"$(id -u)"
sudo chmod 700 /var/run/user/"$(id -u)"
failed to open /dev/dri/card0 : permission denied
failed to open /dev/dri/renderD128 : permission denied
# pw groupmod video -m marietto
# pw groupmod wheel -m marietto
So another possibility.
I've, silly enough, did another operation when I've changedkld_list
.
As some noted that /var/run/ on ZFS could cause problem (because of, if I recall correctly, the lack of posix_fallocate(2)() functionality).
First, formerly to this changes, I've tried /var/run/user/ as tmfs but didn't help and instantly dropped to single user mode when rc scripts tries to create the tmpfs and needed late mount option, maybe because it happenes before dataset for /var is mounted.
The change indirectly helped could be the next trial.
To test making /var/run as tmpfs, I've created /var/run2 and mv(1)'ed everything under /var/run/ there in single user mode, thus, cleared /var/run/.
.Of course, as I've overlooked the fact why tmpfs on /var/run/user failed without late option, it failed without late option and caused some files to be masked by tmpfs, caused crash or hang.
So I reverted the changes, but not restored the backed up contents formerly existed in /var/run/ (restore only when something stopped working, maybe because directory under /var/run/ which are created on install time).
Maybe I should better migrating /var itself to / dataset, keeping datasets under it as independent datasets. And if tmpfs as /var/run goes OK with it even if ZFS-on-Root, adjusting /etc/rc.conf[.local] with current default var_run_enable="YES" and var_run_autosave="YES" on main branch (not MFC'ed) could help.
Note that their comments should be fixed to reflect reality.
you dont need any of the settings you use
![]()
Chapter 6. Wayland
This chapter describes how to install and configure Wayland and compositors on FreeBSD, which provides a graphical user environmentdocs.freebsd.org
pw groupmod video -m user
if you look at that page it tells you how to install wayfire
what groups you need to add your user to
Code:pw groupmod video -m user
its all on that page
See group of the entries. It should be belong to User=root, Group=video.maybe I should do :
Code:chown marietto:marietto /dev/drm0 chown marietto:marietto /dev/drm128
because these devices are owned by root. May this is wrong ?
% ls -l /dev/drm/0
crw-rw---- 1 root video 0x87 3月 7 19:07 /dev/drm/0
% ls -l /dev/drm/128
crw-rw---- 1 root video 0x167 3月 7 19:07 /dev/drm/128
==> ls -l /dev/drm/0
crw-rw-rw- 1 root video 0x10e 7 mar 10:23 /dev/drm/0
==> ls -l /dev/drm/128
crw-rw-rw- 1 root video 0x1c0 7 mar 10:23 /dev/drm/128
Modify /etc/devfs.rules as follows:
add path 'dri/*' mode 0666 group video
add path 'drm/*' mode 0666 group video
Be sure to add yourself to group video, reboot your system and see if the libGL permission denied message has gone away.
if you look at that page it tells you how to install wayfire
what groups you need to add your user to
Code:pw groupmod video -m user
its all on that page
Your permissions of the device seems to allow read/write FOR ALL USERS.I asked that because the developers of wayfire told me that I can't run Wayfire as root. So,I've thought that if those devices are owned by root and I should run wayfire only as normal user,this could be the reason why I get that error.
I have different permissions than you :
Code:==> ls -l /dev/drm/0 crw-rw-rw- 1 root video 0x10e 7 mar 10:23 /dev/drm/0 ==> ls -l /dev/drm/128 crw-rw-rw- 1 root video 0x1c0 7 mar 10:23 /dev/drm/128
that's because I set "others" with rw permissions as a test. Dunno if it is wrong.
Your permissions of the device seems to allow read/write FOR ALL USERS.
Mine allows only root and members of group video.
As you may know, the left-most "c" means it's a character device node.
Following first "rw-" means the owner (here, root) can read/write.
The second "rw-" means the members of the group specified (here, video) can read/write the node.
The last, for me, "---" means users other than root and non-member of group video cannot read/write the node. Your "rw-" means they can read/write.
Device nodes should not be executable (as it is not a program code itself).
You'll find it seems odd as directories under /dev could have executable permission (**x), but it just means that entries under it can have executable permission if it actually is, but for device node, it's dropped on creation by devfs, if I understand correctly, as device nodes are data points to read/write corresponding devices'es internal data and issue ioctl to them.
add path 'dri/*' mode 0666 group video
add path 'drm/*' mode 0666 group video
I will try this as well. I typically add my user to operator and wheel and video. Do either wheel or operator cause issues with Nvidia?that's an old post. I've fixed my problem by modifying /etc/devfs.rules as follows:
Code:add path 'dri/*' mode 0666 group video add path 'drm/*' mode 0666 group video
and add myself to group video.
groups
djwilcox wheel operator video
I will try this as well. I typically add my user to operator and wheel and video. Do either wheel or operator cause issues with Nvidia?
… wayfire worked … without adding those paths on the devfs.rules and then, … stopped working.
<https://github.com/WayfireWM/wayfire/discussions/2182#discussioncomment-8710643>:
It will be good to understand why it stopped.
I wonder whether nvidia-drm-515-kmod-550.54.14 issues are relevant.
I tried it, it doesn't work. Wayfire still won't work on my Nvidia systems.that's an old post. I've fixed my problem by modifying /etc/devfs.rules as follows:
Code:add path 'dri/*' mode 0666 group video add path 'drm/*' mode 0666 group video
and add myself to group video.