SystemD 응용프로그램에서 소리가 나지 않습니다.

SystemD 응용프로그램에서 소리가 나지 않습니다.

시작된 시스템 서비스 덕분에 크롬에서 일부 비디오를 재생하는 키오스크 애플리케이션을 실행하려고 합니다. 다음 스크립트를 수동으로 실행하면 비디오에서 소리가 들립니다.

#!/bin/bash
xset s noblank
xset s off
xset -dpms

unclutter -idle 0.5 -root &

LIBVA_DRIVER_NAME=i965 /usr/bin/chromium-browser --noerrdialogs --autoplay-policy=no-user-gesture-required --disable-accelerated-video-decode --start-fullscreen --kiosk --incognito --disable-translate --no-first-run --fast --fast-start --disable-infobars --disable-features=TranslateUI --disk-cache-dir=/dev/null  --password-store=basic http://127.0.0.1

불행하게도 kiosk.service가 스크립트를 시작할 때 소리가 나지 않습니다. (포럼에서 비슷한 사례를 찾았지만 그 어느 것도 내 문제를 해결하지 못하는 것 같습니다.)

cat /lib/systemd/system/kiosk.service
[Unit]
Description=Chromium Kiosk
Wants=graphical.target
After=graphical.target

[Service]
User=user1
Group=user1
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/user1/.Xauthority
Type=simple
ExecStart=/bin/bash /home/user1/kiosk.sh
Restart=on-abort

[Install]
WantedBy=graphical.target

상태:

user1@user1-nuc:~$ sudo systemctl status kiosk.service 
● kiosk.service - Chromium Kiosk
     Loaded: loaded (/lib/systemd/system/kiosk.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2020-09-06 17:52:11 CEST; 10s ago
   Main PID: 2822 (bash)
      Tasks: 102 (limit: 4523)
     Memory: 424.4M
     CGroup: /system.slice/kiosk.service
             ├─2822 /bin/bash /home/user1/kiosk.sh
             ├─2840 unclutter -idle 0.5 -root
             ├─2841 /usr/lib/chromium-browser/chromium-browser --enable-pinch --noerrdialogs --autoplay-policy=no-user-gesture-required --disable-accelerated-video-decode --start-fullscreen --kiosk --incognito >
             ├─2849 /usr/lib/chromium-browser/chromium-browser --type=zygote --no-zygote-sandbox --noerrdialogs
             ├─2850 /usr/lib/chromium-browser/chromium-browser --type=zygote --noerrdialogs
             ├─2852 /usr/lib/chromium-browser/chromium-browser --type=zygote --noerrdialogs
             ├─2872 /usr/lib/chromium-browser/chromium-browser --type=gpu-process --field-trial-handle=12499335857368612092,12890752898176720314,131072 --disable-features=TranslateUI --noerrdialogs --gpu-prefer>
             ├─2874 /usr/lib/chromium-browser/chromium-browser --type=utility --field-trial-handle=12499335857368612092,12890752898176720314,131072 --disable-features=TranslateUI --lang=en-US --service-sandbox->
             ├─2899 /usr/lib/chromium-browser/chromium-browser --type=renderer --autoplay-policy=no-user-gesture-required --disable-accelerated-video-decode --disable-webrtc-apm-in-audio-service --field-trial-h>
             ├─2926 /usr/lib/chromium-browser/chromium-browser --type=renderer --autoplay-policy=no-user-gesture-required --disable-accelerated-video-decode --disable-webrtc-apm-in-audio-service --field-trial-h>
             ├─2969 /usr/lib/chromium-browser/chromium-browser --type=renderer --autoplay-policy=no-user-gesture-required --disable-accelerated-video-decode --disable-webrtc-apm-in-audio-service --field-trial-h>
             └─2983 /usr/lib/chromium-browser/chromium-browser --type=utility --field-trial-handle=12499335857368612092,12890752898176720314,131072 --disable-features=TranslateUI --lang=en-US --service-sandbox->

sept. 06 17:52:13 user1-nuc bash[2841]: [2841:2871:0906/175213.315275:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp>
sept. 06 17:52:13 user1-nuc bash[2841]: [2841:2871:0906/175213.315295:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp>
sept. 06 17:52:13 user1-nuc bash[2841]: [2841:2871:0906/175213.315317:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp>
sept. 06 17:52:13 user1-nuc bash[2841]: [2841:2871:0906/175213.315336:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp>
sept. 06 17:52:13 user1-nuc bash[2841]: [2841:2871:0906/175213.315370:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp>
sept. 06 17:52:19 user1-nuc bash[2841]: [2841:2871:0906/175219.534878:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp>
sept. 06 17:52:19 user1-nuc bash[2841]: [2841:2871:0906/175219.534969:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp>
sept. 06 17:52:19 user1-nuc bash[2841]: [2841:2871:0906/175219.535020:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp>
sept. 06 17:52:19 user1-nuc bash[2841]: [2841:2871:0906/175219.535098:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp>
sept. 06 17:52:19 user1-nuc bash[2841]: [2841:2871:0906/175219.535135:ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp>

이에 대해 어떤 생각이 있습니까?

관련 정보