Ubuntu 24.04 issues



Hi,
I have been building and installing Kodi 21.01 successfully on my NankPC-T6, using the default Pipewire-sound.
It’s running fine both on Wayland- as well as GBM-mode which I prefer due to better GPU-support. I can switch at login using either selecting a Ubuntu (Wayland) or a Kodi-GBM session.

Due to other installed programs I would like to run Ubuntu in Wayland-mode, and switch over the GBM when I start KODI via my phone remote CTL YATSE, and back to Wayland afterwards.
I am aware that GBM does not work with a graphical environment, so I try to switch to a non-graphical environment first, by using ‘ sudo –user=root systemctl stop gdm3’ or ‘sudo –user=root systemctl isolate multi-user.target’.
Both commands switch over to terminal-mode, I can start Kodi, I get a proper screen with ‘windowing = gbm’ but either ‘no sound-device found’, or ‘realtec sound and rockchip-hdmi0’-sound.
Rockchip-hdmi0 sound works, but the audio-channels are mixed up, and very likely Passthrough will never work.

How can I get Pipewire running in this  setup?
I tried restarting pipewire, pipewire-pulse …,  but nothing helps.

KODI-log shows me:

Code:

2024-08-21 12:49:46.469 T:6777     info <general>: CAESinkALSA - Unable to open device "default" for playback
2024-08-21 12:49:46.472 T:6777     info <general>: CAESinkALSA - ALSA: confmisc.c:855Sadparse_card) cannot find card '$CARD'
2024-08-21 12:49:46.472 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5204Sad_snd_config_evaluate) function snd_func_card_inum returned error: No such device
2024-08-21 12:49:46.472 T:6777     info <general>: CAESinkALSA - ALSA: confmisc.c:422Sadsnd_func_concat) error evaluating strings
2024-08-21 12:49:46.472 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5204Sad_snd_config_evaluate) function snd_func_concat returned error: No such device
2024-08-21 12:49:46.472 T:6777     info <general>: CAESinkALSA - ALSA: confmisc.c:1342Sadsnd_func_refer) error evaluating name
2024-08-21 12:49:46.473 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5204Sad_snd_config_evaluate) function snd_func_refer returned error: No such device
2024-08-21 12:49:46.473 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5727Sadsnd_config_expand) Evaluate error: No such device
2024-08-21 12:49:46.473 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5540Sadparse_args) Unknown parameter CARD
2024-08-21 12:49:46.473 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5711Sadsnd_config_expand) Parse arguments error: No such file or directory
2024-08-21 12:49:46.473 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5540Sadparse_args) Unknown parameter CARD
2024-08-21 12:49:46.473 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5711Sadsnd_config_expand) Parse arguments error: No such file or directory
2024-08-21 12:49:46.473 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5540Sadparse_args) Unknown parameter CARD
2024-08-21 12:49:46.473 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5711Sadsnd_config_expand) Parse arguments error: No such file or directory
2024-08-21 12:49:46.473 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5540Sadparse_args) Unknown parameter CARD
2024-08-21 12:49:46.473 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5711Sadsnd_config_expand) Parse arguments error: No such file or directory
2024-08-21 12:49:46.474 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5540Sadparse_args) Unknown parameter CARD
2024-08-21 12:49:46.474 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5711Sadsnd_config_expand) Parse arguments error: No such file or directory
2024-08-21 12:49:46.474 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5540Sadparse_args) Unknown parameter CARD
2024-08-21 12:49:46.474 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5711Sadsnd_config_expand) Parse arguments error: No such file or directory
2024-08-21 12:49:46.474 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5540Sadparse_args) Unknown parameter CARD
2024-08-21 12:49:46.474 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5711Sadsnd_config_expand) Parse arguments error: No such file or directory
2024-08-21 12:49:46.474 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5540Sadparse_args) Unknown parameter CARD
2024-08-21 12:49:46.474 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5711Sadsnd_config_expand) Parse arguments error: No such file or directory
2024-08-21 12:49:46.474 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5694Sadsnd_config_expand) Unknown parameters CARD=rockchiphdmiin,DEV=0
2024-08-21 12:49:46.474 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5694Sadsnd_config_expand) Unknown parameters CARD=rockchiphdmiin
2024-08-21 12:49:46.474 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5540Sadparse_args) Unknown parameter DEV
2024-08-21 12:49:46.474 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5711Sadsnd_config_expand) Parse arguments error: No such file or directory
2024-08-21 12:49:46.474 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5694Sadsnd_config_expand) Unknown parameters CARD=rockchiphdmiin,DEV=0
2024-08-21 12:49:46.474 T:6777     info <general>: CAESinkALSA - ALSA: conf.c:5694Sadsnd_config_expand) Unknown parameters CARD=rockchiphdmiin

Too bad my Ubuntu / LINUX knowledge is insufficient to find a solution.

Any help is highly appreciated!
Thank you!