You are not logged in.

#1 2025-09-29 19:34:08

DrLlap
Member
Registered: 2024-10-20
Posts: 31

Need to restart pipewire

Every once and a while, usually after leaving the PC running for a while an not using it, the sound stops working. It starts working again if I restart pipewire.

I found this post about it: https://bbs.archlinux.org/viewtopic.php?id=304787

> pacman -Q | grep -E 'pipe|pulse'
kpipewire 6.4.5-1
libpipeline 1.5.8-1
libpipewire 1:1.4.8-2
libpulse 17.0+r43+g3e2bb8a1e-1
pipewire 1:1.4.8-2
pipewire-audio 1:1.4.8-2
pipewire-pulse 1:1.4.8-2
python-pipenv 2025.0.4-1
vlc-plugin-pulse 3.0.21-29

So I don't have pulseaudio installed

journal: https://0x0.st/KBD0.txt

Last edited by DrLlap (2025-10-06 19:24:05)

Offline

#2 2025-09-29 19:46:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,094

Re: Need to restart pipewire

So I don't have pulseaudio installed

then how exactly do you go about

I restart pulseaudio

??

systemctl --user status pipewire-pulse.service

Offline

#3 2025-09-29 20:07:39

DrLlap
Member
Registered: 2024-10-20
Posts: 31

Re: Need to restart pipewire

Sorry for the brain-fart, I meant pipewire:

systemctl --user restart pipewire

Offline

#4 2025-09-29 20:22:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,094

Re: Need to restart pipewire

Ok, we'll need more info on the condition, do you maybe hit https://wiki.archlinux.org/title/PipeWi … on_refused ?
Are there any related errors in the system journal?
Any discernible pattern to "Every once and a while"? (After suspending the system, after attaching/detaching devices, after the monitor fell asleep, …)

Offline

#5 2025-10-02 08:36:14

DrLlap
Member
Registered: 2024-10-20
Posts: 31

Re: Need to restart pipewire

This hasn't happened again since I created the ticket. Marking the ticket as solved. Will reopen again if it reoccurs with additional info

Offline

#6 2025-10-06 19:23:49

DrLlap
Member
Registered: 2024-10-20
Posts: 31

Re: Need to restart pipewire

It happened again. Everything was fine this morning. But when I came home from work the audio wasn't working
This is the log for today: journalctl --since=2025-10-06 -r: https://0x0.st/Kuow.txt

The only thing of note is this:

Oct 06 09:36:51 arch-noob wireplumber[864]: wplua: [string "device-info-cache.lua"]:36: attempt to call a nil value (field 'cr>
                                            stack traceback:
                                                    [string "device-info-cache.lua"]:36: in function 'device-info-cache.get_de>
                                                    [string "state-routes.lua"]:185: in function <[string "state-routes.lua"]:>
                                                    [C]: in ?
                                                    [C]: in method 'advance'
Oct 06 09:36:51 arch-noob wireplumber[864]: wplua: [string "device-info-cache.lua"]:36: attempt to call a nil value (field 'cr>
                                            stack traceback:
                                                    [string "device-info-cache.lua"]:36: in function 'device-info-cache.get_de>
                                                    [string "state-routes.lua"]:185: in function <[string "state-routes.lua"]:>
                                                    [C]: in ?
                                                    [C]: in method 'advance'

After suspending the system, after attaching/detaching devices, after the monitor fell asleep, …

The system was not suspended, the monitors were on and no devices where attached/detached.

do you maybe hit https://wiki.archlinux.org/title/PipeWi … on_refused ?

 systemctl status --user pipewire-pulse.service
● pipewire-pulse.service - PipeWire PulseAudio
     Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; enabled; preset: enabled)
     Active: active (running) since Sun 2025-10-05 22:20:43 GMT; 20h ago
 Invocation: c634ae6fcb8e441ca90134d84eebd496
TriggeredBy: ● pipewire-pulse.socket
   Main PID: 865 (pipewire-pulse)
      Tasks: 3 (limit: 18630)
     Memory: 15.9M (peak: 31.2M)
        CPU: 1min 14.137s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-pulse.service
             └─865 /usr/bin/pipewire-pulse

Oct 05 22:20:43 arch-noob systemd[853]: Started PipeWire PulseAudio.

strace -f -o /tmp/pipe.txt pactl info: http://0x0.st/KuoH.txt

 pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 500
Tile Size: 65472
User Name: palli
Host Name: arch-noob
Server Name: PulseAudio (on PipeWire 1.4.8)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: bluez_output.80_99_E7_58_75_28.1
Default Source: alsa_input.usb-Blue_Microphones_Yeti_Nano_2445SQU00TL8_888-000476140506-00.analog-stereo
Cookie: ee56:93f6

Opening a video in mplayer takes very long time:

 mplayer Rolling_issue.mp4
MPlayer SVN-r38542 (C) 2000-2024 MPlayer Team
226 audio & 468 video codecs
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Rolling_issue.mp4.
libavformat version 62.3.100 (external)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f7ae6ed92e0]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  2560x1368  24bpp  15.000 fps  1047.1 kbps (127.8 kbyte/s)
X11 error: BadMatch (invalid parameter attributes)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 62.11.100 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
 major_brand: mp42
 minor_version: 0
 compatible_brands: mp41isom
 creation_time: 2025-05-20T08:38:45.000000Z
Load subtitles in ./
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 96.0 kbit/3.40% (ratio: 12000->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] Init failed: Timeout
Failed to initialize audio driver 'pulse'
Could not open/initialize audio device -> no sound.
Audio: no sound
Starting playback...
Movie-Aspect is 1.87:1 - prescaling to correct movie aspect.
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
V:  26.6   0/  0 16%  1%  0.0% 0 0


Exiting... (End of file)

Looks like it fails initializing audio device

Last edited by DrLlap (2025-10-06 19:52:48)

Offline

#7 2025-10-08 20:22:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,094

Re: Need to restart pipewire

Sorry for the delay, try "btusb.enable_autosuspend=n usbcore.autosuspend=-1", https://wiki.archlinux.org/title/Kernel_parameters
Have you ever encountered anything like this w/ not-bluetooth outputs? (Internal speakers or so)

Any chance it's the headphones? Does turning them off an on again also "fix" it?

Offline

#8 2025-10-17 10:35:48

DrLlap
Member
Registered: 2024-10-20
Posts: 31

Re: Need to restart pipewire

This hasn't happend again for over a week now, but that might be because I have been rebooting my PC quite frequently because of unrelated things. I will give it another week and then close this ticket if it doesn't happen again in the meantime.

Any chance it's the headphones?

Yes, i'm using headphones

Have you ever encountered anything like this w/ not-bluetooth outputs?

No, I always use my bt headphones. I have a non-bt that I will try next time this happens.

Does turning them off an on again also "fix" it?

I will try that next time

Sorry for the delay, try "btusb.enable_autosuspend=n usbcore.autosuspend=-1"

Will try this after I have done the things above

Offline

Board footer

Powered by FluxBB