Repository navigation
New systemctl_show_pulseaudio() that catches the sneaky 'gdm' user - #728
Merged
Merged
Conversation
dirname "$0" was working by chance and only because all tests sourcing us were at the same level than us. This allows sourcing us from different levels. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Trying to stop the unstoppable thanks to the --global option
Sample ~/SOF/sof-test/tools/kmod/sof_remove.sh output:
SKIP snd_compress not loaded
SKIP snd_pcm not loaded
529 /usr/bin/pulseaudio --daemonize=no --log-target=journal
+ systemctl --system list-unit-files --all '*pulse*'
UNIT FILE STATE VENDOR PRESET
pulseaudio-enable-autospawn.service masked enabled
1 unit files listed.
+ systemctl --global list-unit-files --all '*pulse*'
UNIT FILE STATE VENDOR PRESET
pulseaudio.service enabled enabled
pulseaudio.socket enabled enabled
2 unit files listed.
+ systemctl --user list-unit-files --all '*pulse*'
UNIT FILE STATE VENDOR PRESET
pulseaudio.service masked enabled
pulseaudio.socket masked enabled
2 unit files listed.
For joe ONLY:
+ systemctl --user list-units --all '*pulse*'
UNIT LOAD ACTIVE SUB DESCRIPTION
● pulseaudio.service masked inactive dead pulseaudio.service
● pulseaudio.socket masked inactive dead pulseaudio.socket
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
2 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.
gdm 529 0.0 0.3 804512 13960 ? S<sl 13:46 0:00 /usr/bin/pulseaudio --daemonize=no --log-target=journal
ERROR: sof_remove.sh fails semi-randomly when pulseaudio is running
Try: sudo systemctl --global mask pulseaudio.{socket,service} and reboot.
--global is required for session managers like "gdm"
Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Collaborator
Author
|
Isolated alsabat failure at https://sof-ci.01.org/softestpr/PR728/build779/devicetest/?model=APL_UP2_NOCODEC&testcase=check-alsabat-headset-playback, unrelated. |
marc-hb
marked this pull request as ready for review
July 2, 2021 21:56
This was referenced Jul 2, 2021
aiChaoSONG
approved these changes
Jul 14, 2021
aiChaoSONG
left a comment
There was a problem hiding this comment.
this looks good to me. slippery pulseaudio!!!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Trying to stop the unstoppable thanks to the --global option
Sample ~/SOF/sof-test/tools/kmod/sof_remove.sh output:
Signed-off-by: Marc Herbert marc.herbert@intel.com