/srv/irclogs.ubuntu.com/2022/11/28/#ubuntustudio.txt

=== guiverc2 is now known as guiverc
teledyn[m]Help! I have fallen from the grace of pipewire-pulse and I can't get back up! A month ago I posted to https://askubuntu.com/questions/1437981/upgrade-to-22-10-pipewire-killed-bluetooth-audio-org-bluez-error-failed-br-conn with no answer although the problem was not BT not accepting the Anker as a speaker, but that in the process of trying to fix that, I killed pipewire-pulse completely, even on a new acct, after login there are no23:16
teledyn[m]audio devices according to Plasma, but every alsa and hardware check shows I have perfectly good audio hardware, and comparing to another laptop that I didn't break after the upgrade, both have pipewire-pulse running, but the broken machine keeps spitting out plasmashell "audio` kaput" messages. The Ubuntu sound debug pages haven't been updated in years and any guidance I've found on stackexchange, askubuntu etc only cover pulseaudio23:16
teledyn[m]issues.  On the broken machine, if I run "pulseaudio -D" I suddenly have devices and can work with Audacity (haven't attempted jackd yet) but this isn't running on the good machine and it should run automatically!  So I'm stuck, I don't know where else to ask -- if this isn't the place, feel free to send me elsewhere; after a month of headbanging, another stop along the road won't matter.23:16
OvenWerksteledyn[m]: I am not totally sure what the problem is or perhaps what the starting point is.23:34
OvenWerkspipewire is a new thing ot all of us and at least in ubuntustudio, is not used by default.23:35
teledyn[m]Neither am I.  I have audio devices from alsamixer etc, but the Plasma desktop says I have none unless I run "pulseaudio -D" from the command line. My understanding, and my other machine confirms, pulseaudio should NOT be running at all!23:35
OvenWerksI have been playing with pipewire and may be able to help.23:36
teledyn[m]I thought the 22.10 upgrade enabled pipewire instead, at least, pulseaudio is not running on the other laptop I upgraded at the same time.23:36
OvenWerksyes but you started it manually. Pipewire should be able to take pulseaudios place23:36
OvenWerksif you run pactl info23:37
teledyn[m]not on the working machine, on that machine, pipewire-pulse is the only process running, and it is running on the broken machine too.  pactl does nothing, it hangs23:37
teledyn[m]unless I manually start pulseaudio23:37
OvenWerks you should see if it is pulse you are seeing or pipewire pretending to be pulse.23:37
teledyn[m]if it was pipewire, why does not fail unless I also run pulseaudio?23:38
teledyn[m]also  fuser -v /dev/snd/* shows nothing23:38
OvenWerkson this machine, pactl info shows: Server Name: pulseaudio23:39
teledyn[m]but alsainfo shows everything23:39
teledyn[m]that should read "why does fail unless I also run pulseaudio"23:39
OvenWerksbut on my other machine it shows: Server Name: pulseaudio (pipewire)23:40
teledyn[m]let me check the working machine ...23:41
OvenWerksperhaps try ps x |grep pipewire23:41
teledyn[m]pactl info shows Server Name: PulseAudio (on PipeWire 0.3.58) on the working machine, but Connection Refused on the broken machine23:42
OvenWerksIs see three lines of pipewire but the one you want is 5867 ?        SLsl   3:46 /usr/bin/pipewire-pulse23:42
teledyn[m]$ ps x |grep pipewire23:42
teledyn[m]   2148 ?        S<sl   0:00 /usr/bin/pipewire23:42
teledyn[m]  15678 ?        S<sl   0:00 /usr/bin/pipewire-pulse23:42
OvenWerks(different pid of course23:42
teledyn[m]the working machine shows the same23:43
OvenWerksonce you have started pulseaudio manually, it may have blocked pw.23:44
teledyn[m]I don't know why folks spend money on suduku or complicated games, they should just run Linux recklessly like I do, endless puzzles23:44
OvenWerkssuduko is free on linux too :P23:44
teledyn[m]but if I don't run it, I get no devices, that's the puzzle, there should be devices just running pw23:45
teledyn[m]heh23:45
teledyn[m]so is the psychotherapist if you run emacs23:45
teledyn[m]I might need that later23:45
OvenWerksyes, I don't know how to get systemd to tell you the status of what it has run.23:45
teledyn[m]another part of the puzzle, I thought it might be my home config, so I created a new acct and it has the same issue, that suggests I broke something in /etc/23:46
teledyn[m]maybe23:46
* arraybolt3 suspects something needs `systemctl enable`d23:46
OvenWerksls /etc/systemd/user/ 23:47
teledyn[m]systemd might have said something in syslog, but mostly syslog is being bombed by those audio kaput messages23:47
OvenWerksdoes it have any pulseaudio in there23:47
teledyn[m]pipewire-media-session.service23:48
teledyn[m]pipewire.service.wants23:48
teledyn[m]pipewire-session-manager.service23:48
teledyn[m]on the broken machine.23:48
teledyn[m]same on the working one.  At the moment I am not running that manual pulseaudio demon23:48
teledyn[m]so no pulseaudio in either.23:49
teledyn[m]I get this, once a second: Nov 28 18:49:23 strata plasmashell[2485]: org.kde.plasma.pulseaudio: context kaput23:49
teledyn[m]I'm sure that must be a clue, but Google has never heard of context kaput23:50
arraybolt3[m]I used to remember how to switch between Pulse and Pipewire, lemme see if I can find it...23:50
teledyn[m]that is from plasmashell, another partner of it is kdeconnectd[2571]: org.kde.pulseaudio: context kaput23:51
teledyn[m]I had started on this by following a guide on switching pulse to pipewire that was meant for 21.04 folks. The upgrade worked when I moved to 22.10, it was later when I broke it following the guide, I got to the part where it said to use pactl and my output was null.23:52
OvenWerksjust to make sure, you have not run any of these commands using sudo or logged in as root?23:53
OvenWerksrunning any of this as root does bad things23:53
teledyn[m]not the demons or pa stuff, only some systemctl restarts etc23:54
arraybolt3[m]teledyn:... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/73fc725fd409c6db19de51be7c792f8adbc59af7>)23:54
OvenWerkssystemctl --user --now disable pulseaudio.service pulseaudio.socket23:54
teledyn[m]I think I did, but let's do it again:23:54
OvenWerksthen systemctl --user mask pulseaudio23:54
arraybolt3[m]Do OvenWerks thing first.23:55
OvenWerksthen systemctl --user restart pipewire.socket wireplumber.service pipewire-pulse.service pipewire.service23:56
teledyn[m]seems to me, I did the mask before, replaces the symlink with null, and sadly I didn't get your do this first until I hadn't but it shouldn't matter since pipewire was already running and pulse was not present.23:56
teledyn[m]oh we might have a clue here: Failed to restart wireplumber.service: Unit wireplumber.service is masked23:57
teledyn[m]user unmask that?23:57
arraybolt3[m]Well that would do it.23:57
arraybolt3[m]That definitely should not be masked.23:57
arraybolt3[m]So I'd user unmask it, yes.23:58
OvenWerksyeah, well you have pipewire-media-session.service  I think it is either or. but wireplumber is recomended.23:58
OvenWerksI have not tried medi-session23:59
teledyn[m]what is the unmask command?  I tried --user unmask wireplumbler.service and it accepted that, but running the first command says it is still masked23:59
arraybolt3[m]I never could get audio at all with media-session.23:59
arraybolt3[m]Then omit the --user and put sudo in front.23:59
OvenWerksno23:59

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!