Got a strange problem on Ubuntu 20. I'm trying to get hw accelerated xrdp Xorg session. Computer video is Mesa DRI Intel(R) HD Graphics 4600 (HSW GT2). I fetched compiled and installed devel branch of xrdp (Glamour branch was merged in).
Then I tried to login but cinnamon show warning about software rendering. I looked into xorg log and found this:
[ 3987.463] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 3987.463] (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted
/dev/dri/card0 is owned by root, have video group and group rw acl. xrdp-sesman starts Xorg session from user with uid 1000 using command:
/usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
I tried:
- Run this command from root - it can access dri/card0 without any problem
- Add user 1000 to groups video, audio, plugdev - didn't help (I run id command, check groups and then try to start xorg from console using command above)
- Change permissions to 777 on folder /dev/dri (chmod -R 777 /dev/dri)
- Change owner of /dev/dri to user 1000
So. I now just have no idea what I'm doing wrong and how to solve this...
P.S. Finally i got hw acceleration for xrdp. The xorgxrdp module should be compiled with --enable-glamor option (./configure --enable-glamor). After recompilation cinnamon stop complaining about software rendering and became much faster.
But xorg log still have
failed to take device /dev/dri/card0: Operation not permitted
record.