chown first drm render node in xenodm

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

chown first drm render node in xenodm

Jonathan Gray-11
This makes vulkan work as a normal user without having to change
ownership of the device by hand.

Index: GiveConsole
===================================================================
RCS file: /cvs/xenocara/app/xenodm/config/GiveConsole,v
retrieving revision 1.2
diff -u -p -r1.2 GiveConsole
--- GiveConsole 11 Jul 2018 19:20:40 -0000 1.2
+++ GiveConsole 12 May 2019 11:04:05 -0000
@@ -11,4 +11,7 @@ chown $USER /dev/console
 if [ -c /dev/drm0 ]; then
     chown $USER /dev/drm0
 fi
+if [ -c /dev/drmR128 ]; then
+    chown $USER /dev/drmR128
+fi
 /usr/X11R6/bin/sessreg -a -l $DISPLAY -u none $USER
Index: TakeConsole
===================================================================
RCS file: /cvs/xenocara/app/xenodm/config/TakeConsole,v
retrieving revision 1.3
diff -u -p -r1.3 TakeConsole
--- TakeConsole 11 Jul 2018 19:20:40 -0000 1.3
+++ TakeConsole 12 May 2019 11:04:05 -0000
@@ -8,4 +8,7 @@ chmod 622 /dev/console
 if [ -c /dev/drm0 ]; then
     chown root /dev/drm0
 fi
+if [ -c /dev/drmR128 ]; then
+    chown root /dev/drmR128
+fi
 /usr/X11R6/bin/sessreg -d -l $DISPLAY -u none $USER

Reply | Threaded
Open this post in threaded view
|

Re: chown first drm render node in xenodm

Matthieu Herrb-3
On Sun, May 12, 2019 at 09:08:23PM +1000, Jonathan Gray wrote:
> This makes vulkan work as a normal user without having to change
> ownership of the device by hand.

ok matthieu@

>
> Index: GiveConsole
> ===================================================================
> RCS file: /cvs/xenocara/app/xenodm/config/GiveConsole,v
> retrieving revision 1.2
> diff -u -p -r1.2 GiveConsole
> --- GiveConsole 11 Jul 2018 19:20:40 -0000 1.2
> +++ GiveConsole 12 May 2019 11:04:05 -0000
> @@ -11,4 +11,7 @@ chown $USER /dev/console
>  if [ -c /dev/drm0 ]; then
>      chown $USER /dev/drm0
>  fi
> +if [ -c /dev/drmR128 ]; then
> +    chown $USER /dev/drmR128
> +fi
>  /usr/X11R6/bin/sessreg -a -l $DISPLAY -u none $USER
> Index: TakeConsole
> ===================================================================
> RCS file: /cvs/xenocara/app/xenodm/config/TakeConsole,v
> retrieving revision 1.3
> diff -u -p -r1.3 TakeConsole
> --- TakeConsole 11 Jul 2018 19:20:40 -0000 1.3
> +++ TakeConsole 12 May 2019 11:04:05 -0000
> @@ -8,4 +8,7 @@ chmod 622 /dev/console
>  if [ -c /dev/drm0 ]; then
>      chown root /dev/drm0
>  fi
> +if [ -c /dev/drmR128 ]; then
> +    chown root /dev/drmR128
> +fi
>  /usr/X11R6/bin/sessreg -d -l $DISPLAY -u none $USER

--
Matthieu Herrb