Hi MikeLockmoore
You left out the part where you added:
alsactl restore
to /opt/bootlocal.sh.
Good point!
While I was away, I found a good article (
https://kelar.org/~bandali/blog/pacify.html) about how pulse audio saves to different files in ~/.config/pulse based on the machine-id (/etc/machine-id), but /etc/machine-id is getting reassigned with a random id with each reboot, so the old settings are not seen, and .config/pulse accretes more and more redundant setting files. To compensate, the author was able to make a little script to re-name the pulse audio setting files to the new machine-id, but that seems kinda ridiculous. There is supposed to be a way to disable the machine-id randomization in Debian, but TC does not seem to have that same setting (in Debian its under /etc/default, but that does not exist in TC). I found that article on a Devuan forum (
https://dev1galaxy.org/viewtopic.php?id=4002) which has some related PA discussions.
Anyway, I've decided to punt PA from my system for now. I found that there is a TCE called 'apulse' that provides enough PA functionality using ALSA to let FireFox have sound, which was my primary motivation to use PA anyway. ALSA was not remembering my "unmuted" setting either (probably due to not doing 'alsactl restore' as you pointed out), so I just put a 'amixer set Master 100 unmute' in my bootlocal.sh, which worked, but I'll try the 'alsactl restore' instead, as it is a bit more user-friendly (esp. if some other app like Flit does not manage the master sound level for you on startup).
Note for anyone else wanting to use apulse with firefox:
1) Modify the .wmx/Applications/firefox/firefox script to say 'exec apulse firefox' where it normally says 'exec firefox'
2) Likewise, do the same thing for the /usr/local/share/applications/firefox.desktop file, except put 'Exec=apulse firefox" in place of "Exec=firefox"
... however, to do this, you probably need to copy the file first from the extension tcloop file:
sudo cp -f /tmp/tcloop/firefox/usr/local/share/applications/firefox.desktop /usr/local/share/applications/firefox.desktop
and put usr/local/share/applications/firefox.desktop into your /opt/.filetool.lst. (with no leading / in front of opt)
Thanks for the help as you have many times! Hopefully my digging here is useful to someone I really don't like the way that PulseAudio is basing the names of its ~/.config files on the machine-id. Maybe there's a simple way to override this behavior in PulseAudio without messing with /etc/machine-id itself.