-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
audio/detect-sinks and sources failed since command pactl info failed (ref 1)
ubuntu@ubuntu:/snap/checkbox24/current/providers/checkbox-provider-base/bin$ pactl info
Failed to create secure directory (/run/user/1000/../pulse): Permission denied
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
However, in check_audio_daemon.sh, it check if pactl command exist in system. But in my case, it has been found in checkbox core snap instead of system itslef.
ubuntu@ubuntu:/snap/checkbox24/current/providers/checkbox-provider-base/bin$ command -v pactl
/snap/checkbox24/current/usr/bin/pactl
And it may be the reason command pactl info fail and generated unexpected message that cause job failed.
If the scrpit run out of checkbox shell, then it works well.
ubuntu@ubuntu:/snap/checkbox24/current/providers/checkbox-provider-base/bin$ ./check_audio_daemon.sh
Daemon is pipewire, use pipewire function
ubuntu@ubuntu:/snap/checkbox24/current/providers/checkbox-provider-base/bin$ checkbox-ce-oem.shell
checkbox-ce-oem runtime shell, type 'exit' to quit the session
ubuntu@ubuntu:/snap/checkbox24/current/providers/checkbox-provider-base/bin$ ./check_audio_daemon.sh
Failed to create secure directory (/run/user/1000/../pulse): Permission denied
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
Daemon is pulseaudio, use pulseaudio function
The pipewire audio loopback test works for my device.
ubuntu@ubuntu:/snap/checkbox24/current/providers/checkbox-provider-base/bin$ checkbox-support-pipewire-utils detect -t audio -c sinks
device id:[33] media.class:[Audio/Sink] node.name:[auto_null]
ubuntu@ubuntu:/snap/checkbox24/current/providers/checkbox-provider-base/bin$./pipewire_test.py
Failed to create secure directory (/run/user/1000/../pulse): Permission denied
INFO:root:Player: Starting
Failed to create secure directory (/run/user/1000/../pulse): Permission denied
INFO:root:Recorder: Starting
INFO:root:Sampling complete, ending process
INFO:root:Player: Stopping
INFO:root:Recorder: Stopping
INFO:root:PASS: Test frequency of 5035 in band (4995.70, 5081.84) which contains a magnitude peak
Cert-blocker Test Case
- cert-blocker
To Reproduce
- checkbox-ce-oem.checkbox-cli run .*::audio/detect_sinks
Expected Result
Should be able to observed log Daemon is pipewire, use pipeiwre function and job passed
Actual Result
Observed log Daemon is pulseaudio, use pulseaudio function and job failed
Environment
- ubuntu desktop 24.04
- checkbox24 5.0.0-dev8 839 latest/beta
Relevant log output
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working