Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
wiki:system_configuration [2021/03/05 12:51] – [Disabling resource-intensive daemons, services and processes] autostaticwiki:system_configuration [2021/05/05 13:48] – [Disabling resource-intensive daemons, services and processes] sunrat
Line 254: Line 254:
   echo -n performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor   echo -n performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
  
-Another option is to create a Systemd Unit that does this for you. Example of an audio-setup Unit file:+Another option is to create a Systemd Unit that does this for you. Example of an audio-setup Unit file, create as /etc/systemd/system/audio-setup.service:
   [Unit]   [Unit]
   Description=Prepare system for audio   Description=Prepare system for audio
Line 260: Line 260:
   [Service]   [Service]
   Type=oneshot   Type=oneshot
-  ExecStart=/usr/local/bin/audio-setup+  ExecStart=/bin/bash /usr/local/bin/audio-setup
   RemainAfterExit=yes   RemainAfterExit=yes
      
Line 276: Line 276:
 == Ubuntu == == Ubuntu ==
  
-On Ubuntu systems the command in your ''/etc/rc.local'' file only works if you disable the ondemand service:+On Ubuntu systems the command in your ''/etc/rc.local'' or ''/usr/local/bin/audio-setup'' file only works if you disable the ondemand service:
   sudo systemctl mask ondemand.service   sudo systemctl mask ondemand.service
  
wiki/system_configuration.txt · Last modified: 2024/01/13 15:00 by autostatic