0

After my computer resume, I have to pkill jack and start ubuntustudio controls and click on the button "start or restart jack".

I am on my way to create a resume script (how to execute a command after resume from suspend?)

[Unit]
Description=Fix jack audio after resume from suspend
After=suspend.target

[Service] User=trif Type=oneshot ExecStart=??????????????????????

[Install] WantedBy=suspend.target

But at ExecStart, I'm a bit stuck. what to write?

pkill jack && what ?

How to restart jack with the same parameters of ubuntustudio-controls? How to view the jack parameters line that ubuntustudio-controls launch maybe? Or, is there a hidden parameter to ubuntustudio-controls to launch jack when it launch?

Kevin Bowen
  • 20,055
  • 57
  • 82
  • 84

1 Answers1

1

Jack simply doesn't support suspend/resume as it's simply not designed for it. You need to stop Jack via ubuntustudio-controls before putting your machine into a suspend state.