View Issue Details

IDProjectCategoryView StatusLast Update
0004946ardourbugspublic2020-04-19 20:16
Reportertimbyr Assigned Tocth103  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version3.0 
Summary0004946: Unable to start jack server in realtime mode on Fedora
DescriptionWhen starting the JACK server via Ardour's audio engine dialog in realtime mode on Fedora it always fails. This is because it tries to start the server with a realtime priority of 60. The maximum priority available to someone in the jackuser group is 20(without editing the pam security config files).

As there is no way to change this priority via the audio engine dialog perhaps it makes sense to let the server set a default priority by not passing the -P arg when starting the jack server.
TagsNo tags attached.

Activities

2012-06-25 05:29

 

jackprio.patch (970 bytes)   
diff --git a/gtk2_ardour/engine_dialog.cc b/gtk2_ardour/engine_dialog.cc
index 6fe514b..5c85437 100644
--- a/gtk2_ardour/engine_dialog.cc
+++ b/gtk2_ardour/engine_dialog.cc
@@ -64,7 +64,7 @@ using namespace Glib;
 EngineControl::EngineControl ()
 	: periods_adjustment (2, 2, 16, 1, 2),
 	  periods_spinner (periods_adjustment),
-	  priority_adjustment (60, 10, 90, 1, 10),
+	  priority_adjustment (20, 10, 90, 1, 10),
 	  priority_spinner (priority_adjustment),
 	  ports_adjustment (128, 8, 1024, 1, 16),
 	  ports_spinner (ports_adjustment),
@@ -260,7 +260,7 @@ EngineControl::EngineControl ()
 	options_packer.attach (*label, 0, 1, row, row + 1, FILL|EXPAND, (AttachOptions) 0);
 	options_packer.attach (priority_spinner, 1, 2, row, row + 1, FILL|EXPAND, (AttachOptions) 0);
 	++row;
-	priority_spinner.set_value (60);
+	priority_spinner.set_value (20);
 
 	options_packer.attach (no_memory_lock_button, 1, 2, row, row + 1, FILL|EXPAND, (AttachOptions) 0);
 	++row;
jackprio.patch (970 bytes)   

timbyr

2012-06-25 05:30

developer   ~0013690

I've attached a patch that fixes the issue(at least on Fedora) by setting the default realtime priority to 20. I'm unsure if this will be sufficient for other distros etc.

cth103

2012-06-25 14:41

administrator   ~0013696

Thanks, I just removed the setting altogether, so Ardour shouldn't request a particular RT priority in SVN 12924.

system

2020-04-19 20:16

developer   ~0023090

Issue has been closed automatically, by Trigger Close Plugin.
Feel free to re-open with additional information if you think the issue is not resolved.

Issue History

Date Modified Username Field Change
2012-06-25 05:28 timbyr New Issue
2012-06-25 05:28 timbyr cost => 0.00
2012-06-25 05:29 timbyr File Added: jackprio.patch
2012-06-25 05:30 timbyr Note Added: 0013690
2012-06-25 11:24 cth103 Target Version => 3.0
2012-06-25 14:41 cth103 Note Added: 0013696
2012-06-25 14:41 cth103 Status new => resolved
2012-06-25 14:41 cth103 Resolution open => fixed
2012-06-25 14:41 cth103 Assigned To => cth103
2020-04-19 20:16 system Note Added: 0023090
2020-04-19 20:16 system Status resolved => closed