Comment 103 for bug 1851518

Revision history for this message
jhubuntu20 (jhubuntu20) wrote :

@PowerKiKi

PowerKiKi, I had to reload my pc for another project, and after reloading I found that same lack of stickiness... Not wanting to go backwards, I felt I had to chase down the full fix. This should fix your issue (caused by pulse) if you want to skip the background audio file...I also improved the Daemon script to ensure later execution and added a second daemon to run the script on suspend/restore. With this setup I have not had to manually run the script in a week or so. Its like sound just works normally now...

Fresh Install Setup Steps

 sudo apt-get install alsa-tools
 Rename alsa-base to bkup /etc/modprobe.d/alsa-base.conf
 placed TO912.sh script with verbs and set as 777 +x
 create and placed $ sudo chmod 664 /etc/systemd/system/ionsound.service

  [Unit]
  Description=Custom Sound

  [Service]
  Type=idle
  ExecStart=/home/ion420/Hoff/Linux_Files/Ion_Audio/TO912.sh

  [Install]
  WantedBy=multi-user.target

 create and placed $ sudo chmod 664 /etc/systemd/system/ionsoundsleep.service

  [Unit]
  Description=Custom Sound Sleep Fix

  [Service]
  Type=idle
  ExecStart=/home/ion420/Hoff/Linux_Files/Ion_Audio/TO912.sh

  [Install]
  WantedBy=suspend.target

 activate
  sudo systemctl daemon-reload
  sudo systemctl enable ionsound.service
  sudo systemctl enable ionsoundsleep.service

 turn off pulse idle
  sudo gedit /etc/pulse/default.pa
  Add comments to ### load-module module-suspend-on-idle

 verify script runs at boot and sound works ..