I can not solve the problem with pactl, I have some pactl comand in my sh file and I must start this file as root. But pactl comand do not work with root. I try to write sudo -u $USER and a lot of differnt variants with differnt groups and users but it still does not work
Asked
Active
Viewed 454 times
1
sudo -u some_user pactl
weon't work - PulseAudio uses DBus, and you'd need to usedbus-launch
or otherwise guidepactl
to the existing DBus session for it work. – muru Mar 08 '21 at 14:29plugdev
group. – muru Mar 08 '21 at 15:11/dev/input/input*
. Runls -l /dev/input/input*
to which group those files being to. I don't have a system on hand to check, but I think they should be owned byplugdev
like in https://unix.stackexchange.com/a/242224/70524 – muru Mar 08 '21 at 15:32