¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Pulse Audio resets volume each time program runs


 

I use a pi for JS8CAll quite a bit. Each time js8 call runs pulse audio has reset the volume to 100 percent and my waterfall level indicator redlines. I have to go into pavu control and set the volume each time. This is a bit annoying and I would like for the audio volume to stay where I set it. Googling for this I have found others having the same problem under ubuntu and other linux distrubutions. The answers all say their is a way to fix this but their solutions seem to be distro specific. Surely others have run into this and have found a way to solve it. Anyone care to share?


 

This has annoyed me for ages and I have yet to find a good solution. Like you, I reset the volume each time I open JS8/FT8.

--
73, de KM4ACK
|
|


 

I find this stanza in /etc/pulse/default.pa
### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore restore_device=false
load-module module-card-restore

That seems kind of like it might be what I am looking for but not sure what would happen if I set it to true as it looks like it is going to do that to all sound devices. I may give restore_device=true today and see what happens.


 

I set
load-module module-stream-restore restore_device=true
instead of false and rebooted the pi.
Interestingly the first time I loaded JS8call the volume setting was in the acceptable range but when I reloaded it it was back to full scale. It seems to me that I have half a solution but not the whole solution.


 

Unfortunately, Pulse ties the settings to PID and not to a particular file. These settings may possibly work if you can get your application to run under the same process ID, but I wouldn¡¯t hold my breath.?

My wish list for Pulse:
? ¡ª Tie the settings to a specific file.
? ¡ª Maintain the settings in a configuration file, such as:
? ? ? ?/etc/pulse/levels.conf
? ¡ª User defined presets, also in a config file:
? ? ? /home/pi/.pulse
? ¡ª Pulse startup defaults.

One other note, typically when I¡¯m running WSJT-X and change bands, I have to readjust the levels so I¡¯m not sure how useful some of this would be. Also, this is waaaaay above my abilities to try and fork.
Jay
73 de N0SR


 

On Mon, Dec 13, 2021 at 11:27 AM, JaySheepdog wrote:

Unfortunately, Pulse ties the settings to PID and not to a particular file. These settings may possibly work if you can get your application to run under the same process ID, but I wouldn¡¯t hold my breath.?

My wish list for Pulse:
? ¡ª Tie the settings to a specific file.
? ¡ª Maintain the settings in a configuration file, such as:
? ? ? ?/etc/pulse/levels.conf
? ¡ª User defined presets, also in a config file:
? ? ? /home/pi/.pulse
? ¡ª Pulse startup defaults.

One other note, typically when I¡¯m running WSJT-X and change bands, I have to readjust the levels so I¡¯m not sure how useful some of this would be. Also, this is waaaaay above my abilities to try and fork.
Jay
73 de N0SR

Jay,

Do you know of any command line tools for pulse that we might could utilize via a script to start an application and then set the volume levels from the command line?
?
--
73, de KM4ACK
|
|


 

Just butting in...



I will now return you to your morning javanation...


 

I see "pulse" trying to do things and having trouble when I boot up. But, everything seems to work well so I had ignored those js8call boot up lines. That said though, I'm having trouble with one thing for sure. I have a feeling its pulse related as my reading says bullseye js8call doesn't use Alsa some how ? What I need to know is what line I should see in the "driver line" your supposed to select for Notifications out of a jack ? and also, which one out of a HDMI ? I won't even ask about the bluetooth one as I have read that Bluetooth audio can get complicated ? I eventually might try that but one thing is for sure, I'd like audio notifications from somewhere.