WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: have to reset pavucontrol on each boot  (Read 1013 times)

Offline puppybyte!

  • Jr. Member
  • **
  • Posts: 91
have to reset pavucontrol on each boot
« on: February 20, 2024, 05:22:31 AM »
I am running the latest TC14 with JWM.  I have disabled onboard audio on bios and using usb soundcard (salyin) only.  After each boot, vivaldi and firefox sound doesn't work until I start pavucontrol app.  I can see it is set to analog output but when I check with alsamixer it is PCM. After setting it again using pavucontrol the audio works fine until I boot again.  Is there a way to "memorize" the pavucontrol?

my inxi -Fz | grep Audio: Audio:
  Device-1: Saiyin USB Audio driver: hid-generic,snd-usb-audio,usbhid
  Server-1: PulseAudio v: 13.0 status: active



Offline CentralWare

  • Administrator
  • Hero Member
  • *****
  • Posts: 1652
Re: have to reset pavucontrol on each boot
« Reply #1 on: February 20, 2024, 05:36:40 AM »
@puppybyte!:This is just a theory as most of the machines I work with all have sound cards built in, but none of them are wired to make noise :)
It's my guess that pavucontrol is likely leaving a configuration file somewhere when it's first started and it's being lost when you reboot.
If I were to venture a guess, this file may be stored in /home/tc.

IF your system isn't set to ignore backups (norestore) then here's something to try:
1. Start the mixer (pavucontrol) so it creates its configuration
2. Open a Terminal window and type in filetool.sh -b and tell me if it responds with "OK"
If it does, reboot and see if your sound is working without intervention
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline puppybyte!

  • Jr. Member
  • **
  • Posts: 91
Re: have to reset pavucontrol on each boot
« Reply #2 on: February 20, 2024, 05:56:20 AM »
@puppybyte!:This is just a theory as most of the machines I work with all have sound cards built in, but none of them are wired to make noise :)
It's my guess that pavucontrol is likely leaving a configuration file somewhere when it's first started and it's being lost when you reboot.
If I were to venture a guess, this file may be stored in /home/tc.

IF your system isn't set to ignore backups (norestore) then here's something to try:
1. Start the mixer (pavucontrol) so it creates its configuration
2. Open a Terminal window and type in filetool.sh -b and tell me if it responds with "OK"
If it does, reboot and see if your sound is working without intervention

it saves the file but on boot the setting is lost again.  When I reboot my alias runs "alias rb='filetool.sh -b && sudo reboot"...

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 673
Re: have to reset pavucontrol on each boot
« Reply #3 on: February 20, 2024, 07:43:35 AM »
Can you see if one of this commands prints out the config file.

Code: [Select]
cat $XDG_CONFIG_HOME/pavucontrol.ini
Code: [Select]
cat /home/tc/.config/pavucontrol.ini
If one prints out the file, you can add this line to .filetool.lst so filetool.sh can take backup of it.
"filetool.sh" needs to know what files have to make backup of.

So you just add what files to the .filetool.lst in the opt directory.
And you have to leave the first "/" out.
So if you need to make backup of file let say /etc/resolv.conf
You can add one line with "etc/resolv.conf" to file /opt/.filetool.lst

So you can edit the file or you can append text to file with ">>".
Like this.

Code: [Select]
echo -e "$XDG_CONFIG_HOME/pavucontrol.ini" >> /opt/.filetool.lst
Code: [Select]
echo -e "/home/tc/.config/pavucontrol.ini" >> /opt/.filetool.lst

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11221
Re: have to reset pavucontrol on each boot
« Reply #4 on: February 20, 2024, 09:27:05 AM »
Hi puppybyte!
The internet is littered with people having the same
problem, but not seeing any solutions.

Just a thought, before running pavucontrol, did you set
up pulseaudio as described here:
http://tinycorelinux.net/14.x/x86_64/tcz/pulseaudio.tcz.info