View previous topic :: View next topic |
Author |
Message |
Ralphred Guru
Joined: 31 Dec 2013 Posts: 495
|
Posted: Tue May 11, 2021 6:47 pm Post subject: |
|
|
mv wrote: | now I can unmute the sound with pavucontrol. |
I have the following script to set my volumes on login, 'cos if I don't pulse sets them to 100%, then my desk rattles, and the TV is too quiet.
It may help you not have to use manual controls to get it working. Code: | #!/bin/bash
until /usr/bin/pactl set-sink-volume 0 50% ;do sleep 0.2;done
until /usr/bin/pactl set-sink-volume 2 150% ;do sleep 0.2;done
|
|
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Tue May 11, 2021 9:12 pm Post subject: |
|
|
mv wrote: | Anon-E-moose wrote: | mv wrote: | My real problem is that I do not get any sound w/o pavucontrol. |
Sound muted if pavucontrol not running? |
I cleared now ~/.config/pulse, and now I can unmute the sound with pavucontrol. So finally it works! | so you are back with pulse audio not pipewire _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Wed May 12, 2021 8:25 am Post subject: |
|
|
Naib wrote: | mv wrote: | I cleared now ~/.config/pulse, and now I can unmute the sound with pavucontrol. So finally it works! | so you are back with pulse audio not pipewire |
I do not think so: The only file written newly to ~/.config/pulse was a "cookie", no other files which look like a hash-name which are written when I am using pulse audio. It seems that the presence of these files had somehow confused pipewire. |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Wed May 12, 2021 8:46 am Post subject: |
|
|
Are you sure? libpulse will autospawn pulseaudio if it isn't running. So launching an application that is built against PA will spawn PA.
adding autospawn=no to ~/.config/pulse/client.conf is the surest way to ensure it doesn't autospawn pulseaudio.
I ran into this sometime ago when I changed aspects of my system (migrating to seatd) but I still had sound for DOTA2 etc... but I started noticing all the issues I had with PA. This is when I checked and PA was autospawning.
This command will show you what you are running.
Code: | pactl info | grep "Server Name" |
For me the issue was XDG_RUNTIME_DIR was not set and while other applications will default to ~/ for their sockets, Pipewire doesn't and will fail
https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/516
https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/609
https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/601
https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/515
The other was multiple pipewire running, a symptom of trying to figure out why it wasn't running and a bug in my awesomeWM login script - an older pipewire was still binded to the snd device so a new launch with configuration changes couldn't connect - you might have this issue
Code: | [E][000417579.009086][alsa-pcm.c:33 spa_alsa_open()] 'hw:4,8': playback open failed: Device or resource busy |
Follow the gentoo wiki, https://wiki.gentoo.org/wiki/PipeWire it has (almost) everything. Pipewire is great and solves some long standing PA issues (and is also smaller and lower latency...) but it is still early days.. Bluetooth is the major limitation right now, otherwise it is really good and works seamlessly with pavucontrol (why not? it acts as a PA server). _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Wed May 12, 2021 3:26 pm Post subject: |
|
|
Naib wrote: | This command will show you what you are running.
Code: | pactl info | grep "Server Name" |
|
Code: | Server Name: PulseAudio (on PipeWire 0.3.22) |
|
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Wed May 12, 2021 6:30 pm Post subject: |
|
|
happy days, so it could have just been either PA or a ill-configured pipewire that held access to the snd card _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
|