View previous topic :: View next topic |
Author |
Message |
paraw Apprentice
Joined: 07 Jan 2005 Posts: 165 Location: Coventry (UK)
|
Posted: Sun Dec 22, 2024 5:17 pm Post subject: Pulseaudio configuration only read after restarting daemon |
|
|
Hi all, I have a weird problem, or, better, more of an inconvenience than a problem. In my configuration, I need to remap my speakers. So, I added the line
Code: | load-module module-remap-sink sink_name=remap51 master=alsa_output.usb-Generic_USB_Audio-00.HiFi_5_1__Speaker__sink channels=6 channel_map=front-left,front-right,front-center,lfe,rear-left,rear-right master_channel_map=front-left,front-right,rear-left,rear-right,front-center,lfe |
to /etc/pulse/default.pa
This works just fine, except that it only works when I reload pulseaudio. What I mean is that, upon starting KDE, the speaker configuration is wrong. Then, if I open a shell and issue
the daemon reloads and correctly remaps the speakers.
So, my question is: how do I ensure the configuration in default.pa is read the first time that pulseaudio starts, without the need of reloading it? |
|
Back to top |
|
|
garrison Apprentice
Joined: 18 Mar 2003 Posts: 267
|
Posted: Wed Dec 25, 2024 8:31 am Post subject: |
|
|
Guess it is read fine on each restart but remapping fails for the first time due to referenced master is not ready yet. No way to wait for devices is available (noone implemented that stuff) so maybe try delaying your load-module command, like do this via pactl with a few seconds delay. |
|
Back to top |
|
|
paraw Apprentice
Joined: 07 Jan 2005 Posts: 165 Location: Coventry (UK)
|
Posted: Wed Dec 25, 2024 8:54 am Post subject: |
|
|
That feels very reasonable. So, I wonder whether this could be achieved via an autostart script that sleeps a number of seconds and then loads the module. My question is: how do I load the module with the options via pactl? (I'm really not an expert of pulseaudio...) |
|
Back to top |
|
|
garrison Apprentice
Joined: 18 Mar 2003 Posts: 267
|
Posted: Wed Dec 25, 2024 9:09 am Post subject: |
|
|
you just repeat that whole line as argument to pactl, it should work
you can try that once by hand, comment out that line in default.pa, repeat that kde login step which leaded to your issue, then run pactl with those args in terminal and see if it works
you probably can create a script which would sleep for a few seconds then run pactl with those args, and run that script in background at desktop start time |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|