Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. I used the answer at the link below to successfully set Dynamic Range Compression on my Ubuntu media box running Ubuntu 14.04
  2.  
  3. http://superuser.com/questions/162107/realtime-sound-post-processing-sound-effects-ubuntu-10-04/162114#162114
  4.  
  5. I created a super simple bash script to run those commands back to back. It looks like this
  6.  
  7. <!-- language: lang-bash -->
  8.  
  9. #!/bin/bash
  10. pacmd load-module module-ladspa-sink sink_name=ladspa_out \
  11. plugin=mbeq_1197 label=mbeq \
  12. control=11.621622,10,4.594594,2.702703,0,0, \
  13. -1.621622,-0.270270,-5.405406,-3.513514,-8.648648, \
  14. -5.675676,-4.054054,1.351351,9.189189 &&
  15. pacmd load-module module-ladspa-sink sink_name=sc4m \
  16. plugin=sc4m_1916 label=sc4m control=1,1.5,401,-30,20,5,12 &&
  17. pacmd set-default-sink sc4m
  18.  
  19. How can I get this to run on system startup?
  20.  
  21. I can run this no problem from my home directory, or from /usr/bin/compress_audio.sh but it won't run on boot. I tried adding /usr/bin/compress_audio.sh to /etc/rc.local but no dice. I'm thinking that maybe the PulseAudio daemon doesn't start until after rc.local is run, but I'm not sure what to do in that case.
  22.  
  23. I have another line in /etc/rc.local
  24. <code>nohup plexmediaserver &</code>
  25. and I'm not sure if that may be problematic?
  26.  
  27. Thanks for any suggestions or advice!
  28.  
  29. Edit: I tried putting just the pacmd commands into /etc/rc.local and I still have to manually run /etc/rc.local after boot in order to get DRC working. This is driving me absolutely bonkers. Does the user that runs /etc/rc.local not have access to pacmd maybe?
  30.  
  31. Edit2: Changed /etc/rc.local to <code>su [user] -c '/usr/bin/compress_audio.sh > /home/gsparx/audio_compress.log'</code> to hopefully force the user and log. When I run /etc/rc.local as root, it logs correctly and adds the DRC. On boot, it does not log nor does it enable DRC, so it seems like it's not running at all.
  32.  
  33. Edit3: Tried adding those configurations to /etc/pulse/system.pa to no avail as well
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement