On 2/16/22 17:35, 'Igor Milhit' via TigerVNC User Discussion/Support wrote:
>
> I don't see it as a bug, but I suspect it's related to the "headless"
> session (like it is a "virtual" session, so no physical sound card is
> needed, or something like this). If I connect an actual display in hdmi on
> the server and log in a gnome session, there's no problem at all.
>
That is correct. Only local sessions are given access to local hardware.
Everything else is locked out. This is managed by systemd by changing
the file access rights on stuff in /dev. E.g. I'm currently logged on as
the user "ossman", which sets up the audio device nodes as such:
$ getfacl /dev/snd/hwC0D0
getfacl: Removing leading '/' from absolute path names
# file: dev/snd/hwC0D0
# owner: root
# group: audio
user::rw-
user:ossman:rw-
group::rw-
mask::rw-
other::---
You can see that the user "ossman" has been explicitly added there. If I
log out that will be removed.
You can also see that the group "audio" also has access. If you want a
user to have constant access to the sound card then add you user to that
group. Then you'll have access in all circumstances.
(This is on Fedora. Your groups might be called something different.)
Regards
--
Pierre Ossman Software Development
Cendio AB
https://cendio.com
Teknikringen 8
https://twitter.com/ThinLinc
583 30 Linköping
https://facebook.com/ThinLinc
Phone:
+46-13-214600
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?